I have 4 graphics on map with 3 map points and a polyline. As I am scaling / rotating polyline with editor I want 3 map points to calculate its new position relatively to scale or rotation of polyline.

editToolbar.on('graphic-move-stop',function(evt){ var graphicTransform = graphicDojoShape.getTransform(); var layerTransform = evt.graphic.getLayer()._div.getTransform(); var wrapOffset = 0; var f = map.toScreen({x: roomGeometry.x, y: roomGeometry.y, spatialReference: spatialReference}, !0); f.x += wrapOffset; f = matrix.multiplyPoint([layerTransform, graphicTransform, matrix.invert(layerTransform)], f); f.x -= wrapOffset; f = map.toMap(f); });

This code is not working.

Any clue?

Abdul,

Delta, meaning the centroids original coords were -89.256, 32.569 and the new moved centroid is -89.156, 32.469 the the simple math is to find the difference from the two which would be a delta of .100 and .100. SO if the polygons centroid moved .100 and .100 then the labels in your image would need to move the same amount so just move all three of them individually .100 and .100.