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 ​
| Parameter | Type |
|---|---|
layer | MapContextLayerGeojson |
Returns ​
Promise<FeatureCollection<Geometry | null, GeoJsonProperties>>