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
23 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
244 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
71 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
1answer
503 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
0answers
21 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 ...
1
vote
1answer
245 views

arcgis javascript api featureLayer not available immediately upon show click event

I am adding a feature layer as such in my index.html file. featureLayer00 = new FeatureLayer("http://webadaptorserviceurl/MapServer/0",{ mode: FeatureLayer.MODE_ONDEMAND, id: "0", ...
0
votes
1answer
26 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
739 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
1answer
573 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. ...
2
votes
1answer
510 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 ...
0
votes
2answers
92 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: ...
1
vote
0answers
27 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
15 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
23 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
36 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
712 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
46 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
35 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
58 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
161 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
30 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 = ...
1
vote
1answer
29 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
11 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
30 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
49 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 ...
1
vote
0answers
25 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
41 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
227 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
26 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
63 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
1k 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
60 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
21 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
129 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 ...
1
vote
2answers
87 views

Appending Data to FeatureLayer in ArcGIS API for JavaScript?

I am working on a web app where I am making calls to a database api and it returns a JSON Object. I've managed to do so successfully as well as any manipulations that need be done. Is there a way to ...
0
votes
2answers
32 views

Feature class imported table as points and now want to display

In ArcCatalog and ArcMap 10. I have set up a feature class with all the fields I want to populate. I have data in a table format which includes wasting and birthing columns. I used the load data to ...
2
votes
0answers
24 views

TOC layer symbol changed EVENTS in ArcMap

I want to do something when user changes one of TOC layer's symbol. I am using .NET in arcMap 10.0 . How can it possible with arcobjects ? Please , help. Specially I want to know, Is there any events ...
0
votes
1answer
273 views

Select by location in ArcPy?

i work with arcview 10.3 on 20 mxd's (each mxd has 25 layers) and i try to do select by location (with arcpy) and want to see a layers that are visible in the current map extent only. All Other layers ...
4
votes
2answers
2k views

ARCGIS Javascript API Feature Layer retrieval

I would want to develop an application where we could query the layer based on a result set of certain attributes of the features and highlight features. Approach Currently I tried using the feature ...
0
votes
1answer
58 views

Output Feature Class empty after trying to display it on map using arcpy.mapping?

I am trying display the output of my script on an mxd once it is created. To do this, i created a function at the end of my class that handles all mapping. I have tested the code up until the ...
1
vote
1answer
30 views

IfeatureLayer.search() second time return error

I have the following method in my code and have a button that when clicked run this code. In the first click all of code runs without error. but in second run I receive an error on line: ...
0
votes
0answers
59 views

ArcGis Feature layer does not display symbols consistently on web browers

I have a Feature layer that does not display symbols consistently. Symbols at certain locations are randomly not be visible. Zooming in-out will randomly show/hide a symbol at a particular location ...
28
votes
5answers
19k views

What is difference between map layer and spatial dataset (e.g. feature class, shapefile)?

What is the difference between feature class and feature layer? To me they seems very similar in concept.
5
votes
1answer
180 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
2answers
826 views

Update multiple features attributes in loop - JavaScript

I am trying to update multiple features in a feature layer through a loop. I have a feature layer that I would like to select and then assign someone to the features (through an attribute update. I ...
1
vote
0answers
45 views

Use a dropdown menu to display various feature layers

I am trying to develop a dropdown menu that can display various feature layers, something similar to the following, except that I don't need the relocation function and when each option is selected, ...
2
votes
1answer
513 views

Using FeatureLayer as pure client side query in ArcGIS API for JavaScript?

I've created this wrapper around feature layer where I create the empty feature layer as is in the API help page : new FeatureLayer(featureCollectionObject, options?) providing the first ...