Hello,
I have placed several markers with WebImages on the map. The structure is below
protected void CreateMarkerOverlay()
{
SimpleMarkerOverlay markerOverlay = new SimpleMarkerOverlay("Vehicle Markers");
mainMap.CustomOverlays.Add(markerOverlay);
}
/// <summary>
/// getting the marker
/// </summary>
public SimpleMarkerOverlay MarkerOverlay
{
get { return (this.mainMap.CustomOverlays["Vehicle Markers"] as SimpleMarkerOverlay); }
}
///Showing the marker
vehicleMarker = new Marker();
vehicleMarker.Id = Convert.ToString(dsVehicle.Tables[0].Rows[i]["VehicleId"]);
mainMap.MarkerOverlay.Markers.Add(vehicleMarker);
//set marker position and marker image
vehicleMarker.Position = pnt;
vehicleMarker.WebImage = markerImage;
Now, when i supply small image having size of 550 Bytes then all the markers with webimages are displaying perfectly.
But now i have replaced this test image with the image provided by client having 10KB, so when i checked it on the map it stops displaying. when i check its property to see its path, its showing "localhost/iTrack/User/icon_GeoResource.axd?path=http%3a%2f%2flocalhost%2fiTrack%2fApp_Themes%2fDefault%2fImages%2fvehicle%2fmotorbike.png&angle=-82&width=24&height=24&text=&format=image/png&fontsize=10&color=Black&x=0&y=0&fontstyle=1"
I am displaying more than 100 markers here.
One more thing i notice here is, when i display only one marker then it display it correctly. When i right click and check the properties then i got "localhost/iTrack/App_Themes/...bakkie.png" which is perfect.
Now in this scenario when i rotate this single marker with the below code
vehicleMarker.WebImage.RotationAngle = Convert.ToInt32(dsVehicle.Tables[0].Rows[0]["Heading"]) * -1.0f;
then the image disappears. When i check its property its showing this path "localhost/iTrack/user/icon_GeoResource.axd?path=http%3a%2f%2flocalhost%2fiTrack%2fApp_Themes%2fDefault%2fImages%2fvehicle%2fbakkie.png&angle=-45&width=0&height=0&text=&format=image/png&fontsize=10&color=Black&x=0&y=0&fontstyle=1"
I hope you understand both the case here..
Looking forward to your reply
Thanks