Replace custom Bing.js with current
Now provides file:// support and init on layer add instead of page load
This commit is contained in:
parent
521660ca15
commit
0e471bade0
3 changed files with 2 additions and 9 deletions
|
|
@ -8,7 +8,7 @@
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"leaflet": "~0.7.3",
|
"leaflet": "~0.7.3",
|
||||||
"leaflet-plugins": "nrenner/leaflet-plugins#https-only",
|
"leaflet-plugins": "~2.0.0",
|
||||||
"leaflet-routing": "Turistforeningen/leaflet-routing#gh-pages",
|
"leaflet-routing": "Turistforeningen/leaflet-routing#gh-pages",
|
||||||
"async": "~0.9.2",
|
"async": "~0.9.2",
|
||||||
"d3": "~3.5.5",
|
"d3": "~3.5.5",
|
||||||
|
|
|
||||||
|
|
@ -64,7 +64,6 @@ BR.Map = {
|
||||||
}
|
}
|
||||||
|
|
||||||
bing._key = key;
|
bing._key = key;
|
||||||
bing.loadMetadata();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
map = new L.Map('map', {
|
map = new L.Map('map', {
|
||||||
|
|
|
||||||
|
|
@ -6,13 +6,7 @@ BR.BingLayer = L.BingLayer.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
initialize: function(key, options) {
|
initialize: function(key, options) {
|
||||||
// override super to disable loadMetadata until async key load (called explicitly then)
|
L.BingLayer.prototype.initialize.call(this, key, options);
|
||||||
L.Util.setOptions(this, options);
|
|
||||||
|
|
||||||
this._key = key;
|
|
||||||
this._url = null;
|
|
||||||
this.meta = {};
|
|
||||||
//this.loadMetadata();
|
|
||||||
|
|
||||||
this._logo = L.control({position: 'bottomleft'});
|
this._logo = L.control({position: 'bottomleft'});
|
||||||
this._logo.onAdd = function (map) {
|
this._logo.onAdd = function (map) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue