EOX GitLab Instance

Commit d7c85700 authored by Mussab Abdalla's avatar Mussab Abdalla
Browse files

rendering rectangle (from 2D to 3D)

parent 2cf7f220
......@@ -698,7 +698,7 @@ class CesiumMapView extends Marionette.ItemView {
map.entities.remove(drawn);
identifier = "draw";
}
if (model && model.get("tool") === "bbox") {
if (model && model.get("tool") === "bbox" || Array.isArray(model.get("area"))) {
shape = map.entities.add({
id: identifier,
rectangle: {
......@@ -1443,7 +1443,7 @@ class CesiumMapView extends Marionette.ItemView {
);
}
drawShape(map, positionData, true);
drawShape(map, positionData, true, model);
}
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment