Hi ,
I am having a difficult time with reshape tool, when i have very large boundary on mountains then this line automatically plot the vertices, but it takes so much time, that my browser wants to kill itself.
sketchViewModel.update([newDevelopmentGraphic], {tool: "reshape"});
Is their anyway i can optimize my code because without reshape tool my graphics added instantly. i have checked server side, waiting time marely is 3 ms but while making it editable automatically, it kill my page for very very large boundaries.
For small boundaries .it works fine. the boundary i am using is of 2300 hectares almost.
//*** Get dynamic lat long on click and get linz db to show linz polygons***//
window.showCoordinates=function(pt){
var currentdate = new Date();
var coords = "Lat/Lon " + pt.latitude + " " + pt.longitude;
if(coords != '') {
jQuery.ajax({
type : "POST",
dataType : "JSON",
url :url,
data : {action:'get_property_polygon',ring_coordinate_x:pt.longitude,ring_coordinate_y:pt.latitude},
success: function(response) {
if(response.status=='success'){
console.log("LIne No:553 "+currentdate.getSeconds());
addGraphics(response.ring);
console.log("LIne No:555 "+currentdate.getSeconds());
sketchViewModel.update([newDevelopmentGraphic], {tool: "reshape"});
}
///Remove linz title class from main div
}
});//End Ajax
}//ENd if
};//End ShowCoordinates