From: Tom Hughes Date: Fri, 23 Oct 2009 23:31:19 +0000 (+0000) Subject: Use a PanZoom control on small screens instead of a PanZoomBar control. X-Git-Tag: live~7047 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/78d4944caabb269b7b5cc43802d9b46798e47dfe?hp=843d601b0a4df3e0cb81fdedc8e7f7e55379e0e0 Use a PanZoom control on small screens instead of a PanZoomBar control. --- diff --git a/public/javascripts/map.js b/public/javascripts/map.js index a25ab1614..e548a89a4 100644 --- a/public/javascripts/map.js +++ b/public/javascripts/map.js @@ -22,6 +22,7 @@ function createMap(divName, options) { new OpenLayers.Control.Attribution(), new OpenLayers.Control.LayerSwitcher(), new OpenLayers.Control.Navigation(), + new OpenLayers.Control.PanZoom(), new OpenLayers.Control.PanZoomBar() ], units: "m", diff --git a/public/stylesheets/print.css b/public/stylesheets/print.css index 3acf6b3fb..7d8c1a956 100644 --- a/public/stylesheets/print.css +++ b/public/stylesheets/print.css @@ -18,6 +18,10 @@ display: none; } +.olControlPanZoom { + display: none; +} + .olControlPanZoomBar { display: none; } diff --git a/public/stylesheets/site-sml.css b/public/stylesheets/site-sml.css index 5c5213ac8..4f49100e9 100644 --- a/public/stylesheets/site-sml.css +++ b/public/stylesheets/site-sml.css @@ -142,3 +142,7 @@ h1 { width: 100%; max-width: 18em; } + +.olControlPanZoomBar { + display: none; +} diff --git a/public/stylesheets/site.css b/public/stylesheets/site.css index 4b40940df..b39c8a7b9 100644 --- a/public/stylesheets/site.css +++ b/public/stylesheets/site.css @@ -3,3 +3,7 @@ #logo-img-sml { display: none; } + +.olControlPanZoom { + display: none; +}