The problem I am having is with the Union method. I want to beable to display several pushpins on the map (which I can do) and then zoom out and center the map view so all pushpins can be seen on the current map view - precisely what the Union method promises to do.
Here's my code:
It is very similar to the example on the MSDN VB Union method page, but my code throws the error:Code:var objLoc1 = map1.ActiveMap.FindPushPin(ar.rtu_id).Location; var objLoc2 = map1.ActiveMap.FindPushPin(ar.rtu_id).Location; map1.ActiveMap.Union(Array(objLoc1, objLoc2)).GoTo();
"The parameter is incorrect"
I've tried defining the array before the union method and just using the array reference but that throws the same error.