From fbde0b9f2f33c4cd6970aa1559e7b9ab3d2b3269 Mon Sep 17 00:00:00 2001 From: Sanj Date: Tue, 21 Feb 2012 00:46:07 +0530 Subject: [PATCH] try switching to OSM --- chaloBEST/static/js/editstops.js | 5 +++++ chaloBEST/templates/editstops.html | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/chaloBEST/static/js/editstops.js b/chaloBEST/static/js/editstops.js index 40db688..a29b934 100644 --- a/chaloBEST/static/js/editstops.js +++ b/chaloBEST/static/js/editstops.js @@ -127,10 +127,15 @@ var API_BASE = "/1.0/", var center = new OpenLayers.LonLat(72.855211097628413, 19.010775291486027); map = new OpenLayers.Map("mapCol", {}); var layers = []; + layers[0] = new OpenLayers.Layer.WMS("OpenStreetMaps", + "http://vmap0.tiles.osgeo.org/wms/vmap0", + {layers: 'basic'}); +/* layers[0] = new OpenLayers.Layer.Google( "Google Streets", // the default {numZoomLevels: 20, isBaseLayer: true} ); +*/ geojson_format = new OpenLayers.Format.GeoJSON(); //yes, jsonLayer is global. Yes, I know it's wrong. jsonLayer = layers[1] = new OpenLayers.Layer.Vector({'geometryType': 'Point'}); diff --git a/chaloBEST/templates/editstops.html b/chaloBEST/templates/editstops.html index 0583921..2d01515 100644 --- a/chaloBEST/templates/editstops.html +++ b/chaloBEST/templates/editstops.html @@ -4,7 +4,7 @@ - + {% endblock %}