-
Notifications
You must be signed in to change notification settings - Fork 1.3k
revisit rotation limits #458
Comments
I would like to have the option to rotate when zoomed out purely because Google Maps can and we want to be better than Google Maps. |
Just fill northern part with sea colour, and southern part with ice colour. Might not work with certain styles or satellite imagery. The main problem with locking rotation is that there is no feedback, e.g. 'bounce' when trying to drag past the end of a scroll box. Thus the user thinks they can't rotate the map at all, or something is wrong e.g. we are not reading their rotate gesture. |
@incanus Another argument for no rotation - we should not force a user into a particular direction as being 'up'. Some Australians like to think that we are at the top of the world and that all maps should look like this: |
Two more againsts - it causes bugs/confusion, see: |
Let's try to keep discussions about limitations to rotation (whether zoom or antimeridian) in this ticket. Closing #618. I absolutely take your point about Australian preference @ljbade. But check out how Apple Maps handles this: (Smooth video version here) The animation style is more of a hint than anything, and the antimeridian issue is actually really a zoom issue. If you zoom way in on the Southern Pacific, then rotate, then pan across the ocean, rotation is allowed. It's only at lower-numbered zooms that this rotates back to north. We could always add a preference for this, but I'm thinking that based on the kinds of visualizations that are likely to be used by these tools, especially on mobile, restricting rotation to higher-numbered zooms is ok. And I really like the elegance of the user cue in Apple's style of animation. |
Hmm, I think we should make this a option you can turn on and off. Apple's animation style does help to show what is happening to the user. But the antimeridian lock is just dumb because there is no reason for it, the map wraps around so there is no edge to the map there and it is really annoying in New Zealand. |
Or at least add a dashed line to the mbgl maps along the antimeridian to show there is a map seam there. |
FWIW, Google Maps does not have any rotation constraining behavior. Seems like we have consensus that this doesn't work well as a low-level feature -- it should be an option in the cocoa bindings though. Ticketed as cutting-room-floor/mapbox-gl-cocoa#66. |
@jfirebaugh rotate still does not work when zoomed out, it seems to be related to having the north/south or antimeridian in the map. Can you remove this restriction as well? and just let black/grey fill colour show in the corners like in the Google Maps screenshot above. |
gl-native currently disallows rotation at z<3. This prevents several use cases that it should support:
This is also currently causing headless test failures on fill-translate-anchor tests, which apply 90° rotation at z0.
I think we should remove the current rotation limits in Transform and replace them with something that applies constraints at a higher level, is off in headless contexts, can be opt-out in interactive contexts, and shares behavior with gl-js.
The text was updated successfully, but these errors were encountered: