Skip to content

GeoJsonLayer (GeoJSON Vector Data Layer)

Layer for loading and displaying GeoJSON data.

Constructor

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

Parameters

ParameterTypeDefaultDescription
urlString-GeoJSON file produced by SDK plotting or service URL address
dataObject-GeoJSON format specification data object produced by SDK plotting
crsString-Coordinate system of original data
formatFunction-Format or transform loaded GeoJSON data
symbolObject/Function-Style of vector data
buildingsObject-Identify current layer as building white model type data
maskBoolean/ObjectfalseWhether to draw inverse selection mask layer for area boundaries

Properties

PropertyTypeDescription
clusteringanyWhether to cluster (for point 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

loadGeoJSON

Load GeoJSON data

ts
loadGeoJSON(geojson: any, options?: any): any

toGeoJSON

Convert to GeoJSON

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