refactor(frontend): align TJWater Next integrations
This commit is contained in:
@@ -179,10 +179,7 @@ const DetectionResults: React.FC<Props> = ({ result, state, onStateChange }) =>
|
||||
|
||||
const locateSensors = async (sensorIds: string[]) => {
|
||||
if (!map || sensorIds.length === 0) return;
|
||||
let features = await queryFeaturesByIds(sensorIds, "geo_junctions_mat");
|
||||
if (features.length === 0) {
|
||||
features = await queryFeaturesByIds(sensorIds, "geo_junctions");
|
||||
}
|
||||
const features = await queryFeaturesByIds(sensorIds, "junctions");
|
||||
if (features.length === 0) return;
|
||||
setHighlightFeatures(features);
|
||||
const format = new GeoJSON();
|
||||
|
||||
Reference in New Issue
Block a user