Places default icon styling

Style the default icon for places

View on GitHub
SDK 1.0.0-rc.7

Three postcode lookups land on the map at once, each group of pins in its own fill and outline colour.

  • PlacesModule.create hands back an independent instance per call, so three colour schemes coexist without id juggling.
  • color fills each module’s built-in pin, and the icon config sets its outline, as configuration rather than layer paint.
  • show accepts each geocode response as it arrives, and bboxFromGeoJSON turns those responses into the opening bounds.

Related examples