add DigitalGlobe Recent Imagery layer
This commit is contained in:
parent
a9f2b0cb18
commit
d53fb7723f
2 changed files with 14 additions and 1 deletions
10
js/Map.js
10
js/Map.js
|
|
@ -84,6 +84,16 @@ BR.Map = {
|
||||||
baseLayers['Bing Aerial'] = new BR.BingLayer(BR.keys.bing);
|
baseLayers['Bing Aerial'] = new BR.BingLayer(BR.keys.bing);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (BR.keys.digitalGlobe) {
|
||||||
|
var recent = new L.tileLayer('https://{s}.tiles.mapbox.com/v4/digitalglobe.nal0g75k/{z}/{x}/{y}.png?access_token=' + BR.keys.digitalGlobe, {
|
||||||
|
minZoom: 1,
|
||||||
|
maxZoom: 19,
|
||||||
|
attribution: '© <a href="https://www.digitalglobe.com/platforms/mapsapi">DigitalGlobe</a> ('
|
||||||
|
+ '<a href="http://bit.ly/mapsapiview">Terms of Use</a>)'
|
||||||
|
});
|
||||||
|
baseLayers['DigitalGlobe Recent Imagery'] = recent;
|
||||||
|
}
|
||||||
|
|
||||||
if (BR.conf.clearBaseLayers) {
|
if (BR.conf.clearBaseLayers) {
|
||||||
baseLayers = {};
|
baseLayers = {};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,10 @@
|
||||||
|
|
||||||
BR.keys = {
|
BR.keys = {
|
||||||
// Bing maps, http://www.microsoft.com/maps/default.aspx
|
// Bing maps, http://www.microsoft.com/maps/default.aspx
|
||||||
bing: ''
|
bing: '',
|
||||||
|
|
||||||
|
// DigitalGlobe, https://developer.digitalglobe.com/maps-api/#plans
|
||||||
|
digitalGlobe: ''
|
||||||
};
|
};
|
||||||
|
|
||||||
})();
|
})();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue