addLayer
addLayer: (name: string) => Promise<boolean>
Type declaration
- (name: string): Promise<boolean>
Returns Promise<boolean>
是否成功
clearLayer
clearLayer: (name: string) => boolean
Type declaration
- (name: string): boolean
Returns boolean
图层不存在时返回 false
containsLayer
containsLayer: (name: string) => boolean
getGraphic
getGraphic: (layerName: string, graphicId: string) => IEntityGraphic | undefined getGraphicCount
getGraphicCount: (name: string) => number
getGraphicExtra: (
layerName: string,
graphicId: string,
) => Record<string, unknown> | undefined
Type declaration
- (layerName: string, graphicId: string): Record<string, unknown> | undefined
Parameters
- layerName: string
- graphicId: string
Returns Record<string, unknown> | undefined
图形的属性信息
getGraphicStyle
getGraphicStyle: (layerName: string, graphicId: string) => IStyle3D | undefined Type declaration
- (layerName: string, graphicId: string): IStyle3D | undefined
Parameters
- layerName: string
- graphicId: string
Returns IStyle3D | undefined
图形的风格
getLayers
getLayers: () => string[]
getLayersCount
getLayersCount: () => number
isVisible
isVisible: (name: string) => boolean
removeAllLayers
removeAllLayers: () => void
removeGraphic
removeGraphic: (layerName: string, graphicId: string) => boolean
removeLayer
removeLayer: (name: string) => boolean
setGraphicExtra: (
layerName: string,
graphicId: string,
extra: Record<string, unknown>,
) => void
Type declaration
- (layerName: string, graphicId: string, extra: Record<string, unknown>): void
Parameters
- layerName: string
- graphicId: string
- extra: Record<string, unknown>
Returns void
setGraphicStyle
setGraphicStyle: ( layerName: string, graphicId: string, style: Partial<IStyle3D>,) => void Type declaration
- (layerName: string, graphicId: string, style: Partial<IStyle3D>): void
Parameters
- layerName: string
- graphicId: string
- style: Partial<IStyle3D>
Returns void
setVisible
setVisible: (name: string, visible: boolean) => boolean
Type declaration
- (name: string, visible: boolean): boolean
Parameters
- name: string
- visible: boolean
Returns boolean
图层不存在时返回 false
viewEntireLayer
viewEntireLayer: (name: string, duration?: number) => boolean
Type declaration
- (name: string, duration?: number): boolean
Parameters
- name: string
Optionalduration: number
Returns boolean
图层不存在时返回 false
Entity 图形图层模块
管理 EntityGraphicLayer 图形图层及其中的 EntityGraphic 图形对象。