Loads GeoJSON into a SceneModel and/or a DataModel.

The loader supports FeatureCollection, Feature, geometry objects and GeometryCollection members. Point and MultiPoint geometries become point primitives, LineString and MultiLineString geometries become line primitives, and Polygon and MultiPolygon geometries become triangulated surface meshes.

For detailed usage, refer to @xeokit/sdk/formats/geojson.

Hierarchy (View Summary)

Constructors

Properties

fileDataType: string

Identifies the MIME type of files loaded by this parser.

fileNameExtensions: string[]

Filename extensions expected on loaded model files.

format: string

The loaded model file format.

getVersion: (fileData: any) => string

Gets the schema version of the given file data.

versions: string[]

IDs of supported file schema versions.

Methods