diff options
Diffstat (limited to 'static/main_map.js')
| -rw-r--r-- | static/main_map.js | 11 | 
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);  | 
