Restore onAdd method
This commit is contained in:
parent
490d91fe15
commit
b94b4812c7
@ -60,8 +60,8 @@ L.CanvasLayer = L.Layer.extend({
|
||||
return canvas;
|
||||
},
|
||||
|
||||
_layerAdd: function (e) {
|
||||
var map = this._map = e.target;
|
||||
onAdd: function (map) {
|
||||
this._map = map;
|
||||
|
||||
// add container with the canvas to the tile pane
|
||||
// the container is moved in the oposite direction of the
|
||||
|
Loading…
Reference in New Issue
Block a user