Back to all examples
Interactive Map POIs
Click on map POIs to see their details
A click on a POI the base map already drew pins it and opens a popup with its category, today’s opening hours, address and phone.
POIsModule.events.on('click')delivers the clicked base-map feature with a real entity id on it, so there is no hit-testing to write.getPlaceDetailstrades that id for the fullPlace, whichPlacesModule.showrenders unchanged.BaseMapModule.getgives everything else on the map its ownclickhandler, which clears the pin and the popup.createLatestRequestretires the previous click’s lookup and drops one a dismiss overtook, so a slower answer cannot pin a POI already dismissed.
Related examples
Click on the rest of the map
Detect clicks on places vs. the rest of the map
Getting Started
User Interaction Events
Places and POIs
Base Map
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
Interactive roads and numbers
Base Map with interactive roads and house numbers.
Getting Started
Base Map
Search and Geocoding
User Interaction Events
Web
Mixed User Interaction Events
Handle various map events and user interactions
Getting Started
Base Map
User Interaction Events
Web