clearLayer
clearLayer: (name: string) => boolean
Type declaration
- (name: string): boolean
Returns boolean
图层不存在时返回 false
containsLayer
containsLayer: (name: string) => boolean
getGraphic
getGraphic: ( layerName: string, graphicId: string,) => IPrimitiveGraphic | 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
图形的属性信息
getLayers
getLayers: () => string[]
getLayersCount
getLayersCount: () => number
getLayerStyle
getLayerStyle: (name: string) => IStyle3D | undefined Type declaration
- (name: string): IStyle3D | undefined
Returns IStyle3D | undefined
图层不存在时返回 undefined
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
setLayerStyle
setLayerStyle: (name: string, style: Partial<IStyle3D>) => boolean Type declaration
- (name: string, style: Partial<IStyle3D>): boolean
Returns boolean
图层不存在时返回 false
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
Primitive 图形图层模块
管理 PrimitiveGraphicLayer 图形图层及其中的 PrimitiveGraphic 图形对象。