Phi: Add some base layers to the map
- Add layers from maps.stamen.com - Add an empty layer for Richard
This commit is contained in:
parent
3fb7a64632
commit
5a1a2a64a1
2 changed files with 10 additions and 3 deletions
|
@ -18,7 +18,9 @@ require.config({
|
||||||
aircraft : '../aircraft-dir',
|
aircraft : '../aircraft-dir',
|
||||||
pagedown : '3rdparty/pagedown',
|
pagedown : '3rdparty/pagedown',
|
||||||
clockpicker : '3rdparty/clockpicker/jquery-clockpicker.min',
|
clockpicker : '3rdparty/clockpicker/jquery-clockpicker.min',
|
||||||
}
|
stamen: 'http://maps.stamen.com/js/tile.stamen',
|
||||||
|
},
|
||||||
|
waitSeconds: 30,
|
||||||
});
|
});
|
||||||
|
|
||||||
require([
|
require([
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
define(
|
define(
|
||||||
[
|
[
|
||||||
'knockout', 'jquery', 'leaflet', 'text!./map.html'
|
'knockout', 'jquery', 'leaflet', 'text!./map.html', 'stamen'
|
||||||
],
|
],
|
||||||
function(ko, jquery, leaflet, htmlString) {
|
function(ko, jquery, leaflet, htmlString) {
|
||||||
|
|
||||||
|
@ -120,7 +120,12 @@ define(
|
||||||
{
|
{
|
||||||
maxZoom : 18,
|
maxZoom : 18,
|
||||||
attribution : 'Map data © <a target="_blank" href="http://openstreetmap.org">OpenStreetMap</a> contributors'
|
attribution : 'Map data © <a target="_blank" href="http://openstreetmap.org">OpenStreetMap</a> contributors'
|
||||||
})
|
}),
|
||||||
|
"Stamen - toner" : new L.StamenTileLayer("toner"),
|
||||||
|
"Stamen - toner-background" : new L.StamenTileLayer("toner-background"),
|
||||||
|
"Stamen - toner-hybrid" : new L.StamenTileLayer("toner-hybrid"),
|
||||||
|
"Stamen - watercolor" : new L.StamenTileLayer("watercolor"),
|
||||||
|
"None" : new L.layerGroup(),
|
||||||
}
|
}
|
||||||
self.map.addLayer(baseLayers["OpenStreetMaps"]);
|
self.map.addLayer(baseLayers["OpenStreetMaps"]);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue