-
Notifications
You must be signed in to change notification settings - Fork 926
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
Introduce Geo URI to Share panel, take 2. #994
Conversation
Do you have a screenshot? From reading your code it should be nice and usable. |
Osmand (and probably others) adds |
@HolgerJeromin I applied the PR as a patch here, there is an issue with the original string not being found, but I suspect that is just a minor glitch: glitch fixed, operator error on my behalf. |
I like the order, so even on small screens this is probably usable (ref #849) |
Thanks, @simonpoole, for sharing a screenshot. Here's how the panel looks on an iPhone. |
adding FYI, I've been doing work on supporting geo: URIs in lots of Android apps, including Osmand, K-9, ChatSecure, etc. |
OT but just so that there is no misunderstanding: I ignore the z parameter on purpose in Vespucci. Its a safeguard against trying to download the world (which isn't funny on a mobile device :-)). Naturally that wouldn't happen in any case, but if you are in a high density area you are likely better off setting the default download area to something reasonable than to rely on every user to zoom in first. |
@eighthave, @HolgerJeromin, is there any reason not to send along the browser's current zoom level in the query string? |
@erictheise no reason I can think of, that vespucci ignores it is really very very specific. |
I think as much info should be included in the query string as possible. Apps are supposed to ignore key/values in the query string that they do not understand, according to the RFC: |
…roughout; add zoom level to query string.
Added current zoom to the query string. |
So the standard says that a query string is valid, but it doesn't actually define any specific parameters? So z= being zoom just becomes an OSM specific standard of some kind by this logic? |
It's described in that Google Android Reference of Available Intents and iOS honors it as well. |
z=20 does not seem to be in an RFC but basically all of the major map services respect it: |
@tomhughes, the people who requested this feature seem okay with the implementation and the |
Oh I sure it's fine technically, or if not is easily fixable, so I wouldn't worry about whether you have access to a tablet. The only reason is I haven't looked at this is that I don't like the UI very much (having something labelled "Geo URI" is very geeky and will be meaningless to most people) but I am equally struggling to come up with any better ideas... |
Maybe "Coordinates link"? |
Perhaps we could expand the topic to "coordinates" and add multiple formats for copy and paste like
Is this useful or overkill? I don't want to block merging this PR. |
A geeky label for a somewhat geeky feature. The intent of the link is Launch External Mapping App, but that takes up too much screen space and will not even be true for, say, a Windows desktop user. The geo uri is not new, although it was new to me, and explicitly labeling it as such may help popularize it. That seems within the mission of |
I've merged this as is in 6403cb9. We can always change things later if we come up with better ideas of how to present it. |
A second attempt at addressing #799. Abandons the previous idea of adding a geo: button in the Link or HTML section of the Share panel. Adds a small block between Link or HTML and Image,
Makes #884 obsolete.