camptocamp / GeoMapFish

6 stars 1 forks source link

Share a location in permalink #58

Open ponceta opened 2 years ago

ponceta commented 2 years ago

Who requested this new feature?

Ville de Pully

Is your feature request related to a problem?

No

Describe the solution you'd like

Share a location (pair of coordinates with a permalink)

As swisstopo does with their marker :

image

https://map.geo.admin.ch/?lang=fr&topic=ech&bgLayer=ch.swisstopo.pixelkarte-farbe&layers=ch.swisstopo.zeitreihen,ch.bfs.gebaeude_wohnungs_register,ch.bav.haltestellen-oev,ch.swisstopo.swisstlm3d-wanderwege,ch.astra.wanderland-sperrungen_umleitungen&layers_opacity=1,1,1,0.8,0.8&layers_visibility=false,false,false,false,false&layers_timestamp=18641231,,,,&E=2540300&N=1151265&zoom=12&crosshair=marker

Additional information or points to watch out for

Marker could be a dot or a cross like the actual tool when entering coordinates :

image

maltaesousa commented 2 years ago

Hi @ponceta ! This is already possible:

https://www.sigip.ch/?map_x=2541220&map_y=1150675&map_zoom=10&map_crosshair=true

If you want a similar behaviour as geoadmin, you can override contextualdata.html and generate the link there.

Would this fulfill your needs? :)

ponceta commented 2 years ago

Thanks @maltaesousa this was exactly what I needed, would it be a good idea to have it as a right click contextual feature?

image

ponceta commented 2 years ago

This is a hidden functionnality? Missing doc?

image