Okay, I've done some tweaking with the program and changed how the markers
are actually loaded into the Marker Manager.
I added a listener when creating the MarkerManager as follows:
ZoneStartFinishMM = new MarkerManager(map, ZoneStartFinishMMOptions);
google.maps.event.addListener(mgr, 'loaded', function(){
setupStartFinishMarkers(idStart, idFinish);
Then I added the setupStartFinishMarkers like:
function setupStartFinishMarkers(idStart, idFinish) {
alert("setupStartFinishMarkers");
try {
ZoneStartFinishMM.addMarker(ZoneStartFinishMarkers[idStart], 0);
ZoneStartFinishMM.addMarker(ZoneStartFinishMarkers[idFinish], 0);
}
catch(error) {
alert("Error adding the markers to the marker manager");
}
ZoneStartFinishMM.refresh();
}
Now I am getting an error in the markermanager.js at line 764 saying "minX
is null or not an object".
Any ideas what's going on?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Maps JavaScript API v3" group.
> To post to this group, send email to
> [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-maps-js-api-v3%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-maps-js-api-v3?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-maps-js-api-v3?hl=en.