try switching to OSM
This commit is contained in:
parent
d54d281f17
commit
fbde0b9f2f
|
@ -127,10 +127,15 @@ var API_BASE = "/1.0/",
|
||||||
var center = new OpenLayers.LonLat(72.855211097628413, 19.010775291486027);
|
var center = new OpenLayers.LonLat(72.855211097628413, 19.010775291486027);
|
||||||
map = new OpenLayers.Map("mapCol", {});
|
map = new OpenLayers.Map("mapCol", {});
|
||||||
var layers = [];
|
var layers = [];
|
||||||
|
layers[0] = new OpenLayers.Layer.WMS("OpenStreetMaps",
|
||||||
|
"http://vmap0.tiles.osgeo.org/wms/vmap0",
|
||||||
|
{layers: 'basic'});
|
||||||
|
/*
|
||||||
layers[0] = new OpenLayers.Layer.Google(
|
layers[0] = new OpenLayers.Layer.Google(
|
||||||
"Google Streets", // the default
|
"Google Streets", // the default
|
||||||
{numZoomLevels: 20, isBaseLayer: true}
|
{numZoomLevels: 20, isBaseLayer: true}
|
||||||
);
|
);
|
||||||
|
*/
|
||||||
geojson_format = new OpenLayers.Format.GeoJSON();
|
geojson_format = new OpenLayers.Format.GeoJSON();
|
||||||
//yes, jsonLayer is global. Yes, I know it's wrong.
|
//yes, jsonLayer is global. Yes, I know it's wrong.
|
||||||
jsonLayer = layers[1] = new OpenLayers.Layer.Vector({'geometryType': 'Point'});
|
jsonLayer = layers[1] = new OpenLayers.Layer.Vector({'geometryType': 'Point'});
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<link rel="stylesheet" href="/static/css/editstops.css" />
|
<link rel="stylesheet" href="/static/css/editstops.css" />
|
||||||
<script type="text/javascript" src="/static/js/editstops.js"></script>
|
<script type="text/javascript" src="/static/js/editstops.js"></script>
|
||||||
<script type="text/javascript" src="http://openlayers.org/dev/OpenLayers.js"></script>
|
<script type="text/javascript" src="http://openlayers.org/dev/OpenLayers.js"></script>
|
||||||
<script src='http://maps.google.com/maps?file=api&v=2&key=AIzaSyBbz_Bjqtf5U9qGZw4xoS5PxLDadHsC0AA'></script>
|
<!-- <script src='http://maps.google.com/maps?file=api&v=2&key=AIzaSyBbz_Bjqtf5U9qGZw4xoS5PxLDadHsC0AA'></script> -->
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user