Hi Johny,
I follow the sample “New Features/AutoRefreshOverlay”. But if in this sample I add custom image for marker image then it gives following jscript error.
Sys.ArgumentException: Cannot deserialize. The data does not correspond to valid JSON.
Parameter name: data
Here is your sample code for add markers
markerOverlay.Markers.Add(new Marker(-95.26095, 38.93926, new WebImage(21, 25, -10.5f, -25f)));
markerOverlay.Markers.Add(new Marker(-95.26086, 38.96956, new WebImage(21, 25, -10.5f, -25f)));
But when i use different marker image it does'nt works
string imagePath = "../../theme/default/samplepic/black_marker.png";
markerOverlay.Markers.Add(new Marker(-95.26095, 38.93926,new WebImage(imagePath)));
markerOverlay.Markers.Add(new Marker(-95.26086, 38.96956, new WebImage(imagePath)));
You can find image as attachment.
Can you provide us an example of this in which we can add custom image as marker image?Is it possible?
Thanks.
black_marker.png (429 Bytes)