fix missing API key issue
This commit is contained in:
parent
841cceaf3f
commit
835a1f3b6f
2 changed files with 9 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
|||
version: "3"
|
||||
version: "3.0"
|
||||
|
||||
services:
|
||||
|
||||
|
|
|
@ -34,10 +34,14 @@
|
|||
var osm_Map = L.tileLayer(osm_Url, {attribution: osm_Attrib}),
|
||||
esri_Map = L.esri.basemapLayer("Topographic"),
|
||||
otm_Map = L.tileLayer(otm_Url, {attribution: otm_Attrib}),
|
||||
google_Map = L.tileLayer(google_Url, {attribution: google_Attrib}),
|
||||
google_Map = L.tileLayer(google_Url, {attribution: google_Attrib})
|
||||
|
||||
{%- if bing_api_key %},
|
||||
bing_dark = L.tileLayer.bing({bingMapsKey: '{{bing_api_key}}', imagerySet: 'CanvasDark', attribution: bing_Attrib}),
|
||||
bing_sat = L.tileLayer.bing({bingMapsKey: '{{bing_api_key}}', imagerySet: 'Aerial', attribution: bing_Attrib}),
|
||||
bing_sat_labels = L.tileLayer.bing({bingMapsKey: 'Ahpy5iReID6QJSUjazLaJbAkUMg2R990DMsYlbxMbf3irXoOVgFb0eyV3JPntW2Q', imagerySet: 'AerialWithLabels', attribution: bing_Attrib});
|
||||
bing_sat_labels = L.tileLayer.bing({bingMapsKey: '{{bing_api_key}}', imagerySet: 'AerialWithLabels', attribution: bing_Attrib})
|
||||
{% endif -%}
|
||||
;
|
||||
|
||||
//Create a map that remembers where it was zoomed to
|
||||
function boundsChanged () {
|
||||
|
@ -83,9 +87,11 @@
|
|||
"OpenStreetMap": osm_Map,
|
||||
"OpenTopoMap": otm_Map,
|
||||
"Google": google_Map,
|
||||
{%- if bing_api_key %}
|
||||
"Bing (Dark)": bing_dark,
|
||||
"Bing Satellite": bing_sat,
|
||||
"Bing Satellite (w Labels)": bing_sat_labels
|
||||
{% endif %}
|
||||
};
|
||||
L.control.layers(baseLayers).addTo(map);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue