Optional
color?: stringOptional color in hexadecimal string e.g. #2e2e2e
.
Optional
font?: stringA CSS style string font, e.g. "sans-serif". You can specify your own font via @font-face rule with a font family, and then include that here.
Optional
fontSize of the font in pixels.
12
Optional
height?: numberBy default this is the upper bounds of the Polygon. If you don't have a Polygon, or want a custom height for some reason, you can set this.
Optional
hoverOptional hover color in hexadecimal string e.g. #2e2e2e
.
Optional
margin?: numberThe amount of space to leave before starting the text in pixels
5
Optional
scaleThe minimum percentage we can shrink the label to if it won't fit within the bounds at 100%. If it doesn't fit at that level, it won't be created.
0.25
Optional
scaleHow much to decrement the scale each time it doesn't fit, so we don't end up with too many different font sizes on screen at once. If you are only labeling a few MappedinPolygons rather than everything, you can set this and and scaleMin to 0.1 to fit everything except really long names perfectly.
0.25
Control how a flat label looks