Hi.
I’m trying to rotate a geometry from Edit Overlay in code.
Seems to be not working or missing something…
Greatly appreciate your support.
Here is the code example:
var
editOverlay = Map1.getEditOverlay();
var
features = editOverlay.features;
var
feature = features[0];
var
centroid = feature.geometry.getCentroid();
var
angle = 15;
feature.geometry.rotate(angle, centroid);
feature.layer.drawFeature(feature);
//also tried approach below
//editOverlay.drawFeature(feature);