Replace custom Bing.js with current

Now provides file:// support and init on layer add instead of page load
This commit is contained in:
Norbert Renner 2016-09-21 19:53:38 +02:00
parent 521660ca15
commit 0e471bade0
3 changed files with 2 additions and 9 deletions

View file

@ -8,7 +8,7 @@
],
"dependencies": {
"leaflet": "~0.7.3",
"leaflet-plugins": "nrenner/leaflet-plugins#https-only",
"leaflet-plugins": "~2.0.0",
"leaflet-routing": "Turistforeningen/leaflet-routing#gh-pages",
"async": "~0.9.2",
"d3": "~3.5.5",

View file

@ -64,7 +64,6 @@ BR.Map = {
}
bing._key = key;
bing.loadMetadata();
});
map = new L.Map('map', {

View file

@ -6,13 +6,7 @@ BR.BingLayer = L.BingLayer.extend({
},
initialize: function(key, options) {
// override super to disable loadMetadata until async key load (called explicitly then)
L.Util.setOptions(this, options);
this._key = key;
this._url = null;
this.meta = {};
//this.loadMetadata();
L.BingLayer.prototype.initialize.call(this, key, options);
this._logo = L.control({position: 'bottomleft'});
this._logo.onAdd = function (map) {