This project is read-only.

Markers not showing up

Aug 17, 2008 at 12:12 AM

I just started using the control - thanks
But my markers are not showing up. Enclosed is my code.
What am I'm doing wrong?




// Add Marker




GoogleMarker markerSelected = new GoogleMarker(Latitude,Longitude);


markerSelected.Text =



markerSelected.ImageUrl =



markerSelected.Latitude = Latitude;

markerSelected.Longitude = Longitude;






Aug 17, 2008 at 6:54 AM
Edited Aug 17, 2008 at 6:56 AM

You have a custom icons sample under GoogleMaps Control 3.4 Sample Website, which you can find in the current release files.
The sample can be found online at

You have to set IconSize and IconAnchor of the marker in order custom icon to work properly.

Aug 17, 2008 at 12:52 PM
If I disable the  EnableMarkManger  then they show up fine.
If I set it to true. No markers show up.
Sep 8, 2008 at 1:44 PM

I have got the same problem and also if I subscribe any marker for DragEnd event then it is throwing following error.

Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index

When I debug the code, I have found that for some reason it is loosing the Markers on server side (this.Markers.Count = 0) which is weird.

Could you please help in this issue.

Many Thanks