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

@ -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) {