A demo for displaying a label in the marker icon (version => 3.4).
The label always consists of 1 character!.

{mosmap labeltext='H'| zoom='15'| overview='2'| text='<div style=width:200px; height=50px;>Home</div>'| marker='0'}

 Print 

 

It's possible to add a label to a custom icon too:

{mosmap labeltext='H'| |labelfont='Arial Black'| labelfontsize='24px'| icon='<Url icon>'| iconwidth='60'| iconheight='52'| iconanchorx='58'| iconanchory='52'| iconinfoanchorx='34'| iconinfoanchory='1'| iconshadow='<Url shadow'| iconshadowwidth='60'| iconshadowheight='52'| iconimagemap='<image map>'| tooltip='Tooltip'| text='Custom Icon'}

 Print 
icon icon shadow

You can add the following parameters:

  • labelcolor - The color of the label in the marker icon.
  • labelfont - The family font of the label in the marker icon.
  • labelfontsize - The font size in px of the label in the marker icon (for example 16px).
  • labelfontweight - The font weight of the label in the marker icon (for example 400).
  • labelanchorx - X position within the custom icon to pinpoint the label
  • labelanchory - Y position within the custom icon to pinpoint the label