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

learn more… | top users | synonyms

0
votes
2answers
150 views

add featureset in graphics layer without iterating

I have a geoprocessing service that returns a large amount of features (featureSet). I want to attach them in a graphics layer, but I dont wont to iterate over all them. I tried using the ...
0
votes
1answer
382 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. ...
1
vote
1answer
229 views

Why do I have to reload the page, to show the Map correctly?

I added a map, in the way I'm supposed to, but why do I have to reload/refresh the page, to get the map (almost) as I want to? This is, what I mean: Map before reloading the page: Map after ...
1
vote
1answer
36 views

ArcGIS API for Javascript nd BING tiles

I'm using the "esri.virtualearth.VETiledLayer" in my map application as a basemap successfull,y but am restricted to 18 levels of detail. BING's resultion is higher than this, but the ESRI widget ...
0
votes
0answers
12 views

Esri Map ArcGISDynamicMapServiceLayer click infobox

I am developing on esri map. I need to add ArcGISDynamicMapServiceLayer layer on the map. How can I get feature from ArcGISDynamicMapServiceLayer layer, and apply click for each layers. Currently I ...
0
votes
0answers
14 views

Can I create charts that are NOT in an InfoWindow or Popup?

I want to create a bar chart of some query results that I'm using in my ArcGIS Webpage. However, all of the examples that I can find only put the charts in an InfoWindow or Popup. I need the chart to ...
0
votes
1answer
17 views

Arcgis featureset to kml client side

I want to convert a js feature set retrieved from a geoprocessing service to a kml client side, and perhaps also to a csv (i have the object from the JS API). Is there any way do this? To clarify: ...
1
vote
1answer
42 views

Once route is solved, also return encountered barriers from ArcGIS Server Network Analysis?

I have came across an unexpected "issue" while working with the Esri JS API and ArcGIS Server Network Analysis service. Once user submits the route solving task to the server, I'm appending the ...
0
votes
1answer
36 views

ArcGIS Javascript Api centerAt

Trying to center the map at a certain coordinates but map only centers at 0,0 instead. Coordinates are in decimal degrees. Code below. function foo(data) { var lon = data.address.longitude; ...
0
votes
1answer
30 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
2answers
504 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
1answer
48 views

How to change cursor of navigation tools in ArcGIS javascript api?

I want to change the cursor symbol for navigation toolbar(zoom in- zoom out- pan ...). i search and found the question about change cursor symbol but i could not use the code. I dopn't know why its ...
0
votes
0answers
12 views

How to enable navigation tools when the dialog is appeared on map?

I created a simple webgis with Navigation tools.The navigation tools is located in a dialog. the problem is when the dialog appeared on map, i couldn't interact with map and the background of dialog ...
0
votes
2answers
2k views

How to zoom to the extent of a query result

Does anyone know how to change the extent on the map in function of a query? in legende I have no problem using the function showResults (featureSet) {... but, can not get any display in AMD. Here ...
0
votes
1answer
423 views

Error code 500, error performing execute operation from Print task of ArcGIS API for JavaScript?

I'm trying to use print task to generate a PNG or PDF file of my web map but i always get an Error code 500, error performing execute operation. Any Ideas? I'm using ArcGIS API for JavaScript ...
2
votes
1answer
727 views

Clicking on feature to create particular new map using ArcGIS API for JavaScript?

I have a polygon layer visible from scales 0 to 8 (bigger to smaller). The thing is that I would like to click on a SINGLE feature of this polygon layer and then going to a different map (but in same ...
0
votes
3answers
36 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 ...
2
votes
1answer
434 views

Creating dynamically multiple layers in ArcGIS for Server?

I am using ArcGIS Server 10.1 and Desktop 10.1 software. I am publishing table from sqlserver to the ArcGIS server, that table (from sqlserver) is updating hourly, and the types are increasing. I ...
0
votes
1answer
333 views

Configurable Map Viewer (CMV) - Configure dynamic layer to not display all sub-layers?

Using the example below, from the CMV, what would be the best way to not show the Fire Stations layer in the Louisville Public Safety map service assuming I wanted to see everything else and I wanted ...
0
votes
1answer
142 views

Configurable map viewer (CMV) - Find the area of drawn polygon

I am trying to get the area of a polygon and divide that by 16.94 ft^2. I have plugged in a Template I found. I am missing something. I am trying to get the template and my original code to talk. ...
3
votes
1answer
324 views

ArcGIS JavaScript API: onAnimate Error

I am trying to zoom to a point in ArcGIS JavaScript API (3.9). I am doing this one of two ways, I am either grabbing a point feature from ArcGIS Server (10.1), or I am grabbing the center of a polygon ...
0
votes
1answer
17 views

PrintTask with proxy does not add the correct contet-type header: application/x-www-form-urlencoded

I am using a proxy which I have made on my own so as to perform the map export tasks. I have noticed that GET/POST requests use the content-type header: application/x-www-form-urlencoded. However ...
1
vote
1answer
482 views

Polygon using ARCGIS API for javascript

I've polygon data as POLYGON ((1645481.0939999996 6124506.9885, 1645470.0473999996 6124473.5406, 1645475.7094 6124440.1391,1645481.0939999996 6124506.9885)) in wkid=2193 I want to project ...
0
votes
0answers
34 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 ...
1
vote
1answer
512 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
1answer
946 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
676 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
40 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
350 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
37 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
32 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
495 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 ...
1
vote
1answer
195 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
160 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
479 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
19 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
179 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
181 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
239 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
109 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
251 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
157 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
148 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
17 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
19 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 ...
0
votes
1answer
32 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
274 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
240 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
296 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 ...