Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

Close the drawn rectangle on the map (#985)

DonWillems0f4beb66dff5
diff --git a/ui/component/or-map/src/mapwidget.ts b/ui/component/or-map/src/mapwidget.ts
index 9d216b855..63cccdc89 100644
--- a/ui/component/or-map/src/mapwidget.ts
+++ b/ui/component/or-map/src/mapwidget.ts
@@ -625,6 +625,7 @@ export class MapWidget {
[boundsArray[2], boundsArray[3]],
[boundsArray[2], boundsArray[1]],
[boundsArray[0], boundsArray[1]],
+ [boundsArray[0], boundsArray[3]]
]
]
this._mapGl.fitBounds([