Pin on map with interaction
Click a pin to open its address, and click anywhere else on the map to close it
A single coordinate becomes a pin in central Amsterdam, captioned with its address. Clicking the pin opens a popup, and clicking the rest of the map closes it.
places.events.places.on('click')fires for that pin alone and hands over the clicked place, so there is no hit-testing against rendered features.BaseMapModule.getcatches every click the pin does not, andcursorOnHover: 'default'keeps the pointer plain over the background.- A MapLibre
Popupanchors on the place’s coordinates. The SDK finds the place, and the card on it is the app’s own. showtakes thereverseGeocoderesponse unchanged, once a check on itspropertiesconfirms an address matched.
Related examples
EV chargers nearby
Fast charging stations near one location, filtered by connector and power, with each station's connectors on click
Getting Started
Electric Vehicles
Search and Geocoding
Places and POIs
Web
Interactive Map POIs
Click on map POIs to see their details
Getting Started
Base Map
Places and POIs
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
Store locator
Find the nearest of your own stores by drive time, from any address.
Getting Started
Bring Your Own Data
Places and POIs
Search and Geocoding
Routing
Web