GeoJsonSource
Class for creating GeoJSON data source in the map.
new constructor
(map, options)
Example:
const source = new GeoJsonSource(map, {
data: {
type: 'FeatureCollection',
features: [
{
type: 'Feature',
properties: {},
geometry: {
type: 'Point',
coordinates: [82.92186, 55.03029],
},
},
],
},
});
Parameters
Methods