Places with Custom Layer Configuration

Draw places in the base map's own POI look, with their label, icon and selected colours overridden through MapLibre paint

View on GitHub
SDK 1.0.0

Restaurants in view draw with the base map’s own POI look, their icons faded and their label colour and selected-state colour overridden.

  • PlacesModule.create with markerType: 'base-map' makes the markers inherit the style’s POI rendering before any override.
  • Its layers config carries MapLibre paint for the module’s own layers, so an override stays configuration instead of a post-load layer edit. The icons fade through icon.opacity, a setting of their own.
  • map.getBBox() feeds discoverPlaces the current viewport, and show repaints on every moveend.

Related examples