try switching to OSM

This commit is contained in:
Sanj 2012-02-21 00:46:07 +05:30
parent d54d281f17
commit fbde0b9f2f
2 changed files with 6 additions and 1 deletions

View File

@ -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'});

View File

@ -4,7 +4,7 @@
<link rel="stylesheet" href="/static/css/editstops.css" />
<script type="text/javascript" src="/static/js/editstops.js"></script>
<script type="text/javascript" src="http://openlayers.org/dev/OpenLayers.js"></script>
<script src='http://maps.google.com/maps?file=api&amp;v=2&amp;key=AIzaSyBbz_Bjqtf5U9qGZw4xoS5PxLDadHsC0AA'></script>
<!-- <script src='http://maps.google.com/maps?file=api&amp;v=2&amp;key=AIzaSyBbz_Bjqtf5U9qGZw4xoS5PxLDadHsC0AA'></script> -->
{% endblock %}