zskarte / zskarte-client

Zivilschutz-Karte allows to draw situation maps for disaster management
https://www.zskarte.ch/
MIT License
13 stars 7 forks source link

feat(deeplink): add option to link to specific location #405

Closed swerder closed 2 months ago

swerder commented 9 months ago

This feature allow to create links that open a specific operation (if access to) and navigate to a position with defined view size. e.g. /map?operationId=1&center=856371,6015286&size=2155,1478 /share/123456?operationId=1&center=856371,6015286&size=2155,1478

If not logged in the login page is shown. If have no access the the operation (or it's archived) it stays on the operation selection screen. If share link it ignores the operationId from link and use the one from AccessToken.

After operation is selected (automatically or by selecting on operation overview) it navigates to the defined map center and zoom so defined size of map is visible.

center and size are mercator values. Together with https://github.com/zskarte/zskarte-client/pull/398 it could be extended to allow different coordinate / size formats.