Hi,
I'm developing a web application in php and I'm trying to control some aspects of the ActiveX component with Javascript.
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[0].rtu_id).Location; var objLoc2 = map1.ActiveMap.FindPushPin(ar[1].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.
Any ideas?