diff options
Diffstat (limited to 'static')
| -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 | 11 |
4 files changed, 4 insertions, 18 deletions
diff --git a/static/edit_area.js b/static/edit_area.js index 3105a03..325deaf 100644 --- a/static/edit_area.js +++ b/static/edit_area.js @@ -20,9 +20,6 @@ See the file COPYING for details. var map; -/* availaible map layers */ -var layerMapnik = new OpenLayers.Layer.OSM.Mapnik('Mapnik'); - /* update form fields on zoom action */ function updateForm(){ var bounds = map.getExtent(); @@ -43,7 +40,7 @@ function init(){ projection: epsg_projection, displayProjection: epsg_display_projection } ); - map.addLayers([layerMapnik]); + map.addLayers([map_layer]); map.events.register('zoomend', map, updateForm); map.events.register('moveend', map, updateForm); /* zoom to the appropriate extent */ diff --git a/static/edit_map.js b/static/edit_map.js index 6daa319..d8e88b4 100644 --- a/static/edit_map.js +++ b/static/edit_map.js @@ -21,7 +21,6 @@ See the file COPYING for details. var map; /* availaible map layers */ -var layerMapnik = new OpenLayers.Layer.OSM.Mapnik('Mapnik'); var layerMarkers = new OpenLayers.Layer.Markers('POIs'); /* default size and offset for icon */ @@ -70,7 +69,7 @@ function init(){ displayProjection: epsg_display_projection } ); layerMarkers.setOpacity(0.5); - map.addLayers([layerMapnik, layerMarkers]); + map.addLayers([map_layer, layerMarkers]); map.events.register('click', map, setMarker); /* zoom to the appropriate extent */ if (!zoomToCurrentExtent(map)){ diff --git a/static/edit_route_map.js b/static/edit_route_map.js index ee3f123..92f61f1 100644 --- a/static/edit_route_map.js +++ b/static/edit_route_map.js @@ -22,7 +22,6 @@ var map; var currentControl; /* availaible map layers */ -var layerMapnik = new OpenLayers.Layer.OSM.Mapnik('Mapnik'); var vectors = new OpenLayers.Layer.Vector("Vector Layer"); vectors.events.on({ @@ -94,7 +93,7 @@ function init(){ displayProjection: epsg_display_projection, } ); vectors.setOpacity(0.5); - map.addLayers([layerMapnik, vectors]); + map.addLayers([map_layer, vectors]); /* zoom to the appropriate extent */ if (!zoomToCurrentExtent(map)){ map.setCenter(centerLonLat, 12); diff --git a/static/main_map.js b/static/main_map.js index 364c18f..61f838a 100644 --- a/static/main_map.js +++ b/static/main_map.js @@ -16,7 +16,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. See the file COPYING for details. */ - /* main map */ /* check all the categories if clicked, unckeck if unclick */ @@ -33,12 +32,6 @@ function checkAll(item, ids){ var map; var permalink; -/* availaible map layers */ -var layerMapnik = new OpenLayers.Layer.OSM.Mapnik('Classic'); -var cyclemap = new OpenLayers.Layer.OSM.CycleMap("Cycle map", { - displayOutsideMaxExtent: true, - wrapDateLine: true}); - /* default size and offset for icon */ var size = new OpenLayers.Size(21, 25); var offset = new OpenLayers.Pixel(-(size.w/2), -size.h); @@ -338,8 +331,6 @@ function init(){ projection: new OpenLayers.Projection('EPSG:4326'), theme:null }); - /*projection: new OpenLayers.Projection('EPSG:900913'), - displayProjection: new OpenLayers.Projection('EPSG:4326')*/ permalink = new OpenLayers.Control.Permalink("permalink"); permalink.createParams = createParams; map.addControl(permalink); @@ -347,7 +338,7 @@ function init(){ if(permalink_label && permalink.div && permalink.div.childNodes.length > 0){ permalink.div.childNodes[0].textContent = permalink_label; } - map.addLayers([layerMapnik, cyclemap]); + map.addLayers([map_layer]); map.events.register('click', map, hidePopUp); |
