This project is read-only.

Markers not showing up

Aug 17, 2008 at 12:12 AM

Hi..
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 =

"HELLO";

 

markerSelected.ImageUrl =

"images/PIN_BLUE.PNG";

 

markerSelected.Latitude = Latitude;

markerSelected.Longitude = Longitude;

 

 

this.GoogleMap.Markers.Add(markerSelected);

 

 

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

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 http://googlemap.artembg.com/marker/CustomIcons.aspx

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

Regards
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.
???
thaks
Sep 8, 2008 at 1:44 PM
Hi,

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