Commit 74e9f71b authored by 张启明's avatar 张启明

style: smart3d.LayerManager.getLayer => smart3d.LayerManager.getInstance

parent 00598bd2
...@@ -89,7 +89,7 @@ export class ViewerService { ...@@ -89,7 +89,7 @@ export class ViewerService {
*/ */
getPrimitiveByLayerName(name: string) { getPrimitiveByLayerName(name: string) {
const layer = this.getLayerByName(name); const layer = this.getLayerByName(name);
return layer ? this.layerManager.getLayer(layer) : undefined; return layer ? this.layerManager.getInstance(layer) : undefined;
} }
/** /**
...@@ -106,7 +106,7 @@ export class ViewerService { ...@@ -106,7 +106,7 @@ export class ViewerService {
*/ */
flyToLayerByName(name: string): void { flyToLayerByName(name: string): void {
const currentLayer = this.getLayerByName(name); const currentLayer = this.getLayerByName(name);
if (undefined !== currentLayer) { if (currentLayer) {
this.flyToLayer(currentLayer); this.flyToLayer(currentLayer);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment