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
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue