Interactive base map buildings
Hover, click and paint single 3D buildings of the base map in Midtown Manhattan
Each 3D building of the map style lights up under the pointer, takes the click colour when you select it and keeps a paint colour of its own.
- A
BaseMapModuleclick handler scoped to thebuildings3Dgroup reports the building under the pointer, its id and its properties. With it listening, the buildings turn thebuildings3D.hoverandbuildings3D.clickcolours. setBuildingColorsgives the buildings you name by id a colour of their own, which they keep as their tiles reload.getBuildingIdAtnames the building standing at a position, so two towers are coloured from their coordinates, not from ids read off a click.
Related examples
Interactive 3D buildings
Hover, click and paint single 3D buildings and landmarks in Amsterdam with the Landmarks 3D plugin
Customization
User Interaction Events
Terrain and 3D
Plugins
Web
Bring Your Own Data: Clusters and Polygons
20k clustered random points and random polygons around London, rendered with the CustomGeoJSONModule. Both layers are clickable.
Customization
Bring Your Own Data
User Interaction Events
Web
Bring Your Own Data: GeoJSON Heatmap with Custom Module
Render a custom GeoJSON heatmap and labeled symbol layer with the CustomGeoJSONModule, with style-change restore, hover and click events.
Customization
Bring Your Own Data
User Interaction Events
Web
Delivery zones of your own
Show your own GeoJSON polygons and respond to clicks on them
Customization
Bring Your Own Data
Geometry
User Interaction Events
Web