hello
I ask for excuses and I hope that understand me, because my ingles not is very good and is my first time what write in discussion foruns
I have a problem when create a circular Shape
I have a javaScript function that is executed when client drawn end, this function it works well when create a poligonal shape, but generates an error when shape is circular or rectangular.
the error generated is ''this.layer.renderer' is null or not an object' in opl_Georesorce.axd.
the code of the function that generate this error is:
var TrackShapeFinished = function(feature) {
var GeoFunc = new ThinkGeo('<%=Map.ClientID %>');
var Mode = document.getElementById('<%=MapModeControl.ClientID %>').value;
if (Mode == '<%=MapModes.CreatePolygonalRegion%>' || Mode == '<%=MapModes.CreateRectangularRegion%>' || Mode == '<%=MapModes.CreateCircularRegion%>' || Mode == '<%=MapModes.CreateCLTPoint%>') {
GeoFunc.SetEditSetting(EditSettings.Reshape | EditSettings.Rotate | EditSettings.Drag);
if (Mode == '<%=MapModes.CreateCircularRegion%>' || Mode == '<%=MapModes.CreateCLTPoint%>') {
GeoFunc.SetEditSetting(EditSettings.Resize | EditSettings.Drag);
}
}
GeoFunc.SetDrawMode("Modify");
}
I work with version 3.1.299.0 the map
in advance thank you very much