summaryrefslogtreecommitdiff
path: root/static/main_map.js
diff options
context:
space:
mode:
authoretienne <etienne@9215b0d5-fb2c-4bbd-8d3e-bd2e9090e864>2009-01-25 17:50:02 +0000
committeretienne <etienne@9215b0d5-fb2c-4bbd-8d3e-bd2e9090e864>2009-01-25 17:50:02 +0000
commit751846ea0ade97184b5417bcfd64efc6f97a128f (patch)
tree23c8769abf0de0974b40f82ea9251f36058882c9 /static/main_map.js
parentccea45fa5494a2a89b99e0a222c16ee897884b09 (diff)
downloadChimère-751846ea0ade97184b5417bcfd64efc6f97a128f.tar.bz2
Chimère-751846ea0ade97184b5417bcfd64efc6f97a128f.zip
Configuration of the map in the configuration file
git-svn-id: http://www.peacefrogs.net/svn/chimere/trunk@27 9215b0d5-fb2c-4bbd-8d3e-bd2e9090e864
Diffstat (limited to 'static/main_map.js')
-rw-r--r--static/main_map.js11
1 files changed, 1 insertions, 10 deletions
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);