Colors & Icons
Reference
Colors & Icons
Pick a color by name, hex, or (color, opacity) pair; pick a marker by shorthand, constant, or full URL. Skip the style entirely and a feature still looks good with default styling.
Pick a color by name ("red"), a hex string ("#ff0000"), or a
(color, opacity) pair (("red", 50)); or use a kmlb.colors constant. Same
for markers: a shorthand ("triangle", "red-paddle"), a kmlb.icons constant, or
a full URL. Skip the style entirely and a feature still looks good.
kmlb.point_style("city", color="red", icon="triangle")
kmlb.line_style("route", color=("teal", 80)) # name + opacity
# A polygon given no style_to_use falls back to kmlb's built-in default styling,
# so it still looks good. 'ring' is one closed list of [lon, lat] coordinates
# (the first and last point match).
ring = [[-71.06, 42.36], [-71.05, 42.36], [-71.05, 42.35], [-71.06, 42.35], [-71.06, 42.36]]
kmlb.polygon([ring], "Parking Lot") # no style_to_use, default style applied
Color palette
- black
- blue
- brown
- cyan
- gold
- gray
- green
- kmlb_amber
- kmlb_green
- kmlb_red
- kmlb_teal
- lime
- magenta
- maroon
- navy
- olive
- orange
- pink
- purple
- red
- silver
- teal
- white
- yellow
Marker shorthands
Shapes & symbols
arrow
caution
circle
diamond
donut
flag
info
info-i
poi
shaded-dot
square
star
target
triangle
Places & services
bar
camera
coffee
dining
fire
fuel
grocery
hospital
lodging
parking
phone
police
ranger
shopping
toilets
water
webcam
Recreation & outdoors
campfire
campground
cycling
fishing
golf
hiker
picnic
trail
Transport
bus
ferry
heliport
marina
plane
rail
sailing
taxi
truck
Pushpins
blue-pin
green-pin
ltblue-pin
pink-pin
purple-pin
red-pin
white-pin
yellow-pin
Paddles
blue-paddle
green-paddle
ltblue-paddle
pink-paddle
purple-paddle
red-paddle
white-paddle
yellow-paddle