The ArcGIS API for JavaScript is a web mapping API from Esri.

learn more… | top users | synonyms

1
vote
1answer
487 views

ESRI Javascript API Geocoder VS Locator module

What's the difference between ESRI's Geocoder and Locator module in the javascript API? I know the Geocoder defaults to ESRI's geocoding service, or both modules can be set to a custom Address Locator ...
0
votes
0answers
13 views

Having a basemap, tiled map and a dynamic map together

I have a basemap and a dynamic map which works perfectly together. But i have to add a tiled map too. But if i add the basemap first tiled map wont show up. I want to remove and add the Tiled layer ...
0
votes
1answer
912 views

Error executing tool.: Layer “layer1” Unable to connect to map server

I am using the Configurable Javascript Viewer, and have only changed a couple of the configuration settings. One change I made was to use my own Export Web Map Task. In viewer.js, I changed: ...
3
votes
1answer
659 views

Selecting several disseminate features with ArcGIS API for JavaScript?

I have a cadastral map similar to this one from an ArcGIS Javascript API example: Cadastral map What I would like to do is selecting several parcels clicking on them and show the information related ...
0
votes
1answer
22 views

Arcgis javascript - Set different symbol for each graphic in feature layer

I have a feature layer that contains 12 items with the same defined style. But I want to change each item to have a unique symbol when rendered. var Layer = new FeatureLayer("http://...my map ...
3
votes
3answers
345 views

Error with ArcGIS js API Create web map by ID sample

I have been trying to use the updated ArcGIS API for Javascript, with ArcGIS Online. I have been testing with the sample code found on the "Create web map by ID" page: ...
0
votes
0answers
9 views

ArcGIS Web AppBuilder View Query Results in AttributeTable

I'm building a couple of custom widgets for use on a Web AppBuilder app that do some queries against feature layers. I get back a feature set, which I can convert to a local feature layer. What I'd ...
0
votes
0answers
25 views

Publishing an interactive map made with ArcMap when I don't have access to ArcGIS Online

I apologize if this question is a silly or vague -- I am fairly new to ArcGIS and still grappling with how to articulate what exactly I don't understand. I have created an interactive map in ArcMap ...
0
votes
2answers
468 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
2answers
21 views

ArcGIS Javascript API - carrying out multiple query tasks

I have carried out a QueryTask on a map service that returns a polygon when I input a postcode. Within the same service there is an additional layer that allows the user to query a local authority ...
1
vote
1answer
190 views

How to shade or add grey overlay to non-selected features in ArcGIS API for JavaScript?

I have an application showing cadastral parcels. When a parcel is clicked, the applications makes zoom to the extent of this feature and prepares a floating pane where it is possible to load some ...
1
vote
1answer
155 views

Get Graphics from KML Layer in ArcGIS JS API

I just started working with the ArcGIS Javascript API and I was wondering how I would go about getting an array of Graphics from a KML layer. I do not know where to begin.
2
votes
1answer
441 views

Arcgis API for Javascript: how to change color of simple point marker using colorpicker

as title states im having a hard time changing the color of my simplemarkersymbol using javascript. I have read that the format of color needs to be [r, g, b, a] which I have a color picker giving me ...
4
votes
3answers
4k views

Query Layer with user-defined (dynamic) parameters in ArcGIS 10.1

I have prepared and published with ArcMap 10.1 to my ArcGIS Server a Query Layer to access some information in my database. My output map represents the European Union states and using annotations, ...
0
votes
1answer
16 views

Buttons wont work when I copy the Content of the TOC dynamically into dojo FloatingPane and back

We work with a combination of dojo Vers 1.10 and ArgGis Javascript APi 3.11. We were asked if it ist possible to copy the TOC Layerlist into a seperate dojo FloatingPane by rightclicking into the ...
3
votes
1answer
178 views

ArcGIS JSAPI - web workers CORS issue

In my JS web-application, I'm trying to store the tiles in my localstorage using web workers.I'm using the code from this Esri sample. I just deleted line 20 in the ioWorker.js file: url = ...
1
vote
2answers
177 views

Adding field to ArcGIS Map Service without feature access?

I have published a mapservice without feature access on a remote machine only with a file geodatabase (shapefile on the disk). Because of limits of authority to create a spatial database(don't have ...
1
vote
1answer
228 views

How to append result to Geocoder text box using ArcGIS JavaScript API?

I want to append result of a custom search in a Geocoder text box in ArcGIS JavaScript API by overriding the default result. I have written the below code for this, but I am not getting a ...
1
vote
2answers
108 views

Upgrading custom Java script tool (ver. 1.3 to 3.1 ) for ArcGIS Java Script API and getting error?

I have found useful tool here (All US States and counties on combo-box) its using Java script API 1.3 version. I have downloaded the tool and trying use but its gives an store error (using version ...
1
vote
3answers
240 views

Identifying Primary Key field of Layer in ArcGIS Server using ArcGIS API for JavaScript?

I need to get the primary key column of the Particular layer added in the Map. Usually 'FID' be found for a Shapefile Layer Source and OBJECTID found for a SDE source layer. Is there any way to ...
0
votes
1answer
155 views

Use Dojo to load modularized widget config files

I've taken a basic webmap 'ESRI HomeButton' and I'm trying to create a modularized webmap setup from it. I want to break down this simple webmap to have it utilizing a module system with config files ...
0
votes
1answer
142 views

ESRI ArcGIS JavaScript API - get client ip address

I have a need to direct to url a if the client is inside the local area network or url b if the client is outside the lan. Is it possible to determine a client ip address using plain old html and ...
0
votes
0answers
10 views

Adding UTM to dijit measurement location in JAVA API

2 coordinate systems are shown when using dijit measurement by default. is it possible to add UTM to the Dropdownlist ? Here is the code : var measurement = new Measurement({ map: map }, ...
0
votes
1answer
168 views

Is it possible to copy and paste features in an online Edit function?

Using the ESRI JS API, is it possible to select a feature and then create buttons to copy and paste that feature? This would be done using the Editor Widget. If its possible to do this, but only ...
0
votes
0answers
17 views

(How) can I render the features of a DynamicMapServiceLayer?

I have a webmap that displays the contents of a dynamic map service. For performance reasons I'm currently using FeatureLayers for the individual sublayers (they are all point layers with relatively ...
0
votes
1answer
16 views

Configuring attachments for ArcGIS Local Government “Citizen Service Request” App

Has anybody configured the Citizen Service Request app that ESRI's Local Government has developed? I have it ready to go, but can't get the attachments to work properly, either pics or documents. I ...
3
votes
2answers
159 views

Geocode an address and then buffer

I have a script which geocode an address and buffer that address by 1, 5 and 10 mile radius. The problem I am having is that the address on the map shows 4 different points not sure what's causing it. ...
-3
votes
0answers
45 views

ArcGIS Interview Questions? [closed]

Can anyone provide ArcGIS Server, ArcGIS Javascript API, & ArcGIS Desktop interview questions?
0
votes
1answer
27 views

arcgis 10.2 how to order query results

is there a way to order the returned results of a query task? this: query.where = "COD > 0"; works fine, but this: query.where = "COD > 0 order by COD"; throws: dojo.io.script error ...
0
votes
1answer
252 views

How to zoom to layer using ArcGIS Javascript API

I tried to get the function "Zoom to Layer" done using the following code snippet. But it does not change anything. The layer is a feature service layer, and I can see the full extent object of the ...
0
votes
2answers
219 views

Is it possible to show multiple infowindow?

I just started working with API Arcgis. I can not find a way to leave open the popup that I add with: mymap.infoWindow.setContent(); I wish that every click of a POI then opened his infoWindow. Is ...
2
votes
2answers
279 views

Create a web application with ArcGIS Server

I have a question about ArcGIS server: I want to make an application for users who can search for proper houses, like a house-finding engine, and I published my map to ArcGIS Server but how can I ...
1
vote
1answer
937 views

Displaying unique records in combo-box in ArcGIS API for JavaScript?

I am displaying almost 9000 records by four type (A,B,C & D) in which I am displaying records using combo-box. Each record is classified by "ctype" ( A or B or C or D) so I am putting this in ...
0
votes
1answer
2k views

Print and saving map with tiled and dynamic layers in ArcGIS using JavaScript?

I want to print this map. Can anyone please suggest to me how to print and save the displaying pap in ArcGIS using JavaScript? <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" ...
2
votes
1answer
460 views

Error while placing labels within polygons using ArcGIS JS API and a external Geometry Service

I have published in my ArcGIS server a map service with a table containing the polygons of all countries on Earth. So this table contains more than 200 rows and the geometry field is of type type: ...
3
votes
1answer
394 views

how to disable duplicate items in the legend for ArcGIS JavaScript API

I have a problem with duplicate items in the legend panel! Can anyone help me? This is my feature Layer with popup info: // Feature Layer var msFeatureLayer = new ...
1
vote
1answer
217 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. ...
0
votes
1answer
180 views

How to submit data to modify feature using applyEdits of ArcGIS API for JavaScript?

I'm new to ArcGIS API. In a form, how can you submit data to modify a feature using applyEdits? No map is involved with this. I have a form that populates the editable data with javascript. When the ...
2
votes
1answer
181 views

How to create a time slider using arcgis javascript that only shows a year at a time?

I am looking at this example on how to create a time slider using the arcgis javascript api. Instead of showing the data cumulative from the start date. I want to just show the data for that ...
1
vote
1answer
158 views

ArcGIS Javascript API: Adding a shapefile with more than 1000 points

I am able to add shapefiles with less than 1000 points by using the ArcGIS Portal REST API as shown in this example: https://developers.arcgis.com/javascript/jssamples/portal_addshapefile.html ...
-1
votes
1answer
95 views

Upgrading ArcGIS JSAPI 2.x to 3.x & getting different errors

I have few data in which ArcGIS Java Script version 2.6 and 2.8 is used & I am upgrading it to ver.3.0/3.1 and getting different errors like (Store error,Map display is blank etc.) I searched on ...
0
votes
1answer
459 views

Geoprocessing tool not executing when Map's SpatialReference is Web Mercartor

I am facing a strange issue when trying to execute GP service when my map's spatial-reference is Web Mercator. I appreciate all help. I have a JavaScript API application. Initially I only had my map ...
2
votes
1answer
417 views

How to write addressToLocations onError?

How can I write a code for checking the error condition in Javascript (ArcGIS) for addressToLocations(params, callback?, errback?). if somebody entered an invalid address- how can I call error ...
2
votes
1answer
28 views

ArcGIS javascript api ignores proxy when getting basemaptiles

The ArcGIS-javascript is ignoring my proxy.ashx when getting the tiles for a basemap-layer. In my case this tiles will come from "HERE". For this I need authentication-informations (AppID & ...
3
votes
3answers
177 views

Is there a way to set a geometry filter on a esri.layers.FeatureLayer?

Suppose I want to limit the extent of a feature layer to a geometry (say a circle). Is that possible? I am aware of setDefinitionExpression but that is limited to a attribute filter. There seems to ...
1
vote
1answer
24 views

Change feature layer symbol of single polygon on mouse hover

My goal is to display a complete feature layer of ~400 features with a default symbology when the map loads and then replace the symbology of a single polygon in that feature layer on a mouse hover ...
1
vote
1answer
859 views

ArcGis Server Java script API error code 500 while using proxy.ashx on one particular server

I am looking for help with using proxy.ashx in Javascript API on one particular server at a client site. We have a GP service that the proxy is used to access (when request is more than 2048 ...
0
votes
1answer
199 views

Mapquest directions API in ArcGIS javascript webmap application

I'm trying to build a webmap application using the ArcGIS JavaScript API. A functionality I would like to include is driving directions from a current GPS location to a feature in my feature service. ...
0
votes
1answer
34 views

Incorrect time displaying in ArcGIS Javascipt popup template

I'm creating a web map that is updated a few times a day showing voltage readings from meters on our distribution network. This layer has a field called ReadTime, and the data type is Date. The date ...
1
vote
1answer
475 views

How to Create a arrow PolyLine with curved (geoDesic) using ArcGIS PolyLine

Trying to draw two markers(points) with a curved and arrow PolyLine using ArcGIS maps. Below is the source code, able to draw Poly line but it is coming as straight line. <!DOCTYPE html> ...