Can anyone explain to me why the following isn't getting a latlng?

BCMarkerListeners.push(GEvent.addListener(Map,"click", function
(overlay,latlng) {
if(EditBCMarkerMode == true) {
var lat = latlng.lat();
var lon = latlng.lon();
alert(lat);
alert(lon);
var point = Map.fromLatLngToDivPixel(latlng)
UpdateBCMarkerClickString = "P" + point;
}
}));

My EditBCMarkerMode is set to true; however, whenever the click on the
Marker it is simply not returning a latlng.  My markers are created as
follows:

BreadCrumb = new GMarker(point, { "icon": BreadCrumbIcon, "clickable": true,
"draggable": false } );
BreadCrumbMarkers.push(BreadCrumb);

BreadCrumbMMOptions = { borderPadding: 50, maxZoom: 20, trackMarkers: true
};
BreadCrumbMM = new MarkerManager(Map, BreadCrumbMMOptions);

BreadCrumbMM.addMarkers(BreadCrumbMarkers, 14);

So any ideas as to why I'm not pulling a latlng when they click on a marker?
 I had too many markers to add a listener for each marker, it was taking
forever to load all the markers, but I want to retrieve a latlng from a
marker that has been clicked.

Any ideas?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API" 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-api?hl=en.

Reply via email to