Appearance
DivLayer (DIV Layer)
Create and manage DIV layers for overlaying HTML elements on the map.
Constructor
ts
new ge3d.object.DivLayer(options?: any): DivLayerParameters
| Parameter | Type | Default | Description |
|---|---|---|---|
| hasEdit | Boolean | false | Whether editable |
| isAutoEditing | Boolean | true | Whether to automatically start editing after completing plotting |
| isContinued | Boolean | false | Whether to continue plotting |
| data | Object/Object[] | null | Data to be automatically loaded |
| pointerEvents | Boolean | true | Whether DIV can have mouse interaction |
Properties
| Property | Type | Description |
|---|---|---|
| clustering | any | Whether to cluster (for point data) |
| container | any | DOM container holding DivFeature data |
| features | any[] | Collection of Feature objects within the layer |
| id | any | Object id identifier |
| show | any | Show/hide state |
| opacity | any | Opacity, range 0.0-1.0 |
Methods
addFeature
Add feature
ts
addFeature(feature: any[]): anyclear
Clear features
ts
clear(hasDestory?: boolean): voiddestroy
Destroy current layer
ts
destroy(noDel: any): voidtoGeoJSON
Convert to geojson
ts
toGeoJSON(options: any): { features: any; layer: { id: any; name: any }; type: string }