GeoJsonSourceOptions | MapGL | Urbi Documentation
MapGL JS API

GeoJsonSourceOptions

GeoJson data source initialization options.

Properties

Data source attributes.

FeatureCollectionFeature

GeoJSON collection of feature objects or feature object.

undefinednumber

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

undefinedstring

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.

undefinednumber

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

undefinedstring

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

undefinedstring

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

undefinednumber

Simplification tolerance (higher means simpler)