Same place category with different icons
Show places of the same category with different icons
Airports carry one pin in Spain, another in France and a third in Italy, all from a single POI category.
- One
PlacesModule.createper country keeps three instances apart, soPUBLIC_AIRPORTresolves to a different image in each. categoryIconstakes the SVG markup inline, with no sprite sheet and no image registration.showtakes each country’sdiscoverPlacesresponse untouched, andbboxFromGeoJSONover all three sets the opening bounds.
Related examples
Places default icon styling
Style the default icon for places
Customization
Places and POIs
Web
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
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