Interactive Map POIs

Click on map POIs to see their details

View on GitHub
SDK 1.0.0-rc.7

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.
  • getPlaceDetails trades that id for the full Place, which PlacesModule.show renders unchanged.
  • BaseMapModule.get gives everything else on the map its own click handler, which clears the pin and the popup.
  • createLatestRequest retires the previous click’s lookup and drops one a dismiss overtook, so a slower answer cannot pin a POI already dismissed.

Related examples