Places Customization Playground

Customize place markers with icons, fonts, and colors

View on GitHub
SDK 1.0.0-rc.7

Every knob on the panel repaints the places already on the map, with no new search and no layer edits.

  • updateConfig replaces one part of the config and keeps the others, so a single markerType name swaps the whole marker look.
  • label takes the label colour, font and a format expression, which reads the properties extraFeatureProps derives off each Place.
  • icon maps a POI category id to an image of your own, offset in pixels, and icon.opacity fades every marker type’s icons while the labels stay solid.
  • beforeLayerConfig moves every marker layer under the map’s labels and back.
  • The search behind each map move runs through createLatestRequest, so a slow answer cannot paint over a newer viewport.

Related examples