ProfessionalWiki / Maps

🗺 Maps is the MediaWiki extension that enables visualization of geographic data with dynamic embedded maps.
https://maps.extension.wiki
Other
73 stars 62 forks source link

copycoords works not with leaflet #686

Open carchaias opened 2 years ago

carchaias commented 2 years ago

Setup

Issue

The parameter copycoords=yes does not work with format=leaflet. Instead of popup the dialog for copycoords the browser context dialog opens. This works fine with googlemaps.

JeroenDeDauw commented 2 years ago

In case of leaflet it only works if you click a marker. Not any place on the map. Do you have a use case for getting coordinates from arbitrary positions?

You can see it working at https://maps.extension.wiki/wiki/Leaflet_Maps_examples#Copy_coords

carchaias commented 2 years ago

Ok, rightclicking on a marker works on my wiki too (have not seen this before). That issue came up as we used openlayers on the wiki some longer time ago and a user now with leaflet complained that copying of coords is no longer available. It was somehow handy to simple copy coords from whereever you want.

stitch commented 2 years ago

In case of leaflet it only works if you click a marker. Not any place on the map. Do you have a use case for getting coordinates from arbitrary positions?

Yes, most definitely: we want users to select a position on the map of where they are located. That's for the MCH2022 event, where villages can choose their preferred location on the map.

Like this: image

This can be done with: https://www.mediawiki.org/wiki/Extension:Page_Forms/Input_types

Choosing the leaflet type. THnx!