mirror of https://gitee.com/antv-l7/antv-l7
style: lint style
This commit is contained in:
parent
916df20c61
commit
3859ff4bbd
|
@ -129,25 +129,25 @@ export default class LayerService implements ILayerService {
|
||||||
|
|
||||||
// 渲染检测
|
// 渲染检测
|
||||||
private renderTest(renderType: string | undefined): boolean {
|
private renderTest(renderType: string | undefined): boolean {
|
||||||
// 继续渲染事件
|
// 继续渲染事件
|
||||||
if (renderType) {
|
if (renderType) {
|
||||||
switch (renderType) {
|
switch (renderType) {
|
||||||
case 'picking':
|
case 'picking':
|
||||||
// TODO: picking 类型的渲染事件
|
// TODO: picking 类型的渲染事件
|
||||||
// 若是上次触发为地图触发的渲染,则认为是地图事件与拾取事件在同时触发,放弃此次渲染
|
// 若是上次触发为地图触发的渲染,则认为是地图事件与拾取事件在同时触发,放弃此次渲染
|
||||||
if(this.lastRenderType === 'mapRender') {
|
if (this.lastRenderType === 'mapRender') {
|
||||||
this.lastRenderType = 'picking'
|
this.lastRenderType = 'picking';
|
||||||
return false
|
return false;
|
||||||
} else {
|
} else {
|
||||||
this.lastRenderType = 'picking'
|
this.lastRenderType = 'picking';
|
||||||
return true
|
return true;
|
||||||
}
|
}
|
||||||
case 'mapRender':
|
case 'mapRender':
|
||||||
this.lastRenderType = 'mapRender';
|
this.lastRenderType = 'mapRender';
|
||||||
return true;
|
return true;
|
||||||
default:
|
default:
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue