POST
|
Hi All, While i am adding a new Geometry feature point i m getting this error Please help me TypeError: _113.toJson is not a function window[esri._dojoScopeName||"dojo"]._x...i.dijit.editing.Editor-all");}}};}); Thanks, Shweta
... View more
12-08-2011
05:36 PM
|
0
|
0
|
1285
|
POST
|
- have you tried insert feature from rest page? - have you configurated serverUrls in page proxy? - can you do debug on page.jsp calling page http://arcgis:8399/proxy/proxy.jsp?h.../18/applyEdits ? Yes i have tried to insert/edit/delete feature from rest page and its working properly.. i have configured serverUrls in proxy.jsp page as well. Still its not working
... View more
11-09-2011
05:03 PM
|
0
|
0
|
780
|
POST
|
Hi , I am having same problem with proxy.jsp page?? Did you find the solution ?? Thanks, Shweta
... View more
11-08-2011
08:31 PM
|
0
|
0
|
281
|
POST
|
Hello Alll, Can anyone tell me is therr anything wrong in proxy.jsp file?? Code: <%@page session="false"%> <%@page import="java.net.*,java.io.*" %> <%! String[] serverUrls = { "http://server:8399/arcgis/rest/services/" }; %> <% try { String reqUrl = request.getQueryString(); boolean allowed = false; String token = null; for(String surl : serverUrls) { String[] stokens = surl.split("\\s*,\\s*"); if(reqUrl.toLowerCase().contains(stokens[0].toLowerCase())) { allowed = true; if(stokens.length >= 2 && stokens[1].length() > 0) token = stokens[1]; break; } } if(!allowed) { response.setStatus(403); return; } if(token != null) { reqUrl = reqUrl + (reqUrl.indexOf("?") > -1 ? "&" : "?") + "token=" + token; } URL url = new URL(request.getQueryString()); HttpURLConnection con = (HttpURLConnection)url.openConnection(); con.setDoOutput(true); con.setRequestMethod(request.getMethod()); int clength = request.getContentLength(); if(clength > 0) { con.setDoInput(true); InputStream istream = request.getInputStream(); OutputStream os = con.getOutputStream(); final int length = 5000; byte[] bytes = new byte[length]; int bytesRead = 0; while ((bytesRead = istream.read(bytes, 0, length)) > 0) { os.write(bytes, 0, bytesRead); } } out.clear(); out = pageContext.pushBody(); OutputStream ostream = response.getOutputStream(); response.setContentType(con.getContentType()); InputStream in = con.getInputStream(); final int length = 5000; byte[] bytes = new byte[length]; int bytesRead = 0; while ((bytesRead = in.read(bytes, 0, length)) > 0) { ostream.write(bytes, 0, bytesRead); } } catch(Exception e) { response.setStatus(500); } %> Please help me i want it to be working as soon as possible 😞 Thanks, Shweta
... View more
11-08-2011
08:26 PM
|
0
|
0
|
702
|
POST
|
Hello Alll, Can anyone tell me is therr anything wrong in proxy.jsp file?? Code: <%@page session="false"%> <%@page import="java.net.*,java.io.*" %> <%! String[] serverUrls = { "http://server:8399/arcgis/rest/services/" }; %> <% try { String reqUrl = request.getQueryString(); boolean allowed = false; String token = null; for(String surl : serverUrls) { String[] stokens = surl.split("\\s*,\\s*"); if(reqUrl.toLowerCase().contains(stokens[0].toLowerCase())) { allowed = true; if(stokens.length >= 2 && stokens[1].length() > 0) token = stokens[1]; break; } } if(!allowed) { response.setStatus(403); return; } if(token != null) { reqUrl = reqUrl + (reqUrl.indexOf("?") > -1 ? "&" : "?") + "token=" + token; } URL url = new URL(request.getQueryString()); HttpURLConnection con = (HttpURLConnection)url.openConnection(); con.setDoOutput(true); con.setRequestMethod(request.getMethod()); int clength = request.getContentLength(); if(clength > 0) { con.setDoInput(true); InputStream istream = request.getInputStream(); OutputStream os = con.getOutputStream(); final int length = 5000; byte[] bytes = new byte[length]; int bytesRead = 0; while ((bytesRead = istream.read(bytes, 0, length)) > 0) { os.write(bytes, 0, bytesRead); } } out.clear(); out = pageContext.pushBody(); OutputStream ostream = response.getOutputStream(); response.setContentType(con.getContentType()); InputStream in = con.getInputStream(); final int length = 5000; byte[] bytes = new byte[length]; int bytesRead = 0; while ((bytesRead = in.read(bytes, 0, length)) > 0) { ostream.write(bytes, 0, bytesRead); } } catch(Exception e) { response.setStatus(500); } %> Please help me i want it to be working as soon as possible 😞 Thanks, Shweta
... View more
11-08-2011
08:25 PM
|
0
|
0
|
970
|
POST
|
Thanks Jeff for replying... i have checked everything but still it not working 😞 Same error message is coming... Regards, Shweta
... View more
11-03-2011
07:24 PM
|
0
|
0
|
970
|
POST
|
Hi, You got the solution?? I am having same prob with proxy.jsp 😞 Thanks, Shweta
... View more
10-31-2011
12:16 AM
|
0
|
0
|
3461
|
POST
|
Hi All, Please someone help me i got this script error while edit the feature and wont be able to update. "NetworkError: 500 Internal Server Error - http://localhost:8080/app/proxy.jsp?http://server:8399/arcgis/rest/services/app2/FeatureServer/1/applyEdits" Error: Unable to load proxy.jsp?http://server:8399/arcgis/rest/services/Sapp2/FeatureServer/1/applyEdits status:500 Thanks, Shweta
... View more
10-31-2011
12:15 AM
|
0
|
8
|
2103
|
POST
|
Hi, I have added drawing toolbar its working fine but the popup text is coming blank means while i started to draw on map popup is coiming but without text?? Is there any reason ?? OR The other option is how to hide popup in drawing toolbar using arcgis 10 javascript ? Plese help me its urgent 😞 Thanks, Shweta
... View more
10-26-2011
10:45 PM
|
0
|
0
|
421
|
POST
|
Hi, While i m doing zoom to search layer at that time it will give me javascript error.. although i m able to draw graphics but the next step is zoom to feature is not working... In case of polygon its working but in case of Point its not working Error: TypeError: g.geometry.getExtent() is null Plz help me........
... View more
10-24-2011
09:15 PM
|
0
|
2
|
419
|
POST
|
Hi Martin thanks for replying.. code: <script type="text/javascript"> dojo.require("esri.map"); //Map ToolBar dojo.require("esri.toolbars.navigation"); dojo.require("dijit.form.Button"); dojo.require("dijit.Toolbar"); //Legend Display dojo.require("dijit.dijit"); // optimize: load dijit layer dojo.require("dijit.layout.BorderContainer"); dojo.require("dijit.layout.ContentPane"); dojo.require("dijit.layout.AccordionContainer"); dojo.require("agsjs.dijit.TOC"); //identify dojo.require("esri.dijit.Popup"); //Drawing Toolbar dojo.require("esri.toolbars.draw"); var map,navToolbar; var toolbar, symbol, geomTask; function init() { var j =0; esri.config.defaults.io.proxyUrl = "proxy.jsp"; //Setting to use proxy file esriConfig.defaults.io.alwaysUseProxy = false; esriConfig.defaults.io.timeout = 180000; esri.config.defaults.geometryService = new esri.tasks.GeometryService("http://192.168.3.220:8399/arcgis/rest/services/Geometry/GeometryServer"); //identify var popup = new esri.dijit.Popup({ fillSymbol: new esri.symbol.SimpleFillSymbol(esri.symbol.SimpleFillSymbol.STYLE_SOLID, new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID, new dojo.Color([255,0,0]), 2), new dojo.Color([255,255,0,0.25])) }, dojo.create("div")); // esriConfig.defaults.map.sliderLabel = null; var startExtent = new esri.geometry.Extent({"xmin":103.85127109630895,"ymin":1.3070378815658947,"xmax":103.85326530653509,"ymax":1.308755802035058,"spatialReference":{"wkid":4326 }}); map = new esri.Map("map",{ infoWindow:popup, extent:startExtent }); var imageryPrime = new esri.layers.ArcGISDynamicMapServiceLayer("http://192.168.3.220:8399/arcgis/rest/services/IWMSapp1/MapServer"); //map = new esri.Map("map"); map.addLayer(imageryPrime); dojo.connect(map); dojo.connect(map, "onLoad", createToolbar); } function createToolbar(themap) { //resize the map when the browser resizes toolbar = new esri.toolbars.Draw(map); dojo.connect(toolbar, "onDrawEnd", addToMap_map); } function addToMap_map(geometry) { // toolbar.deactivate(); //map.showZoomSlider(); navToolbar.deactivate(); switch (geometry.type) { case "point": var symbol = new esri.symbol.SimpleMarkerSymbol(esri.symbol.SimpleMarkerSymbol.STYLE_SQUARE, 10, new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID, new dojo.Color([255,0,0]), 1), new dojo.Color([0,255,0,0.25])); break; case "polyline": var symbol = new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_DASH, new dojo.Color([255,0,0]), 1); break; case "polygon": var symbol = new esri.symbol.SimpleFillSymbol(esri.symbol.SimpleFillSymbol.STYLE_SOLID, new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_DASHDOT, new dojo.Color([255,0,0]), 2), new dojo.Color([255,255,0,0.25])); break; case "extent": var symbol = new esri.symbol.SimpleFillSymbol(esri.symbol.SimpleFillSymbol.STYLE_SOLID, new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_DASHDOT, new dojo.Color([255,0,0]), 2), new dojo.Color([255,255,0,0.25])); break; case "multipoint": var symbol = new esri.symbol.SimpleMarkerSymbol(esri.symbol.SimpleMarkerSymbol.STYLE_DIAMOND, 20, new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID, new dojo.Color([0,0,0]), 1), new dojo.Color([255,255,0,0.5])); break; } var graphic = new esri.Graphic(geometry, symbol); map.graphics.add(graphic); } </script> <div id="tcontent6"> <button data-dojo-props="onClick:function(){toolbar.activate(esri.toolbars.Draw.POINT);map.hideZoomSlider();}">Point</button> <button data-dojo-props="onClick:function(){toolbar.activate(esri.toolbars.Draw.MULTI_POINT);map.hideZoomSlider();}">Multipoint</button> <button data-dojo-props="onClick:function(){toolbar.activate(esri.toolbars.Draw.LINE);map.hideZoomSlider();}">Line</button> <button data-dojo-props="onClick:function(){toolbar.activate(esri.toolbars.Draw.POLYLINE);map.hideZoomSlider();}">Polyline</button> <button data-dojo-props="onClick:function(){toolbar.activate(esri.toolbars.Draw.POLYGON);map.hideZoomSlider();}">Polygon</button> <button data-dojo-props="onClick:function(){toolbar.activate(esri.toolbars.Draw.FREEHAND_POLYLINE);map.hideZoomSlider();}">Freehand Polyline</button> <button data-dojo-props="onClick:function(){toolbar.activate(esri.toolbars.Draw.FREEHAND_POLYGON);map.hideZoomSlider();}">Freehand Polygon</button> </div> Hi! Could you post some more Code? There are some differences in definition of the drawingToolbar in the editing-dijit between versions 2.3 and 2.4. Perhaps, there is a problem? Greets Martin
... View more
10-24-2011
01:58 AM
|
0
|
0
|
295
|
POST
|
Hi, I have my app i m trying to add code for drawing toolbar but its not working in my case can anyone tell me what is the reason?? dojo.connect(toolbar, "onDrawEnd", addToMap); addtoMap(map) is not called in my case.. Thanks, Shweta
... View more
10-24-2011
01:18 AM
|
0
|
3
|
1265
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|