|
POST
|
Hi, I want to get LastModifiedDate or Last Edit Date of feature layer through arcgis runtime iOS sdk v100.0. How do I achieve that? Thanks, Kamal
... View more
06-15-2017
07:31 PM
|
0
|
1
|
1105
|
|
POST
|
Hi, I want to get LastModifiedDate or Last Edit Date of feature layer through javascript api v3.2. How do I achieve that? Thanks, Kamal
... View more
06-15-2017
07:29 PM
|
0
|
5
|
1962
|
|
POST
|
Thanks Robert. Below is the code which i am using but searching is not working: featureLayer.setDefinitionExpression("street_name LIKE % 'ORCHARD'"); Here street_name is field and ORCHARD is the textbox value. Can you please confirm that is SQL string is correct ? Thanks, Kamal
... View more
06-08-2017
09:08 AM
|
0
|
2
|
3590
|
|
POST
|
Yes, with dropdown there is also textbox for searching. When user type into textbox then I want to search from textbox value also. Thanks, Kamal
... View more
06-08-2017
08:22 AM
|
0
|
4
|
3590
|
|
POST
|
Thanks Robert for your reply. Here setDefinitionExpression taking exact data to search but I want to search based on substring. Can we achieve that thing? Thanks, Kamal
... View more
06-08-2017
06:51 AM
|
0
|
6
|
3590
|
|
POST
|
Hi, I want to filter data on feature layer when user select value from dropdown. On my feature layer, I have showed 25 locations with a pin symbol and there is dropdown which contains all these 25 locations. Now what I want is when user select value from dropdown then map will show and zoomin that location only and rest of the locations will disappear. So how do I achieve that? Thanks, Kamal
... View more
06-06-2017
08:24 PM
|
0
|
8
|
6061
|
|
POST
|
Hi, Is there any api or method in ArcGIS JavaScript 3.20 API where I will pass csv data and create layer in arcgis online?. Right now to create layer there is only one option. We have to go arcgisonlne.com site and have to upload csv file. I am just looking that how we can create layer through Javascript 3.0 api. Thanks, Kamal
... View more
06-06-2017
08:10 PM
|
0
|
2
|
1267
|
|
POST
|
Hi Robert, Thanks for your reply. Based on your sample example, I have integrate code of toolbar and feature layer but below code is not showing feature layer to map. When I try to set feature layer then it is showing error in console "g.set is not a function". Right now i am calling setfeaturelayers() function from map.on("load",...) . Apart from that I want to set map center to newyork city but I don't know how to get center viewpoint of any state/city. Can you please look into this? <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="viewport" content="width=device-width,user-scalable=no"> <meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no"> <title>Maps Toolbar</title> <link rel="stylesheet" href="https://js.arcgis.com/3.20/dijit/themes/nihilo/nihilo.css"> <link rel="stylesheet" href="https://js.arcgis.com/3.20/esri/css/esri.css"> <style> html, body, #mainWindow { font-family: sans-serif; height: 100%; width: 100%; } html, body { margin: 0; padding: 0; } #header { height: 80px; overflow: auto; padding: 0.5em; } </style> <script src="https://js.arcgis.com/3.20/"></script> <script> var map, toolbar ,InfoTemplate, featureLayer; require([ "esri/map", "esri/toolbars/draw", "esri/graphic", "esri/config", "esri/symbols/SimpleMarkerSymbol", "esri/symbols/SimpleLineSymbol", "esri/symbols/SimpleFillSymbol", "dojo/parser", "dijit/registry", "dijit/layout/BorderContainer", "dijit/layout/ContentPane", "dijit/form/Button", "dijit/WidgetSet", "dojo/domReady!" ,"esri/layers/FeatureLayer", "esri/tasks/query", "esri/InfoTemplate", "esri/renderers/SimpleRenderer", "esri/config", "dojo/dom" ], function( Map, Draw, Graphic,esriConfig, SimpleMarkerSymbol, SimpleLineSymbol, SimpleFillSymbol, parser, registry ,FeatureLayer, Query, InfoTemplate, SimpleRenderer, dom ) { parser.parse(); esriConfig.defaults.io.proxyUrl = "/proxy/"; map = new Map("map", { basemap: "streets", //center: [-15.469, 36.428], //zoom: 3 }); map.on("load", function() { toolbar = new Draw(map); toolbar.on("draw-end", addToMap); setFeatureLayers(); }); function setFeatureLayers(){ featureLayer = new FeatureLayer("https://services7.arcgis.com/JRY73mi2cJ1KeR7T/ArcGIS/rest/services/NewYorkHospitalLayer/FeatureServer/0",{ mode: FeatureLayer.MODE_ONDEMAND, infoTemplate: new InfoTemplate("Name: ${Name}", "${*}"), outFields: ["Name","Street","City", "Zip", "PhoneNo"] }); map.addLayer(featureLayer); } // loop through all dijits, connect onClick event // listeners for buttons to activate drawing tools registry.forEach(function(d) { // d is a reference to a dijit // could be a layout container or a button if ( d.declaredClass === "dijit.form.Button" ) { d.on("click", activateTool); } }); function activateTool() { var tool = this.label.toUpperCase().replace(/ /g, "_"); toolbar.activate(Draw[tool]); map.hideZoomSlider(); } function addToMap(evt) { var symbol; toolbar.deactivate(); map.showZoomSlider(); switch (evt.geometry.type) { case "point": case "multipoint": symbol = new SimpleMarkerSymbol(); break; case "polyline": symbol = new SimpleLineSymbol(); break; default: symbol = new SimpleFillSymbol(); break; } map.graphics.clear(); map.infoWindow.show(); var graphic = new Graphic(evt.geometry, symbol); map.graphics.add(graphic); var query = new Query(); query.geometry = evt.geometry.getExtent(); //use a fast bounding box query. will only go to the server if bounding box is outside of the visible map featureLayer.queryFeatures(query, selectInBuffer); } function selectInBuffer(response){ var feature; var features = response.features; var inBuffer = []; //filter out features that are not actually in buffer, since we got all points in the buffer's bounding box for (var i = 0; i < features.length; i++) { feature = features; if(circle.contains(feature.geometry)){ inBuffer.push(feature.attributes[featureLayer.objectIdField]); } } var query = new Query(); query.objectIds = inBuffer; //use a fast objectIds selection query (should not need to go to the server) featureLayer.selectFeatures(query, FeatureLayer.SELECTION_NEW, function(results){ var totalLocations = getLayersLocation(results); var r = ""; r = totalLocations ; dom.byId("messages").innerHTML = r; }); } function getLayersLocation(features) { var location = ""; debugger; for (var x = 0; x < features.length; x++) { location = location + features .attributes[ "Street"] + " " + features .attributes[ "City"] + " "+ features .attributes[ "Zip"] +"<br>"; } return location; } }); </script> </head> <body class="nihilo"> <div id="mainWindow" data-dojo-type="dijit/layout/BorderContainer" data-dojo-props="design:'headline'"> <div id="header" data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region:'top'"> <span>Draw:<br /></span> <button data-dojo-type="dijit/form/Button">Point</button> <button data-dojo-type="dijit/form/Button">Multi Point</button> <button data-dojo-type="dijit/form/Button">Line</button> <button data-dojo-type="dijit/form/Button">Polyline</button> <button data-dojo-type="dijit/form/Button">Polygon</button> <button data-dojo-type="dijit/form/Button">Freehand Polyline</button> <button data-dojo-type="dijit/form/Button">Freehand Polygon</button> <button data-dojo-type="dijit/form/Button">Arrow</button> <button data-dojo-type="dijit/form/Button">Triangle</button> <button data-dojo-type="dijit/form/Button">Circle</button> <button data-dojo-type="dijit/form/Button">Ellipse</button> </div> <div id="map" data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region:'center'"></div> </div> </body> </html> Thanks, Kamal
... View more
05-28-2017
07:53 PM
|
0
|
2
|
3288
|
|
POST
|
Hi, Actually I am using ArcGIS API for JavaScript 3.20. I want to get coordinates of particular area when draw polyline. How to achieve that . Apart from that I also need addresses of buildings within that area. Suppose I draw a area through polyline. In this area there are four hospitals. Now I need coordinates of area as well as address of four hospitals within that area. Thanks, Kamal
... View more
05-25-2017
01:58 AM
|
0
|
4
|
7961
|
|
POST
|
Thanks Nicholas. Is there any difference between desktop locator and runtime locator? Another thing is that I have extracted vtpk file from mmpk file. Now I want to generate locator file from mmpk. How do I achieve that? Actually the reason I am asking is that I have already tried and used mmpk file in the IOS app . Now I want to tried same thing through the vtpk file (Searching also). Thanks, Kamal
... View more
04-24-2017
05:03 AM
|
0
|
1
|
1168
|
|
POST
|
Thanks Nicholas for step by step explanation. I have created mmpk file of Manhattan city by follow your steps and then create .vtpk file from that mmpk. I have also extract locator file from manhattan mmpk file using python code. but after extract I got multiple locator files:- USA_PointAddress.loc , USA_StreetAddress.loc , USA_PostalExt.loc , USA_StreetName.loc , USA_Postal.loc, Gazetteer.loc , USA_AdminPlaces.loc and also got a composite locator USA.loc. Now I want to enable offline searching in IOS app on vtpk file. I have included all locators file under IOS app but when I reference USA.loc file into AGSLocatorTask then searching is not working in IOS app. Is anything which I am missing or how i enable searching to composite locator?? Thanks, Kamal
... View more
04-18-2017
06:07 AM
|
0
|
4
|
1168
|
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:24 AM
|