Hello,
I have modified the MapguideViewerApi,.js by copying the Rectangle handler and
increasing the number of sides to 40 in order to make a circle handler.
The circle is now digitized, but the next issue that I'm facing is the fact
that I don't know how to get the center and radius of the circle . This is how
i use to do it in Ajax:
function AddCircle() {
parent.parent.mapFrame.DigitizeCircle(OnCircleDigitized);
}
function OnCircleDigitized(circle) {
var geometryInput = document.getElementById("geometryInput");
geometryInput.value = circle.Center.X + "," + circle.Center.Y + "," +
circle.Radius;
}
Thank You,
Iulia
_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users