-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sharing exact map view #26
Comments
Hi I understand it could be useful to configure a map view through URL parameters, although WTracks is more about editing/showing/sharing tracks than maps. What I think could be useful and sufficient for your needs would be:
Supporting map import together with external track loading would require a significant refactoring, and it would increase the loading time of the landing page. I feel it is simpler to keep it a separate operation (still a single click) To share an area with a specific zoom, one can draw a rectangle-shaped track surrounding this area, and share that track. PRs are always welcome! |
I understand the privacy & perf concerns for the imports. But for the hidden maps I would say "practicality beats purity". Especially since un-hiding the map just make available a curated (by you) map, so not that much of a security issue. Also, right now you haven't implemented this links are transient instead of persistent strategy: if you click the tracks sharing links above, they will change your "remembered map". There's also an argument to be made for this, where the mental model "the app remains in the last seen state" may be a more consistent UX than "some stuff is remembered but not all" especially without a careful visual language around what does it mean to be in a transient session.
You forgot creating 😄. It means I may want to share a link that allow people to start drawing right away without fiddling with settings or removing a weird rectangle. It's especially important to be able to share a location when the map I'm linking to does not cover the whole world, especially the default (0,0) start position. Concretely, if I recommend on a Spanish forum to use https://opoto.github.io/wtracks/?map=SP%20IGN%20Raster to start creating tracks, the experience is not great (try opening in incognito window, and not sharing location). This is the case for a majority of the WTracks out-of-the box maps now (as the best quality maps are always local ones). We can't even have WTracks center on a covered area by default, since there's no standard for XYZ tile APIs to share map bounds, that would only be feasible for the other, rarer map types.
Thanks for sharing, I'll see what I can do! |
* Not yet implemented in track sharing URL generation * Transient: will not be shown on next refresh (should be made consistent with behaviour for ?map one way or the other) * Hidden overlays are shown (transient as well) Examples: - Multi: http://localhost:8000/?map=OpenStreetMap&overlays=Hills,Cycling - Hidden: http://localhost:8000/?map=OpenStreetMap&overlays=FR%20IGN%20Parcelles Part of opoto#26
Behaviour on refresh and for hidden overlays is similar as for `?map`... ... except there is a preexisting issue right now where enabled overlays are not shown on refresh, but they are in the shared URL. Examples: - Multi: http://localhost:8000/?map=OpenStreetMap&overlays=Hills,Cycling - Hidden: http://localhost:8000/?map=OpenStreetMap&overlays=FR%20IGN%20Parcelles Part of opoto#26
Currently we have
Based on quick testing I don't think either can be used to
Some propositions to extend tracks sharing:
?map=some_hidden_map
. ie show the map immediately & in the future?map=some_overlay
?map=OpenStreetMap&map=Hills
?map=OpenStreetMap&z=14&lat=44.11&lng=7.42
or any of:?map=base64_map_def&ext=gpx&noproxy=true&url=dpaste.com...
I might PR some of this, what do you think?
The text was updated successfully, but these errors were encountered: