Back to all examples
POI category icons playground
Pick a circle, square, diamond or pin, and its colour, per POI category, on the map's own POIs and on searched places alike
Every category’s icon changes at once on the POIs the map style draws and on the places a search found, from one list of images.
POIsModuletakesicon.categoryIconsand redraws the style’s own POI layer with it, leaving every unlisted category its map icon.PlacesModuletakes the same list, matched by map category, soRESTAURANTalso reaches a searchedITALIAN_RESTAURANT.- Each icon is an SVG string that places a category’s glyph file inside a shape outline, so any glyph goes with any shape.
- One
offsetYper entry stands a pin’s tip on its place under both modules, since each draws the icons centred.
Related examples
Map Chat Agent
Ask a chat beside the map for places, routes or traffic, and watch the map search, draw and frame the answer
Playground
AI
Search and Geocoding
Places and POIs
Map Style
Base Map
Geometry
Traffic
Routing
Plugins
Web
React
Map Chat Agent State Playground
A map chat whose every result lands in a side panel, where you can show, hide or drop it yourself
Playground
AI
Search and Geocoding
Places and POIs
Map Style
Base Map
Geometry
Traffic
Routing
Bring Your Own Data
Plugins
Web
React
Site Selection Agent
A site selection agent on the TomTom Maps SDK Agent Toolkit: hand-picked default tools, custom analysis tools, its own persona and state slice
Playground
AI
Search and Geocoding
Places and POIs
Routing
Traffic
Map Style
Base Map
Plugins
Web
React
Map POI filters
Filter POI categories with show/hide modes
Playground
Base Map
Places and POIs
Web