diff options
| -rw-r--r-- | static/edit_area.js | 5 | ||||
| -rw-r--r-- | static/edit_map.js | 3 | ||||
| -rw-r--r-- | static/edit_route_map.js | 3 | ||||
| -rw-r--r-- | static/main_map.js | 3 |
4 files changed, 9 insertions, 5 deletions
diff --git a/static/edit_area.js b/static/edit_area.js index 325deaf..4daccf3 100644 --- a/static/edit_area.js +++ b/static/edit_area.js @@ -33,7 +33,8 @@ function updateForm(){ function init(){ map = new OpenLayers.Map ('map_edit', { controls:[new OpenLayers.Control.Navigation(), - new OpenLayers.Control.PanZoomBar(), + new OpenLayers.Control.PanPanel(), + new OpenLayers.Control.ZoomPanel(), new OpenLayers.Control.Attribution()], maxResolution: 156543.0399, units: 'm', @@ -47,4 +48,4 @@ function init(){ if (!zoomToCurrentExtent(map)){ map.setCenter(centerLonLat, 12); } -}
\ No newline at end of file +} diff --git a/static/edit_map.js b/static/edit_map.js index d8e88b4..d9b9f12 100644 --- a/static/edit_map.js +++ b/static/edit_map.js @@ -61,7 +61,8 @@ var putMarker = function (lonlat, zoom){ function init(){ map = new OpenLayers.Map ('map_edit', { controls:[new OpenLayers.Control.Navigation(), - new OpenLayers.Control.PanZoomBar(), + new OpenLayers.Control.PanPanel(), + new OpenLayers.Control.ZoomPanel(), new OpenLayers.Control.Attribution()], maxResolution: 156543.0399, units: 'm', diff --git a/static/edit_route_map.js b/static/edit_route_map.js index e366f0b..491f811 100644 --- a/static/edit_route_map.js +++ b/static/edit_route_map.js @@ -84,7 +84,8 @@ var pathModify = new OpenLayers.Control.ModifyFeature(vectors, function init(){ map = new OpenLayers.Map('map_edit', { controls:[new OpenLayers.Control.Navigation(), - new OpenLayers.Control.PanZoomBar(), + new OpenLayers.Control.PanPanel(), + new OpenLayers.Control.ZoomPanel(), new OpenLayers.Control.Attribution(), pathCreate, pathModify], diff --git a/static/main_map.js b/static/main_map.js index bf69a9a..7cc80a6 100644 --- a/static/main_map.js +++ b/static/main_map.js @@ -359,7 +359,8 @@ function init(){ /* set the main map */ map = new OpenLayers.Map('map', { controls:[new OpenLayers.Control.Navigation(), - new OpenLayers.Control.PanZoomBar(), + new OpenLayers.Control.PanPanel(), + new OpenLayers.Control.ZoomPanel(), new OpenLayers.Control.ScaleLine()], maxResolution: 156543.0399, units: 'm', |
