Skip to content

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
kmlb.polygon([ring], "Lot")                         # no style, still styled

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

  • arrow
  • blue-paddle
  • blue-pin
  • camera
  • caution
  • circle
  • diamond
  • dining
  • donut
  • ferry
  • flag
  • golf
  • green-paddle
  • green-pin
  • hiker
  • info
  • info-i
  • ltblue-paddle
  • ltblue-pin
  • marina
  • parking
  • pink-paddle
  • pink-pin
  • poi
  • purple-paddle
  • purple-pin
  • ranger
  • red-paddle
  • red-pin
  • shaded-dot
  • square
  • star
  • target
  • taxi
  • triangle
  • white-paddle
  • white-pin
  • yellow-paddle
  • yellow-pin