fit polygon in map modal

parent 3a0a62b1
......@@ -131,6 +131,9 @@ function createmap(data) {
})
});
// fit (zoom) to polygon
map.getView().fit(feature.getGeometry());
}
......@@ -170,4 +173,3 @@ function is_public(purchase_id, status) {
}
});
}
Markdown is supported
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