Restore onAdd method

This commit is contained in:
Francisco López 2017-03-22 13:51:30 +01:00
parent 490d91fe15
commit b94b4812c7

View File

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