-
Notifications
You must be signed in to change notification settings - Fork 923
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
Reorganize export/share UI #351
Conversation
Closing the share side bar leaves any marker and/or drag box visible on the map. |
Oh and the left side export side bar is not scrollable if it is larger than the screen. Actually I think I heard somebody say that is a general problem with the left sidebar and the new UI. |
The marker gets lost when unchecking the 'include marker' check box, zooming to another region and switching the marker on again. Also, the edit box in the embedding section resizes horizontally instead of vertically. I suspect that's not intentional. |
Thanks, those issues should be fixed. |
The 'set custom dimensions' checkbox should also get cleared when the share panel is closed. Right now, there is a checked box but no image selector when the share panel is reopened. |
This looks so great I want it on osm.org immediately :) Can something be done with "Scale" field? Maybe replace it with zoom level, with a possible floating point (but defaulting to the current zoom level)? I doubt even 0.01% of site users understand what that number affects. |
Short links are expanded to coordinates with 15 digits. I know it hardly matters, because links are short and expanded server-side, but still it's a bit confusing, since they are displayed in the location bar. Can those coordinates be cut at 6-7 digits, like for "long" links? |
@Zverik I agree on both points, but neither of those are regressions, so it would be better to file them as separate issues. |
I can't actually find this, where is it? |
The prominence is okay, but it seems a bit odd when all the other links in the sidebar take you off the map to different pages. On the other hand, I can't think of anywhere else to place it that would be better. |
Shouldn't the Embeddable HTML's href's query string's parameters be separated by |
Noticed a bug with marker location:
Marker shows up at the center of the map before the right side bar made the map smaller. |
@iandees Filed an upstream bug: Leaflet/Leaflet#1919. |
I just pushed a change that makes map controls dark. These feel a little more prominent and also match the iD controls nicely. We need to add active classes:
I also added a |
Hi, can we please remove the blue link icons in the 'share' dialog. I understand the argument for them: you can right click the icon and then select 'copy link' from a list of options. However lets all step back for a second and think about how this looks to the majority of users. There is a convention on the internet for small share links to follow urls in inputs. Here's an example: This is implemented with a little flash widget. Pretty convenient! Sadly, Flash is proprietary, ect. ect. we're not going to do this on osm.org and that's fair. Lets look at the share dialog in the osm sidebar: As a long-time Internet user, I expect that blue icon to function like the copy link on GitHub or countless other webistes. When I click it, I should get a friendly message that tells me the link has been copied to my clipboard, and I can go along on my way. What actually happens when I want to copy the link to share my location by clicking the blue link? Three things:
This is disorienting and confusing. This happens to me and I get suspicious of the OpenStreetMap website. Was that a bug? We should remove these blue links. You can select the text in the input, right click, then copy. Or command+C. |
Here's a proposal for a cleaner design:
|
Re: The Scale number Do we have enough information to compute the scale number based on a desired image size instead of prompting for a scale number (which is completely weird for the vast majority of users)? Edit to add: Just noticed Zverik's comment on this. |
I've implemented a modified version of @samanpwbb's suggestions.
I'm leaving questions about scale to another PR. This one is almost two weeks in the making and there's already lots of good stuff in it -- let's get it merged. |
There is still a glitch with "Set custom dimensions" and map movement: select and then unselect "set custom dimensions". Move map view somewhere else. Choose custom dimensions again and map will jump back to previous view. |
Fixed. |
#368 has a more in-depth discussion of scale and the complicated stuff it's doing behind the scenes |
Is the change of colour of the heart icon on the donate button from black to white deliberate? or was it just changed accidentally when reversing the colour of the map controls? |
"Image" and "Embeddable HTML" options move to share control. Only XML export remains, and is now accessed via a sidebar link rather than the tab bar.
Not centering is of dubious usefulness, and doesn't work at all with a short link.
That was accidental, fixed. |
I think my main remaining concern with this is the removing of the ability to specify a separate location for the marker. That raises two issues:
Before I merge this I'd like to hear what other people think about this... |
Yes, this ability was removed from the UI for the HTML embed. It was present in earlier revisions of this pull request and available for long/short link too, but it actually only worked with long link. I think that having a compact UI and simple, consistent options for embed, short, and long links is worth it. The behavior is also intended to address the complaints about not being able to easily create a centered marker at a precise location. Folks that need embed code with an off-center marker are still able to copy, paste, and tweak by hand. |
We discussed this at EWG and the general consensus seemed to be that loosing the functionality is not a problem. Everybody felt that the second point is bug that we should try and address though - do you think there is anything we can do? Maybe we can just stop the map being moved once a marker has been requested? The marker would still be movable, which also moves the map centre. |
I think it's better if the map can still be panned and zoomed, but the marker stays fixed in the center. I've implemented that, but it requires some changes to Leaflet. I've submitted them upstream as well -- is it ok to have local patches temporarily? |
The UI certainly looks much nicer now - has @mourner given any indication as to whether the leaflet change (Leaflet/Leaflet#1939) is likely to get merged? |
Merged. |
This is a followup to the map-ui changes, making better use of the new "Share" sidebar. It moves the more consumer-oriented options -- "Embeddable HTML" and "Image" -- alongside the "Link" option for sharing. The OSM XML "Export" option remains, but no longer needs the prominence of a top bar tab, so is moved to the sidebar alongside GPS Traces under a new "Data" section.
Two additional enhancements are included:
View the changes on a test deployment