The ArcGIS JavaScript, Flex and Silverlight Web APIs offer a feature layer class for working with client-side graphic features. Feature layers are also used in various forms in ArcGIS Desktop, ArcGIS Explorer and other APIs.

learn more… | top users | synonyms

0
votes
0answers
17 views

Publishing Layers from ArcMap to ArcGIS Online?

In ArcMap (and once signed into ArcGIS online within ArcMap) I was trying to publish or Share As A Service only a few Layers therefore keeping my symbology and getting it to AGOL. When you do that ...
2
votes
1answer
573 views

Remove selected feature symbol

Background: I am dynamically populating a feature layer. On this feature layer I have set the symbol (as you can see) to a nice little .png image. Everything seems to work fine around the layer except ...
1
vote
1answer
268 views

ArcGIS Javascript API FeatureLayer not available immediately upon show click event

I am adding a FeatureLayer in my application as follows: featureLayer00 = new FeatureLayer("http://webadaptorserviceurl/MapServer/0",{ mode: FeatureLayer.MODE_ONDEMAND, id: "0", ...
0
votes
1answer
632 views

Attribute Inspector for points - JavaScript API

I am attempting to get an application working where editors can click on a point feature and edit a form. I need the form to have a save button that when clicked will apply the edits to the feature. ...
0
votes
2answers
833 views

evt.layers undefined while trying to display Legend widget in Javascript API

I cannot get an ArcGIS Javascript API Legend widget to show up. An excerpt of my code is as follows. I believe I'm failing somewhere near the console.log that I call...undefined comes up in the ...
0
votes
0answers
28 views

Large 3d features layer in cesium

I'm trying to show a huge feature layer 3d from arcgis on Cesium. I tried to generate a KML with Layer To KML option - which generated me a 3gb KML (Which of course will make Cesium to crash). I read ...
2
votes
1answer
33 views

How can i add coordinates of Polygon nodes on a Polygon data table?

I'm new in this domain and I want to know if I can add to data table of a Polygon.shp, coordinates of node. I have this table pkuid/ name_poly/ area/ lenght/ (here nr_point ex:1,2,3,4 it' about order/ ...
0
votes
1answer
62 views

Copy query feature layer into a feature class - error 000732

I am trying to create a python script to copy data from a MSSQL view (includes a geometry field) into a feature class. They are both held within the same database. I have tried arcpy....
10
votes
5answers
2k views

what is the right way to delete all features from featureLayer

I have a featureLayer and I don't want to kill it and create another one. I want to delete all features from the current featureLayer. I found that I can use applyEdits method but in order to use it I ...
1
vote
1answer
41 views

ArcGIS- Add feature names to coded value list for domain

I've got two feature classes, "Points" and "Lines", the first is a feature point class, the other is a line class. I've got a coded value domain field for the "Points" class, that I'd like to add the ...
6
votes
2answers
288 views

ESRI Javascript FeatureLayer Select by Attributes

I am trying to select a group of features in an ESRI javascript API featureLayer by attribute. The call errors out. My code is as follows. Here is the layer definition: var fieldDefs = [{ ...
1
vote
1answer
627 views

ArcGIS javascript API setDefinitionExpression returns wrong result set

New to GIS and ArcGIS. I am trying to use the javascript API setDefinitionExpression to limit the output of a FeatureLayer on the map; however, the result set returned by the function is incorrect. ...
1
vote
1answer
39 views

How can I test if a layer is using SDE

I find that when things are not working as they should repairing the geometry on everything is a good first point of troubleshooting so I run a few lines of python: mxd = arcpy.mapping.MapDocument("...
2
votes
1answer
33 views

applyEdits to FeatureLayer does nothing

I am trying to create a series of layers using a county map of the US. In order to save load time I am only loading the county polygon geometries once, then using applyEdits (https://developers.arcgis....
1
vote
2answers
43 views

arcpy won't return correct data types of layers

I wrote this so that arcpy would give me the data types for each of the layers in a map document. But, "Feature Layer" is the only type of data that is returned (apart from "N/A"). Shapefiles are ...
1
vote
0answers
31 views

error printing a map with feature layer with feature collection using esri jsapi

I have this single page web map app with esri js api 3.4 and arcgis server 10.1. I have added a print widget and that works fine (with two base map layers and an empty feature layer with feature ...
7
votes
0answers
62 views

How to synch a FeatureTable with a FeatureLayer's selection set?

The ArcGIS Server JS API contains a new FeatureTable class, which shows the attribute table corresponding to a FeatureLayer. There is an option syncSelection which: Enables an interaction between ...
1
vote
0answers
18 views

After Feature Layer reference is added all dojo references are not recognized

I'm creating a simple javascript management system in which I have to query 6 feature layer services, edit, add or delete data from the services. Every time I want to add the Feature Layer reference ...
0
votes
0answers
31 views

Removing Layers/Features from map

I am creating a custom Layer List Widget and I was trying to remove features (symbols) from the map. Does this have to be done from the mapserver level or client level? I tried getting the map.layers ...
1
vote
1answer
301 views

Sending e-mail on feature update in ArcGIS JavaScript application? [closed]

We have an ArcGIS feature service that users can edit to change a "project status" attribute. An example would be a change from "pending" to "in-progress". Certain groups need to be notified when ...
1
vote
1answer
82 views

Android ArcGIS API, how to loop into every Feature in Geodatabase

I have an offline geodatabase in android ArcGIS which I have downloaded through gdbAsyncTask. how do I loop into every feature in that geodatabase? for example I could have collect all the IDs from ...
1
vote
0answers
42 views

The layer was not drawn completely - ArcGIS Online

I am publishing a hosted feature service layer onto ArcGIS Online organization from ArcMap. The service has just one layer that is stored on a file gdb on my PC. I am able to publish a service with no ...
0
votes
1answer
30 views

Using a overlap with a different layer file to create a simple Y/N field in attributes of another layer

I have two layers, which I wish to use one of to educate and populate an attribute field in the other layer with a simple Yes/No for if they overlap in terms of location. Is there a simple way to do ...
0
votes
2answers
108 views

Esri JavaScript API ApplyEdits update not working

When I attempt to applyEdits as an update to my application I receive the following errors: I uploaded my most recent revision on Github at: https://github.com/csergent45/streetSigns/tree/...
2
votes
0answers
59 views

Get Styles for Feature Layer in Feature Collection, Customize Layer List

so I'm using the JavaScript API to customize an ArcGIS web app and I need to take feature layers and group them in the layer list widget. Here's the code I have that does that (in the widget.js file ...
0
votes
1answer
23 views

ArcGIS Online Web Map only showing OBJECTID for Feature Class

I published a series of Feature Layers to ArcGIS Online. When I try to open the REST endpoint in my browser, it is showing ONLY the OBJECTID field for each layer, even though all of them have ...
3
votes
2answers
2k views

Populating a Dojo widget with country names based on an ESRI hosted layer

Wow, Javascript is not that easy - can someone help me make a simple breakthrough just to understand some basic concepts. Does anyone know how to populate a filteringSelect Dojo dijit with the names ...
0
votes
0answers
29 views

ArcGIS Feature Layer Android, QueryTask not working

I am using the https://github.com/Esri/arcgis-runtime-samples-android/tree/master/QueryTask example to write the application to query FeatureLayer. The code is exactly the same, I have only replaced ...
0
votes
1answer
42 views

SelectByAttribute is not working (ArcGIS, Arcpy. Python script) -

My script is below. I use to file from filegeodatabase to select all of rows (in a loop, one by one) to create a simple map and export it to jpeg. For some reason, once I updated my script to run ...
0
votes
1answer
751 views

Arcgis SDK for Android - Query multiple feature layers

I'm developing a android application with arcgis sdk. I have a basemap and then 4 different feature layers on top of it. I began with the arcgis sample "attribute editor" and removed the edit ...
0
votes
1answer
60 views

Writing Python Script to Iterate through several geodatabases in folder and copy feature classes to single geodatabase?

I need to go through multi GDB in 1 folder and copy all feature classes from each GDB and copy them into the single GDB. I create a piece of python code that can go through each different GDB and also ...
2
votes
1answer
44 views

How do I create a layer with popups that has hundreds of unique markers/symbols?

I am creating a layer in ArcGIS JavaScript API. I am looking for the best way to have a feature layer with popups and unique markers. This layer has hundreds of markers at a time. The markers are ...
1
vote
2answers
86 views

ESRI JavaScript FeatureLayer constructor makes graphic geometry null in featurecollection object

I'm pulling point data by lat long from my SQLServer database via webservice and creating a JSON FeatureCollection object as the webservic response. When I attempt to create a FeatureLayer from this ...
0
votes
3answers
203 views

Creating layers for each attribute value via Arcpy script

I'm having some trouble starting this script. Not sure how to start, as I have to create/output layers for each attribute value from a certain column named that has integers. They are all unique ...
0
votes
1answer
50 views

Adding features dynamically to an ArcGIS Javascript FeatureLayer with applyEdits()

When attempting to add features to a featureLayer with applyEdits, the features do not get added to the layer. var featureCollection = JSON.parse(mapdata); var features = JSON.parse(mapdata)....
1
vote
1answer
38 views

Arcpy how to get field names dynamically from shape file in customized plugin?

On selection of a feature layer ArcMap tools display all the fields, Zonal Statistics is one of the example. I have entered my feature as fishnet and it has shown me all the fields in a list below. I ...
2
votes
0answers
14 views

Feature templates in ArcGIS JSAPI published maps

I have an ArcGIS map which is published on ArcGIS server (10.3) and while the feature templates for each layer are set up in the map, the published map service contains totally different set of ...
0
votes
0answers
118 views

Open Layers 3, how to add a new Feature with style?

I have an open layers 3 map where in I am drawing a line in the map using given coordinates,zoom level and center. The lines are drawn up well but I want to be able to remove the path and then draw a ...
1
vote
1answer
72 views

Difference between FeatureLayer and FeatureSet in ArcGIS

Could anyone please explain the difference between FeatureLayer and FeatureSet in ArcGIS?
3
votes
2answers
2k views

Is there any way to set polygon features fill color and outline programmatically?

By some process I am creating a polygon feature layer. Before adding the layer in the map, I want to set polygon's fill color to no color and set polygon's outline color and width. I am working with C#...
1
vote
0answers
35 views

Trying to select some features that are at a map service not featurelayer. (arcgis api)

I am trying to select(highlight) some features that are found at a map service. The selection is based on mouse clicking on map by the user. I am using Arcgis Javascript Api 3.15 Here are my steps. ...
2
votes
1answer
61 views

Field Calculator is not calculating selection from Make Feature Layer in arcpy

I am trying to use field calculator to calculate 3 different fields in python from a Make Feature Layer variable. It calculates the first field (MATERIAL_T) but then it doesn't calculate the second ...
2
votes
2answers
311 views

how can we save vector layer as a file in openlayers

Im using mapserver + openlayer for GIS API and im new to GIS. I'm done with drawing line, point and polygon features in openlayer. but not being able to save it in some shapefile afterwards i got to ...
0
votes
1answer
39 views

Setting opacity info in ArcGis Api for Javascript overwrites featureLayer.renderer.colorInfo

I'm having trouble setting the color of a feature layer in ArcGIS api for javascript. I have a feature layer, which, on the load event I set its renderer's colorInfo and opacityInfo. Both work ...
1
vote
1answer
118 views

Stubborn geojson layer misaligned with mapbox (leaflet) tiles only in production website, not in codepen or other online sandboxes

You can see my code and expected result in this running swiftly in codepen! Other online sandboxes work as expected too. The exact same code running in my php file on my wordpress site, shows the ...
5
votes
1answer
2k views

How do I use a toggle button with the ESRI javascript api

I am trying to use two toggle buttons which have been added to a map to toggle layers on and off in my simple web application. I am having problems getting the toggle button to respond when clicked or ...
2
votes
1answer
93 views

Putting features (IFeature) into ifeatureclass with ArcGIS Engine?

I am trying to get the selected features from axMapControl and put them in a new feature class. I can get the selected features but when i'm trying to put them in a IFeatureClass and then cast it as ...
1
vote
0answers
22 views

Show FeatureLayer when some of it's objects is found by Search ESRI JavaScript Api

I'm using ESRI JS 3.15. I have many FeatureLayers, which resources are connected to Search, when user type a name of an object in search bar, it gets focused, but I want also to hide all other ...
1
vote
1answer
2k views

ArcGIS JavaScript API Select Features

I'm having some trouble using the selectFeatures method with a feature layer. The code below builds a query using input text. If anyone has any pointers on what I could be doing wrong here, it'd be a ...
3
votes
1answer
202 views

Using Update Cursor, populate field

I am trying to write a script where you preemptively select features and then go to the tool which calls for the feature layer and it populates fields based on certain criteria which I will design of ...