[dataset_map] Use MapQuest tiles instead of OSM ones
Because of http://wiki.openstreetmap.org/wiki/Tile_usage_policy
This commit is contained in:
parent
510703ec36
commit
51a8dfa857
|
@ -9,6 +9,7 @@ PACKAGE_MAP="""
|
|||
<div class="dataset-map subsection">
|
||||
<h3>%(title)s</h3>
|
||||
<div id="dataset-map-container"></div>
|
||||
<div id="dataset-map-attribution">Map data CC-BY-SA by <a href="http://openstreetmap.org">OpenStreetMap</a> | Tiles courtesy of <a href="http://www.mapquest.com">MapQuest</a></div>
|
||||
</div>
|
||||
"""
|
||||
|
||||
|
|
|
@ -2,6 +2,10 @@
|
|||
padding-bottom: 10px
|
||||
}
|
||||
|
||||
#dataset-map-attribution{
|
||||
font-size: x-small;
|
||||
}
|
||||
|
||||
.olControlAttribution {
|
||||
left: 5px;
|
||||
right: inherit;
|
||||
|
|
|
@ -49,10 +49,15 @@ CKAN.DatasetMap = function($){
|
|||
$("#dataset-map-container").width(w);
|
||||
$("#dataset-map-container").height(w/3);
|
||||
|
||||
var mapquestTiles = [
|
||||
"http://otile1.mqcdn.com/tiles/1.0.0/osm/${z}/${x}/${y}.jpg",
|
||||
"http://otile2.mqcdn.com/tiles/1.0.0/osm/${z}/${x}/${y}.jpg",
|
||||
"http://otile3.mqcdn.com/tiles/1.0.0/osm/${z}/${x}/${y}.jpg",
|
||||
"http://otile4.mqcdn.com/tiles/1.0.0/osm/${z}/${x}/${y}.jpg"];
|
||||
|
||||
var layers = [
|
||||
new OpenLayers.Layer.OSM()
|
||||
]
|
||||
new OpenLayers.Layer.OSM("MapQuest-OSM Tiles", mapquestTiles)
|
||||
];
|
||||
|
||||
|
||||
// Create a new map
|
||||
|
@ -65,7 +70,6 @@ CKAN.DatasetMap = function($){
|
|||
"maxResolution": 156543.0339,
|
||||
"maxExtent": new OpenLayers.Bounds(-20037508, -20037508, 20037508, 20037508.34),
|
||||
"controls": [
|
||||
new OpenLayers.Control.Attribution(),
|
||||
new OpenLayers.Control.PanZoom(),
|
||||
new OpenLayers.Control.Navigation()
|
||||
],
|
||||
|
|
Loading…
Reference in New Issue