mirror of https://gitee.com/antv-l7/antv-l7
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:
parent
48f5f9522a
commit
3afb611745
|
@ -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') {
|
||||
|
|
Loading…
Reference in New Issue