GeoJsonSourceOptions | MapGL | 2GIS Documentation
MapGL JS API

GeoJsonSourceOptions

GeoJson data source initialization options.

Properties

Data source attributes.

Feature<Geometry, GeoJsonProperties>FeatureCollection<Geometry, GeoJsonProperties>

GeoJSON collection of feature objects or feature object.

number

Number of coordinates per vertex in the input array (2 by default)

string

Put IDs of source features to separate ID-scope. If idScope isn't specified, all IDs will be added into the default scope. Objects that have the same ID inside ID-scope will be processed by map as one object. For example, these objects will be selected simultaneously.

Scope of the identifiers is used for objects selection, see method map.setSelectedObjects.

number

The maximum zoom value for which geojson tiles will be generated.

string

Path to the models. Used when model's url in the source is a relative path

string

Name of the object attribute to use as ID. If specified, ID will be presented in GeoJsonEventTargetData.

number

Simplification tolerance (higher means simpler)