Skip to content

Commit

Permalink
L.GridLayer/onAdd: avoid excessive _update call (Leaflet#7570)
Browse files Browse the repository at this point in the history
..which is already implicitly called earlier by _resetView
  • Loading branch information
johnd0e authored and JLyne committed Sep 1, 2021
1 parent 96d1881 commit c4a9596
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/layer/tile/GridLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,7 @@ export var GridLayer = Layer.extend({
this._levels = {};
this._tiles = {};

this._resetView();
this._update();
this._resetView(); // implicit _update() call
},

beforeAdd: function (map) {
Expand Down

0 comments on commit c4a9596

Please sign in to comment.