Skip to content

Commit 2efc688

Browse files
author
caoxinke
committed
fix OpenLayers MapV图层点击报错的问题。
1 parent a91e83a commit 2efc688

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

dist/iclient9-openlayers.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51518,6 +51518,11 @@ var MapvLayer = function (_BaiduMapLayer) {
5151851518
}
5151951519
}
5152051520
}
51521+
}, {
51522+
key: 'getContext',
51523+
value: function getContext() {
51524+
return this.canvasLayer.canvas.getContext(this.context);
51525+
}
5152151526
}, {
5152251527
key: 'clear',
5152351528
value: function clear(context) {

dist/iclient9-openlayers.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/openlayers/overlay/mapv/MapvLayer.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,10 @@ export default class MapvLayer extends BaiduMapLayer {
197197
}
198198
}
199199

200+
getContext() {
201+
return this.canvasLayer.canvas.getContext(this.context);
202+
}
203+
200204
clear(context) {
201205
context && context.clearRect && context.clearRect(0, 0, context.canvas.width, context.canvas.height);
202206
}

0 commit comments

Comments
 (0)