Skip to content

Commit

Permalink
[Map] Zoom camera on substation when locating it
Browse files Browse the repository at this point in the history
Signed-off-by: jamal-khey <myjamal89@gmail.com>
  • Loading branch information
jamal-khey committed Nov 7, 2024
1 parent 371d57e commit 803f7d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/network-map-viewer/network/line-layer.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export function getLineLoadingZoneOfSide(limit, intensity, lineFlowAlertThreshol
} else {
let threshold = (lineFlowAlertThreshold * limit) / 100;
const absoluteIntensity = Math.abs(intensity);
if (absoluteIntensity > 0 && absoluteIntensity < threshold) {
if (absoluteIntensity < threshold) {
return LineLoadingZone.SAFE;
} else if (absoluteIntensity >= threshold && absoluteIntensity < limit) {
return LineLoadingZone.WARNING;
Expand Down

0 comments on commit 803f7d5

Please sign in to comment.