[openstreetmap-website] Replace PanZoom control with Zoom control for small maps (#53)

Sarah Hoffmann reply+i-5620961-834b41936ca05b53f90334275d9b2da91df89729-1419053 at reply.github.com
Sat Jul 14 16:29:46 BST 2012


The event handling of PanZoom and PanZoomBar clashes in OL 2.12. The result is that the zoom level changes by two steps every time the +/- buttons on the zoom controls are pressed. Using the Zoom control fixes this issue.

As an added bonus, the Zoom control is marginally more user-friendly on touchscreens (and would resolve issue #44).

You can merge this Pull Request by running:

  git pull https://github.com/lonvia/openstreetmap-website panzoom-fix

Or you can view, comment on it, or merge it online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/53

-- Commit Summary --

* replace PanZoom control with Zoom control for small maps

-- File Changes --

M app/assets/javascripts/map.js.erb (2)
M app/assets/stylesheets/common.css.scss (2)
M app/assets/stylesheets/large.css (2)
M app/assets/stylesheets/print.css (2)
M app/views/changeset/_map.html.erb (2)
M config/openlayers.cfg (1)
M public/export/embed.html (2)
M vendor/assets/openlayers/OpenLayers.js (1910)

-- Patch Links --

  https://github.com/openstreetmap/openstreetmap-website/pull/53.patch
  https://github.com/openstreetmap/openstreetmap-website/pull/53.diff

---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/53



More information about the rails-dev mailing list