Skip to content

Commit

Permalink
fix mapbox and maptalks layer throw error in latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
pissang committed Apr 8, 2021
1 parent 012c94b commit d0358ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/component/mapbox3D/Mapbox3DLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ function Mapbox3DLayer (id, zr) {

}

Mapbox3DLayer.prototype.setUnpainted = function () {};
Mapbox3DLayer.prototype.resize = function () {
this._mapbox.resize();
};
Expand Down
1 change: 1 addition & 0 deletions src/component/maptalks3D/Maptalks3DLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ function Maptalks3DLayer (id, zr, defaultCenter, defaultZoom) {

}

Maptalks3DLayer.prototype.setUnpainted = function () {};
Maptalks3DLayer.prototype.resize = function () {
this._maptalks.checkSize();
};
Expand Down

0 comments on commit d0358ed

Please sign in to comment.