Multiple maps with geometries
Showing multiple maps, where each map has a geometry displayed
In a grid of small maps, each one frames a single Spanish municipality and washes everything outside its boundary white.
- One
discoverPlacescall returns the municipalities and onegeometryDatacall returns every boundary, so the per-map loop does no fetching. - A
TomTomMapand aGeometriesModule.createper container stand on their own, with no shared registry to keep. fill: { style: 'inverted' }paints outside each boundary rather than inside it, which is what leaves the municipality clear.
Related examples
Basic geometry
Show geometry around the search area
Getting Started
Geometry
Search and Geocoding
Web
Interactive map labels
Click country, city and neighborhood labels on the map to show their boundaries
Getting Started
Base Map
Geometry
User Interaction Events
Web
Geometry searches along a route
Searching along a route using buffer polygons to search along its line
Getting Started
Routing
Search and Geocoding
Geometry
Web
Search places within geometry
Search for places within the area of a location
Getting Started
Search and Geocoding
Geometry
Web