ua-snap / mapventure

Frontend for maps built with GeoServer
3 stars 0 forks source link

Deactivating split map leaves large margin on right side of screen #340

Open brucecrevensten opened 7 years ago

brucecrevensten commented 7 years ago

See screenshot below. STR:

Expected: map re-centers Actual: it stays where it was, and that results in a big gap on the right side of the screen.

brucecrevensten commented 7 years ago
screen shot 2017-05-19 at 4 12 47 pm

Touch hard to see but notice the zoom control in the upper right corner.

brucecrevensten commented 7 years ago

Note that this isn't exactly a bug, it's a consequence of the map having finite spatial extent at the outermost zoom level. One "fix" would be to recenter the map when the split maps are deactivated, but this would have other implications -- if you're zoomed in this doesn't really happen, and do we want the map to jump back to the center in that case? It's a little more complex than it first seems. One other approach would be to pick some kind of neutral background color instead of white, so that the map more clearly appears to have an "edge".

Discuss before working.