i have a layer of hospital locations. I would like to draw the letter "H" for each hospital on map.
What is the easiest way to do it as there is no out of box symbol for hospital?
Thanks,
Guangming
Example for PointStyle rendering a character eg "H" for hospital?
Guangming,
Please try the blow codes:
int unicodeForH = Convert.ToInt32("0x48", 16);
PointStyle fontPointStyle = new PointStyle(new GeoFont("Arial", 12), unicodeForH, new GeoSolidBrush(GeoColor.SimpleColors.Red));
Besides, using the image is an option:
citiesLayer.ZoomLevelSet.ZoomLevel01.DefaultPointStyle =
new
PointStyle(
new
GeoImage(Server.MapPath(
"…/…/theme/default/samplepic/city.png"
)));
Hope it helps.
Thanks,
Troy
the first one is neat! thanks
Hi guangming,
good to hear it is fit for you.
Any questions, please let us know.
Thanks,
Troy