POST
|
Hi all i have a feature layerEMPLOYEE and i tried to add the feature using the REST API http://services1.arcgis.com/6KARYenaCPY4jndv/ArcGIS/rest/services/employeeDetails/FeatureServer/0/addFeatures and input as
{"geometry":{"x":13.25,"y":76.4},"attributes":{"employeeId":123,"Address":"#9/10, 2nd main, 7th Main, Vijaynagar,Bangalore,Karnataka,560040","employeeName":"Tester"}}
Where the geometry is the lat/long which i gave the India's some place lat/long My Issue is: 1: It is showing some where near Africa.. it is because of spatial reference problem.. how can i get X and Y from Lat/Long 2: I have address as feature attribute, Which REST API to use to add the feature on the map -Chiru
... View more
11-13-2013
08:16 AM
|
0
|
0
|
628
|
POST
|
Hi all i have a desktop application which is a employee database application. i have to integrate the arcGIS map in that. While entering employee information, if i click on a button it will open a browser. Which will load the esri map and user will mark the feature. till user click submit on the desktop application i should not save the feature on the map. When the user submit on desktop application i have to save the feature. For this i need the idea how to achive this 1: Can i save the feature on any json on local system and call REST API when submit 2: can i save automaticly and delete if the submit is not done? (But its overhead) 3: can i get the feature data from browser when user submit? (how?) Please suggest me best way. Thanks Chiru
... View more
10-15-2013
08:32 PM
|
0
|
0
|
499
|
POST
|
thanks for reply i need to do that in vise versa.. like the data will be entered in the main window and the map has to show in the new window.
... View more
10-06-2013
06:02 PM
|
0
|
0
|
181
|
POST
|
Hi all I need a idea for getting feature data from other browser window. my use case as below: 1: User click on the link which open the map in new tab or new window. 2: user will mark the feature on the map. 3: I need to get that point and other feature details in the first tab or window. Please suggest how i can achive this Thanks Chiru
... View more
10-06-2013
04:09 AM
|
0
|
2
|
1772
|
POST
|
Yes its issue with the symbol i loaded a different layer which is working fine. Thanks
... View more
10-05-2013
05:39 AM
|
0
|
0
|
322
|
POST
|
Thanks jgravois valid proxy reference i have copied the proxy.jsp in to my web app but i can not see the symbols. i can see the error in the console as below XMLHttpRequest cannot load http://server.arcgisonline.com/ArcGIS/rest/info?f=json. Origin http://localhost:8080 is not allowed by Access-Control-Allow-Origin. is this the reason?
... View more
10-03-2013
08:17 AM
|
0
|
0
|
322
|
POST
|
Hi all i am trying to learn the TemplatePicker as in the example simpletoolbar.html instead of loading the given layers as in example i added my layer which i have created from online arcGIS account, i am not able to see any marker in the template picker panel. here i have attached the code [HTML]<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=7, IE=9, IE=10"> <!--The viewport meta tag is used to improve the presentation and behavior of the samples on iOS devices--> <meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no"> <title>Edit rivers and waterbodies</title> <link rel="stylesheet" href="http://js.arcgis.com/3.7/js/dojo/dijit/themes/claro/claro.css"> <link rel="stylesheet" href="http://js.arcgis.com/3.7/js/esri/css/esri.css" /> <style> html,body{height:100%;width:100%;margin:0;overflow:hidden;} #map{ padding:0; } #header{ font-size: 1.1em; font-family: sans-serif; padding-left: 1em; padding-top:4px; color:#660000; } .templatePicker { border: none; } .dj_ie .infowindow .window .top .right .user .content { position: relative; } .dj_ie .simpleInfoWindow .content {position: relative;} </style> <script src="http://js.arcgis.com/3.7/"></script> <script> var map; require([ "esri/map", "esri/toolbars/edit", "esri/layers/ArcGISTiledMapServiceLayer", "esri/layers/FeatureLayer", "esri/symbols/SimpleMarkerSymbol", "esri/symbols/SimpleLineSymbol", "esri/dijit/editing/Editor", "esri/dijit/editing/TemplatePicker", "esri/config", "dojo/i18n!esri/nls/jsapi", "dojo/_base/array", "dojo/parser", "dojo/keys", "dijit/layout/BorderContainer", "dijit/layout/ContentPane", "dojo/domReady!" ], function( Map, Edit, ArcGISTiledMapServiceLayer, FeatureLayer, SimpleMarkerSymbol, SimpleLineSymbol, Editor, TemplatePicker, esriConfig, jsapiBundle, arrayUtils, parser, keys ) { parser.parse(); // snapping is enabled for this sample - change the tooltip to reflect this jsapiBundle.toolbars.draw.start = jsapiBundle.toolbars.draw.start + "<br>Press <b>ALT</b> to enable snapping"; // refer to "Using the Proxy Page" for more information: https://developers.arcgis.com/en/javascript/jshelp/ags_proxy.html esriConfig.defaults.io.proxyUrl = "/proxy"; //This service is for development and testing purposes only. We recommend that you create your own geometry service for use within your applications. esriConfig.defaults.geometryService = new esri.tasks.GeometryService("http://tasks.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer"); map = new Map("map", { basemap: "satellite", center: [-96.541, 38.351], zoom: 14, slider: false }); map.on("layers-add-result", initEditor); //add boundaries and place names var labels = new ArcGISTiledMapServiceLayer("http://server.arcgisonline.com/ArcGIS/rest/services/Reference/World_Boundaries_and_Places/MapServer"); map.addLayer(labels); var bangalore = new FeatureLayer("http://services1.arcgis.com/6KARYenaCPY4jndv/ArcGIS/rest/services/bangaloreDetails/FeatureServer/0",{ mode: FeatureLayer.MODE_ONDEMAND, outFields: ['*'] }); map.addLayers([bangalore]); function initEditor(evt) { var templateLayers = arrayUtils.map(evt.layers, function(result){ return result.layer; }); var templatePicker = new TemplatePicker({ featureLayers: templateLayers, grouping: true, rows: "auto", columns: 3 }, "templateDiv"); templatePicker.startup(); var layers = arrayUtils.map(evt.layers, function(result) { return { featureLayer: result.layer }; }); var settings = { map: map, templatePicker: templatePicker, layerInfos: layers, toolbarVisible: true, createOptions: { polylineDrawTools:[ Editor.CREATE_TOOL_FREEHAND_POLYLINE ], polygonDrawTools: [ Editor.CREATE_TOOL_FREEHAND_POLYGON, Editor.CREATE_TOOL_CIRCLE, Editor.CREATE_TOOL_TRIANGLE, Editor.CREATE_TOOL_RECTANGLE ] }, toolbarOptions: { reshapeVisible: true } }; var params = {settings: settings}; var myEditor = new Editor(params,'editorDiv'); //define snapping options var symbol = new SimpleMarkerSymbol( SimpleMarkerSymbol.STYLE_CROSS, 15, new SimpleLineSymbol( SimpleLineSymbol.STYLE_SOLID, new Color([255, 0, 0, 0.5]), 5 ), null ); map.enableSnapping({ snapPointSymbol: symbol, tolerance: 20, snapKey: keys.ALT }); myEditor.startup(); } }); </script> </head> <body class="claro"> <div id="main" data-dojo-type="dijit/layout/BorderContainer" data-dojo-props="design:'headline'" style="height:width:100%;height:100%;"> <div data-dojo-type="dijit/layout/ContentPane" id="header" data-dojo-props="region:'top'"> Edit Hydrography </div> <div data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region:'left'" style="width: 300px;overflow:hidden;"> <div id="templateDiv"></div> <div id="editorDiv"></div> </div> <div data-dojo-type="dijit/layout/ContentPane" id="map" data-dojo-props="region:'center'"></div> </div> </body> </html> [/HTML]
... View more
10-03-2013
07:14 AM
|
0
|
4
|
809
|
POST
|
i want to do somthing like map engine when i go to that page it will create default layer and we can add the points on it. if we need another layer we can create by add layer button So i dont want to make a empty layer from Online arcGIS, or else i need to make a empty layer from the code. Thanks Chiru
... View more
09-17-2013
10:05 PM
|
0
|
0
|
253
|
POST
|
Hi as in thetutorial we can create a feature layer thorugh code itself, and we can add the fetature on those. my question is how i can save these feature layer in my online arcgis server, any API or REST or SOAP API's for this? -Chiru
... View more
09-17-2013
11:06 AM
|
0
|
4
|
792
|
POST
|
Hi can we move the zoom slider to different location like bottom right corner? can you help me how?
... View more
09-13-2013
11:45 PM
|
0
|
2
|
2960
|
POST
|
i have added a hosted feature which is public too.. [ATTACH=CONFIG]27441[/ATTACH] tell me what i have to do with that.. sorry i am new to this..
... View more
09-13-2013
11:33 AM
|
0
|
0
|
248
|
POST
|
i dont have problem with data or the published CSV file, my problem is different in this sample code we can add the features right? same thing i have to do by replacing the webmap id. if i replace the web map id its not showing the left side pane, the markers. -chiru
... View more
09-13-2013
11:04 AM
|
0
|
0
|
248
|
POST
|
Hmm ok.. let me tell this way here in the below tutorial https://developers.arcgis.com/en/javascript/jssamples/ags_editor.html we can add the markers to the map and it will save to ArcGIS.com so i need to do the same on the my map, which i have created in my content need to write the code for that, so need you help. how to save those markes? -chiru
... View more
09-13-2013
10:51 AM
|
0
|
0
|
248
|
POST
|
Yes i want to write.. while writing that.. i am facing a issue that is, i can mark a point using the Editor tool. But my problem is i need to save that marker in the web map http://chiru.maps.arcgis.com/home/webmap/viewer.html?webmap=527b5d7ebc9f432aba9ba254e21d3739 i have shared this map publicly, i have attached the screenshot of my content[ATTACH=CONFIG]27440[/ATTACH]
... View more
09-13-2013
10:23 AM
|
0
|
0
|
663
|
Online Status |
Offline
|
Date Last Visited |
01-24-2021
06:52 PM
|