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
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.createwithmarkerType: 'base-map'makes the markers inherit the style’s POI rendering before any override.- Its
layersconfig carries MapLibrepaintfor the module’s own layers, so an override stays configuration instead of a post-load layer edit. The icons fade throughicon.opacity, a setting of their own. map.getBBox()feedsdiscoverPlacesthe current viewport, andshowrepaints on everymoveend.
Related examples
Places default icon styling
Style the default icon for places
Customization
Places and POIs
Web
Same place category with different icons
Show places of the same category with different icons
Customization
Places and POIs
Web
Search filters
The same fuel station search run once per filter (brand, fuel type, country), each result set in its own colour
Customization
Search and Geocoding
Places and POIs
Web
Borrowed looks
Places, a route and fetched traffic incidents drawn in the style's own look, following the styling knobs that restyle it, live
Customization
Map Style
Places and POIs
Routing
Traffic
Web