summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoretienne <etienne@9215b0d5-fb2c-4bbd-8d3e-bd2e9090e864>2010-01-18 10:19:49 +0000
committeretienne <etienne@9215b0d5-fb2c-4bbd-8d3e-bd2e9090e864>2010-01-18 10:19:49 +0000
commit857433958e87438451e937b1d3e54dbb1924e785 (patch)
tree70a954816a4d50348fb11b9909d88c20496ea5d1
parent71d554e3b9dff7d1485e1da32e67afcd641ffb9e (diff)
downloadChimère-857433958e87438451e937b1d3e54dbb1924e785.tar.bz2
Chimère-857433958e87438451e937b1d3e54dbb1924e785.zip
Change panel type to allow customization - #71
git-svn-id: http://www.peacefrogs.net/svn/chimere/trunk@47 9215b0d5-fb2c-4bbd-8d3e-bd2e9090e864
-rw-r--r--static/edit_area.js5
-rw-r--r--static/edit_map.js3
-rw-r--r--static/edit_route_map.js3
-rw-r--r--static/main_map.js3
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',