fix: 瓦片事件监听失效 (#1365)

* fix: 修复 featureScale 错误

* style: lint style

* fix: remove featureScalePlugin async

* fix: 修复瓦片图层事件失效

* style: lint style

Co-authored-by: shihui <yiqianyao.yqy@alibaba-inc.com>
This commit is contained in:
YiQianYao 2022-10-08 10:55:45 +08:00 committed by GitHub
parent 48f5f9522a
commit 3afb611745
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -277,7 +277,7 @@ export default class TileFactory implements ITileFactory {
protected emitEvent(layers: ILayer[], isVector?: boolean) {
layers.map((layer) => {
layer.once('inited', () => {
layer.once('modelLoaded', () => {
layer.on('click', (e) => {
this.eventCache.click = 1;
if (this.parentLayer.type === 'RasterLayer') {