Geomap: Avoid exceptions when missing data and values (heatmap and zoom settings)

This commit is contained in:
nikki-kiga
2021-10-19 19:31:33 -07:00
committed by GitHub
parent 36e12e2b26
commit 43878ff05f
2 changed files with 7 additions and 4 deletions

View File

@@ -74,6 +74,9 @@ export const heatmapLayer: MapLayerRegistryItem<HeatmapConfig> = {
vectorLayer.getSource().removeFeature(feature);
});
if (!frame) {
return;
}
// Get data points (latitude and longitude coordinates)
const info = dataFrameToPoints(frame, matchers);
if (info.warning) {