publiclab / Leaflet.DistortableImage

A Leaflet extension to distort or "rubber sheet" images
https://publiclab.github.io/Leaflet.DistortableImage/examples/
BSD 2-Clause "Simplified" License
265 stars 284 forks source link

?k= Parameter for Shorter Shareable URLs for Legacy Json Files #1367

Closed segun-codes closed 1 year ago

segun-codes commented 1 year ago

Similar to suggestion in Issue #1355, we can also share map for legacy mapknitter.org using URL format: https://publiclab.github.io/Leaflet.DistortableImage/examples/archive?json=https://archive.org/download/mapknitter/--10.json

A more user-friendly and less verbose alternative could be: https://publiclab.github.io/Leaflet.DistortableImage/examples/archive?k=--10 where "--10" is the name of the legacy json file. A candidate solution is similar to proposal in PR #1366.

This issue is created at the instance of your request.

segun-codes commented 1 year ago

Hi @jywarren, I'd quickly implement this feature once PR #1366 is merged. Many thanks!