From 5dfad354ff2c76f3085a9f1a1b38dd5b58cd98e5 Mon Sep 17 00:00:00 2001 From: Sanj Date: Tue, 21 Feb 2012 00:49:28 +0530 Subject: [PATCH] switch back to google maps until i understand projections --- chaloBEST/static/js/editstops.js | 6 +++--- chaloBEST/templates/editstops.html | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/chaloBEST/static/js/editstops.js b/chaloBEST/static/js/editstops.js index a37e7c5..15b0408 100644 --- a/chaloBEST/static/js/editstops.js +++ b/chaloBEST/static/js/editstops.js @@ -127,13 +127,13 @@ 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.OSM(); -/* +// layers[0] = new OpenLayers.Layer.OSM(); + 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 2d01515..0583921 100644 --- a/chaloBEST/templates/editstops.html +++ b/chaloBEST/templates/editstops.html @@ -4,7 +4,7 @@ - + {% endblock %}