GeoJsonViewportSource | MapGL | Urbi Documentation
MapGL JS API

GeoJsonViewportSource

Class for creating GeoJSON viewport data source in the map.

new constructor(map, options)

Example:

const source = new GeoJsonViewportSource(map, {
   data: (bbox) => `http://...&outputFormat=application%2Fjson&bbox=${bbox}`,
});
Parameters
map
Map

The map instance

options
GeoJsonViewportSourceOptions

Spatial data source options

Returns
Methods