I fear this will end up as a dumb quesion with an obvious answer, but when trying to set the marker image I just get blank markers loading on the map, with only the outline of the marker popping up, What am I doing wrong???
double hosplat;
double hosplong;
InMemoryMarkerOverlay HospitalsOverlay = new InMemoryMarkerOverlay("HospitalsOverlay");
for (int i = 0; i < dt.Rows.Count; i++)
{
hosplat = Convert.ToDouble(dt.Rows["Lat"]);
hosplong = Convert.ToDouble(dt.Rows["Long"]);
HospitalsOverlay.Features.Add(new Feature(hosplong, hosplat));
}
WebImage HospitalSymbol = new WebImage(@"C:/Map_Data/image/circle_green.png");
HospitalsOverlay.ZoomLevelSet.ZoomLevel01.DefaultMarkerStyle.WebImage = HospitalSymbol;
HospitalsOverlay.ZoomLevelSet.ZoomLevel01.DefaultMarkerStyle.WebImage.ImageWidth = 20;
HospitalsOverlay.ZoomLevelSet.ZoomLevel01.DefaultMarkerStyle.WebImage.ImageHeight = 20;
HospitalsOverlay.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;
return HospitalsOverlay;