Skip to content

readLayerData() ​

readLayerData(layer): Promise<FeatureCollection<Geometry | null, GeoJsonProperties>>

This will read the layer data and keep it in cache for future calls; it will also properly report errors in case of invalid GeoJSON or network issues

Parameters ​

ParameterType
layerMapContextLayerGeojson

Returns ​

Promise<FeatureCollection<Geometry | null, GeoJsonProperties>>