[openstreetmap-website] Rewrite PanZoom to a pure-css implementation. (#44)

Tom MacWright reply+i-4242545-6df3cb1093d69de9494f5cbd9625a02dbb18551c-1419053 at reply.github.com
Mon Apr 23 16:21:39 BST 2012


Restyles the pan zoom bar

![](http://dl.dropbox.com/u/68059/Screenshots/0~qk7yc--_4y.png)

No more zoom slider at this point. Maybe it should return; OpenLayers hacking is exhausting and unendingly stupid so I gave up with porting it.

But it looks better, thx to @ajashton's graphic work.

You can merge this Pull Request by running:

  git pull https://github.com/tmcw/openstreetmap-website panbar

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

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

-- Commit Summary --

* Rewrite PanZoom to a pure-css implementation. Restyle

-- File Changes --

M app/assets/javascripts/map.js.erb (9)
M app/assets/javascripts/openlayers.js.erb (34)
A app/assets/openlayers/OkayPanZoom.js (141)
A app/assets/openlayers/theme/custom/.OkayPanZoom.css.scss.swo (0)
A app/assets/openlayers/theme/custom/.OkayPanZoom.css.scss.swp (0)
A app/assets/openlayers/theme/custom/.style.css.scss.swp (0)
A app/assets/openlayers/theme/custom/OkayPanZoom.css.scss (58)
R app/assets/openlayers/theme/custom/SimpleLayerSwitcher.css.scss (2)
A app/assets/openlayers/theme/custom/img/404.png (0)
A app/assets/openlayers/theme/custom/img/add_point_off.png (0)
A app/assets/openlayers/theme/custom/img/add_point_on.png (0)
A app/assets/openlayers/theme/custom/img/blank.gif (0)
A app/assets/openlayers/theme/custom/img/carat.png (0)
A app/assets/openlayers/theme/custom/img/cloud-popup-relative.png (0)
A app/assets/openlayers/theme/custom/img/drag-rectangle-off.png (0)
A app/assets/openlayers/theme/custom/img/drag-rectangle-on.png (0)
A app/assets/openlayers/theme/custom/img/draw_line_off.png (0)
A app/assets/openlayers/theme/custom/img/draw_line_on.png (0)
A app/assets/openlayers/theme/custom/img/draw_point_off.png (0)
A app/assets/openlayers/theme/custom/img/draw_point_on.png (0)
A app/assets/openlayers/theme/custom/img/draw_polygon_off.png (0)
A app/assets/openlayers/theme/custom/img/draw_polygon_on.png (0)
A app/assets/openlayers/theme/custom/img/east-mini.png (0)
A app/assets/openlayers/theme/custom/img/editing_tool_bar.png (0)
A app/assets/openlayers/theme/custom/img/layer-switcher-maximize.png (0)
A app/assets/openlayers/theme/custom/img/layer-switcher-minimize.png (0)
A app/assets/openlayers/theme/custom/img/map_sprite.png (0)
A app/assets/openlayers/theme/custom/img/marker-blue.png (0)
A app/assets/openlayers/theme/custom/img/marker-gold.png (0)
A app/assets/openlayers/theme/custom/img/marker-green.png (0)
A app/assets/openlayers/theme/custom/img/marker.png (0)
A app/assets/openlayers/theme/custom/img/measuring-stick-off.png (0)
A app/assets/openlayers/theme/custom/img/measuring-stick-on.png (0)
A app/assets/openlayers/theme/custom/img/move_feature_off.png (0)
A app/assets/openlayers/theme/custom/img/move_feature_on.png (0)
A app/assets/openlayers/theme/custom/img/navigation_history.png (0)
A app/assets/openlayers/theme/custom/img/north-mini.png (0)
A app/assets/openlayers/theme/custom/img/pan-panel-NOALPHA.png (0)
A app/assets/openlayers/theme/custom/img/pan-panel.png (0)
A app/assets/openlayers/theme/custom/img/pan_off.png (0)
A app/assets/openlayers/theme/custom/img/pan_on.png (0)
A app/assets/openlayers/theme/custom/img/panning-hand-off.png (0)
A app/assets/openlayers/theme/custom/img/panning-hand-on.png (0)
A app/assets/openlayers/theme/custom/img/remove_point_off.png (0)
A app/assets/openlayers/theme/custom/img/remove_point_on.png (0)
A app/assets/openlayers/theme/custom/img/ruler.png (0)
A app/assets/openlayers/theme/custom/img/save_features_off.png (0)
A app/assets/openlayers/theme/custom/img/save_features_on.png (0)
A app/assets/openlayers/theme/custom/img/slider.png (0)
A app/assets/openlayers/theme/custom/img/south-mini.png (0)
A app/assets/openlayers/theme/custom/img/view_next_off.png (0)
A app/assets/openlayers/theme/custom/img/view_next_on.png (0)
A app/assets/openlayers/theme/custom/img/view_previous_off.png (0)
A app/assets/openlayers/theme/custom/img/view_previous_on.png (0)
A app/assets/openlayers/theme/custom/img/west-mini.png (0)
A app/assets/openlayers/theme/custom/img/zoom-minus-mini.png (0)
A app/assets/openlayers/theme/custom/img/zoom-panel-NOALPHA.png (0)
A app/assets/openlayers/theme/custom/img/zoom-panel.png (0)
A app/assets/openlayers/theme/custom/img/zoom-plus-mini.png (0)
A app/assets/openlayers/theme/custom/img/zoom-world-mini.png (0)
A app/assets/openlayers/theme/custom/img/zoombar.png (0)
R app/assets/openlayers/theme/custom/style.css.scss (5)

-- Patch Links --

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

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



More information about the rails-dev mailing list