Markers not getting displayed when Icon property is changed - GoogleMap Control 5

Sep 7, 2011 at 6:35 AM

Hi,

I was using version 4.1 of the control earlier and could easily add custom markers on the map by changing the IconUrl property.

Then, I started using version 5.0 and tried the same thing by changing the Icon property of the marker.

 

MarkerImage mi = new MarkerImage { ScaledSize = new GoogleSize(5, 5), Anchor = new GooglePoint(8, 8), Url = "~/images/IFA1.png" }; 
GoogleMarker gm = new GoogleMarker(lat, lon){Icon = mi};
gm.Text = "abc";
GoogleMap1.Markers.Add(gm);

 

 

After adding this code, no marker is getting displayed on the page.

Please tell me what I'm doing wrong!

Sep 7, 2011 at 10:00 AM

Please can somebody help me out with this?

I have to meet a deadline and if this is not sorted, I'll have to fall back to GoogleMap Control 4.1