Skip to content

Commit

Permalink
fix issue 861 maptalks#861
Browse files Browse the repository at this point in the history
  • Loading branch information
deyihu committed Feb 22, 2019
1 parent 1348dc7 commit 623d880
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/layer/ImageLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class ImageLayer extends Layer {
}
this._imageData = images.map(img => {
return extend({}, img, {
extent : new Extent(img.extent),
extent: new Extent(img.extent),
});
});
this._images = images;
Expand Down Expand Up @@ -217,6 +217,8 @@ export class ImageLayerGLRenderer extends ImageGLRenderable(ImageLayerCanvasRend
if (!extent2d) {
extent2d = extent.__imagelayerposition = extent.convertTo(c => map.coordToPoint(c, map.getGLZoom()));
}
// delete image.texture;
delete image.glBuffer;
this.drawGLImage(image, extent2d.xmin, extent2d.ymin, extent2d.getWidth(), extent2d.getHeight(), opacity);
}

Expand Down

0 comments on commit 623d880

Please sign in to comment.