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

learn more… | top users | synonyms

2
votes
0answers
369 views

Data visualization techniques for web maps using ESRI and open source suites

I want to represent statistical data over the web map and looking the examples/techniques to represent data on the web map (apart from Pie-chat, bar graph) with new tools like gauge widget etc. ...
0
votes
0answers
21 views

Multiple ArcGIS custom popup template

I'm trying to view Measurement widjet in popup using arcgis javascript api, how to achieve this goal? I did a popup info for layers, but I'm not sure how to do this when pressing on measurement tools ...
0
votes
0answers
23 views

Adding an extra tooltip for addLine

I'm using the following code to include tooltips for drawing a point. I want to include a tootip for drawing a line - how can this be done? Can I just add an extra line for addLine at the end? ...
2
votes
1answer
397 views

ArcGIS Web AppBuilder widget config?

I downloaded a webapp builder template (javascript) that I've placed on my own web server and is running fine. However, I am not able to modify the widgets in the config.json file to the settings ...
0
votes
1answer
435 views

ArcGIS Online Map using URL does not work with PhoneGap

I wanted to show my public accessible ArcGIS Online map with URL on a simple Hello World PhoneGap project with Eclipse. Eclipse threw out the following error in LogCat. Web Console:RequestError: ...
2
votes
1answer
883 views

Trouble with accesing API code: “ReferenceError: esri is not defined”

I am developing a web map application in the ArcGIS API for Javascript. I two have ArcGISDynamicMapServiceLayer layers that I am trying to run a simple query task on. The code I am using works in ...
1
vote
1answer
50 views

Proxy error with ArcGIS PrintTask - AMD

I am trying to add a simple layer of security to my ArcGIS JS app. I do not want to prompt my users for a login to retrieve a token. So instead I pass the username/password inside this PHP proxy: ...
1
vote
1answer
59 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 ...
2
votes
1answer
50 views

Show an ArcGIS InfoWindow on Map Init

I have created a map with a simple marker at a specified location but I cannot figure out how to have an infowindow attached to the position open automatically on page load. This is my init function: ...
0
votes
1answer
38 views

ArcGIS js API create map layer from shapefile?

I have a couple of shapefiles that i'd like to display in a map that i've created with the ArcGIS js API. I tried creating a service from ArcGIS server but ran into "ArcGIS cannot access the data ...
0
votes
1answer
148 views

multiple graphics added to ArcGIS javascript API map are not printing (using MapExport) reliably

I combined samples for Printing with graphics https://developers.arcgis.com/javascript/jssamples/widget_print.html and labeling ...
0
votes
1answer
112 views

Create a tree view of layer groups and sub layers using ArcGIS JavaScript API

I'm trying to create a tree view of layer groups and sub layers, I searched Google, and I found something called the Table Of Contents widget. I couldn't use it, or in other words, I don't know how to ...
0
votes
1answer
66 views

Upgrade JSAPI version from 3.5 to 3.11

I am a novice getting started to work on a proof of concept to develop a web app powered by JS API. I have a prototype that was put together back in July 2013 with JS API version 3.5. See below for ...
0
votes
1answer
32 views

Get Group Layer children

I'm new to arcgis javscript api, and trying to get layers from a group layer. I'm not sure how to get this done. any help?
1
vote
1answer
580 views

Populating a Dojox Grid

The problem I am having is getting my grid to fill when I run my select command. It sees the number of features and creates the correct number of cells in my grid but that is about it. It should ...
6
votes
2answers
2k views

Application Templates for ArcGIS Server?

Esri provide a lot of excellent template applications for us in conjunction with web maps. These templates are specifically designed for using with your resources on ArcGIS Online as opposed to ...
1
vote
0answers
24 views

Mobile Safari and ArcGIS JavaScript API Errors

So in creating an application that uses the LaywerSwipe widget the application displays fine on iOS but I am unable to move the scope or slider. I get the following errors from init.js : It keeps ...
1
vote
0answers
89 views

ESRI Javascript - Print Task GP Service - Symbology Issue

I am using the ESRI js API, and using a python GP service to run a print task to PDF with custom layouts. This works great, except when i have any map service enabled in the map. The layer in the ...
2
votes
2answers
79 views

ESRI JavaScript API FeatureLayer Click Event

I am using FeatureLayers in the API to load in a layer. I have an info template set for the layer for identifying individual features. I am trying to disconnect the click event from the layer while ...
1
vote
1answer
209 views

mapbox layer in ESRI API

I am building an application primarily with the ESRI API, but would like to load a mapbox tilelayer to use as the basemap as they are just so much more pleasing cartographically. I dont want to change ...
0
votes
1answer
26 views

esri JavaScript Spatial Analysis Services: Select appropriate helper services url from Portal for requested operation

About 6 months ago I built a prototype JavaScript app which uses the spatial analysis service; FindNearest. Find Nearest. I've posted this on GeoNet but haven't had much joy there. The app ran fine ...
1
vote
1answer
123 views

Getting value coded of domain from map layer with arcgis javascript api

I'm trying to read domain values on a map, how to achieve this objective in arcgis javascript api? any help?
1
vote
1answer
67 views

Viewing Domain values as dropdown list in data grid in arcgis javascript api

I'm trying to view layer data in a data grid, everything is fine, but when the data contains domain values, its place stays empty, and does not view any data? any one can help how to view it? Or am I ...
3
votes
2answers
56 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. ...
0
votes
0answers
13 views

Include Search option in table of contents

I am building an interactive map using ArcGIS javascript API and I want to provide the function to search by the layers in the table of contents. What's the best way to do this?
1
vote
0answers
39 views

Customize LabelLayer extent based on density/location using ArcGIS JavaScript API

I'm using a LabelLayer that can be seen only within a certain minScale - maxScale window. I'm trying to display labels of census tract IDs within Illinois, and the difference in label density between ...
0
votes
1answer
39 views

Configurable Map Viewer (CMV) - Open Help on page load

I'm wondering, as opposed to opening the help dialog when the help link is clicked: var help = domConstruct.place(this.html, this.domTarget); on(help, 'click', lang.hitch(this.parentWidget, ...
0
votes
3answers
93 views

ArcGIS dynamic layers performance with many features to display

So we have data with over 10,000 features in a very small area of less than 50 acres or so and we are getting pretty slow performance of several seconds when the extent is changed via panning and zoom ...
0
votes
0answers
109 views

Navbar on ArcGIS JS API causing locator to behave buggy

I have added a nav bar with combo boxes to extend an ArcGIS JS API application further. When a location is selected on the map the point does not appear and I receive this error. Failed to get text ...
1
vote
1answer
23 views

How to join the shape to an external data

I'm developing an application that uses Shapes only to draw the map. I would like to "Inject" the data at the time of viewing, since my data is dynamically changing. Anyone know of any way of doing ...
1
vote
1answer
37 views

IdentifyTask for “hollow” polygon (using ArcGIS API for JavaScript)

I have a web map application set up that's currently testing on a variety of Dynamic Map Service layer types, including points, lines, and polygons. This application includes a tool that makes use of ...
2
votes
3answers
137 views

Change symbol size in legend for FeatureLayer (ArcGIS API for JavaScript)

I'm learning how to create web applications using the ArcGIS API for JavaScript. I have a map that is displaying both an ArcGISDynamicMapServiceLayer (which includes two layers) and a FeatureLayer. I ...
1
vote
1answer
66 views

How do I get the legend from a ArcGISDynamicMapServiceLayer using esri javascript api?

New Code: I updated the code a bit to more a recent recent version of the api, but ashima was correct in that I was not passing my layer as an array. Fixed that and it worked map = new Map("map", { ...
0
votes
2answers
56 views

Change output spatial reference for ArcGISTiledMapService

I'm using the New Zealand Topo50 maps for my basemaps from an ArcGIS map server at http://services.arcgisonline.co.nz/ArcGIS/rest/services/LINZ/geotiffs/MapServer. However, this service has a spatial ...
1
vote
1answer
57 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 ...
0
votes
0answers
33 views

Bug with Editor Widget (disappearing custom fields)

I may have found a bug with the Editor Widget in the JS API v3.11; I've tested this in IE9 and IE11, and it doesn't occur in the latest versions of Firefox and Chrome. The customFields disappear when ...
1
vote
2answers
92 views

How to create an if else condition with ArcGIS JavaScript API combo boxes?

I have an ArcGIS JavaScript API Web App that uses multiple combo boxes. I would like to create an if-else conditional statement between two fields in my feature layer. If one field is chosen in ...
1
vote
2answers
227 views

Restrict suggestions from ESRI ArcGIS REST API to US addresses only

I am wondering if there is a way to restrict esri arcgis REST API to suggest only US addresses. Combination of location & distance parameters prioritizes the results, but that doesn't restrict ...
0
votes
1answer
53 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 ...
1
vote
0answers
93 views

ArcGIS JavaScript manually render a layer with supplied JSON

Given the following JSON which is retrieved outside the ArcGIS/dojo framework, how would I go about rendering this layer? Thanks in advance! { "currentVersion": 10.01, ...
2
votes
4answers
431 views

ArcGIS JSAPI draw toolbar tooltips not displayed in IE10

I am experiencing an issue where the draw toolbar tooltips are not displayed in Internet Explorer 10 when using the ArcGIS Javascript API. Try the following example in Internet Explorer 10 and ...
3
votes
2answers
121 views

Getting an error using ESRI's Javascript API

I am trying to display the query results of a button click on a map. I am getting the following error at this line: queryTask.execute(cntryq); of my script: TypeError {stack: "TypeError: ...
0
votes
2answers
39 views

How to set CSS for Samsung Note 3 in ArcGIS API for JavaScript?

I have an application that I would like to be rendered across multiple mobile devices, what is the correct CSS and HTML settings for this? Ideally, I would like it to render on iPhone 4-6S and ...
1
vote
1answer
39 views

Legend item resolution issues in ArcGIS Javascript app

When I create a pdf map using my JavaScript API app, the legend items have messed up resolutions when there are more than a few swatches in the legend layers: On the left: image of print with poor ...
0
votes
0answers
25 views

working with image service and mosaic rule lock raster method, how can the lock IDs be set by the user

I have an image service with many overlapping rasters that I have loaded into a map. I would like for the user to be able to choose which rasters they would like to view. I know I can use the mosaic ...
0
votes
1answer
125 views

No legend showing at all in ArcGIS Server print task (MapExport)

I am using some stock print templates like the 2 in this sample. The problem is that the legend doesn't show up at all. I found a few forum questions showing problems with the legend but none of them ...
0
votes
2answers
82 views

arcgis javascript api, cmv, incorporating custom search widget

I would like to add a custom search/geocoder widget to a cmv page, in addition to the geocoding widget that is already included with the source code. I have thought about modifying the existing ...
2
votes
1answer
147 views

Editing many-to-many relationship classes with ArcGIS API for JavaScript?

I am seeking some guidance on working with many-to-many relationship classes thru the ArcGIS Server Javascript API. I am designing a traffic count data management application. Count data locations are ...
1
vote
1answer
79 views

How to find whether a Point lies inside a Polygon using ArcGIS JavaScript API?

We want to find whether a Point lies inside a Polygon. var point = new esri.geometry.Point(-85.91,25.68,this.parent.esriMap.spatialReference); var polygon = new ...
0
votes
2answers
109 views

Configurable Map Viewer (CMV) - Print Widget - Proxy Issue

I'm not sure this is necessarily an issue with the CMV as much as it is with how I may have the proxy configured. I'm not sure exactly what to ask so I'll start with describing the symptom. When I ...