Skip to content

DivLayer (DIV Layer)

Create and manage DIV layers for overlaying HTML elements on the map.

Constructor

ts
new ge3d.object.DivLayer(options?: any): DivLayer

Parameters

ParameterTypeDefaultDescription
hasEditBooleanfalseWhether editable
isAutoEditingBooleantrueWhether to automatically start editing after completing plotting
isContinuedBooleanfalseWhether to continue plotting
dataObject/Object[]nullData to be automatically loaded
pointerEventsBooleantrueWhether DIV can have mouse interaction

Properties

PropertyTypeDescription
clusteringanyWhether to cluster (for point data)
containeranyDOM container holding DivFeature data
featuresany[]Collection of Feature objects within the layer
idanyObject id identifier
showanyShow/hide state
opacityanyOpacity, range 0.0-1.0

Methods

addFeature

Add feature

ts
addFeature(feature: any[]): any

clear

Clear features

ts
clear(hasDestory?: boolean): void

destroy

Destroy current layer

ts
destroy(noDel: any): void

toGeoJSON

Convert to geojson

ts
toGeoJSON(options: any): { features: any; layer: { id: any; name: any }; type: string }