Hi Sergei,
There is no any events on the vertex adding in Mvc Edition Api. But we can do this with Openlayers Api. Here is the sample but only works on Polygon and Line shape as Openlayers Api design from here dev.openlayers.org/releases/...er.Polygon
function DrawControls(drawMode) {
Map1.setDrawMode(drawMode);
var parserMap = Map1.getMapParser();
var currentDrawControl = parserMap.paintControls[drawMode];
if (currentDrawControl) {
currentDrawControl.callbacks.point = PlusPoint;
currentDrawControl.featureAdded = function () {
alert("current feature vertexs: " + totalCount);
totalCount = 0;
}
}
}
function PlusPoint() {
totalCount ++;
}
<img class="imgBtn" src="@Url.Content(" content="" images="" id="buttonDrawPolygon" onclick="DrawControls('Polygon');" alt="Draw Polygon" />
<img class="imgBtn" src="@Url.Content(" content="" images="" id="buttonDrawLine" onclick="DrawControls('Line');return false;" alt="Draw Line" />
Hope it helps.
Regards,
Gary