Is it possible to right click on a leaflet map and use that location for further processing?

Created on 3 March 2025, about 1 month ago

Hello,
I have already created several different websites with the Leaflet module and Geofield.
What I can't find is if it is possible that I show a map, without markers, and have the user click or right click anywhere on the map which then opens a customizable popup.
For example a popup with the coordinates in a link so I can use them for further processing.
Similar to how it works with Google Maps where I can also click anywhere on the map or right click to start planning a route or to get more details.
if this is possible maybe with a module or if there is documentation around this it would be great if someone could share that,
Greetings,
Rob

Feature request
Status

Active

Version

10.2

Component

Code

Created by

🇳🇱Netherlands RobBNL

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024