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

learn more… | top users | synonyms

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
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 ...
1
vote
1answer
66 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 ...
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 ...
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. ...
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
98 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
1answer
122 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?
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?
0
votes
1answer
48 views

Print Selected Area in Map in Arcgis javascript API

I'm working on arcgis javascript api, and I'm trying to implement a selection print tool, I'm new to this api, and don't know how to select area of the map, and after that, print the selected drawn ...
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 ...
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 ...
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 ...
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 ...
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 ...
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
41 views

Is it possible to make a stackable label with the Esri LabelLayer

I'd like to add a line break, but the textstring is always taken literally. For example: labels.addFeatureLayer(states, statesLabelRenderer, "Line 1 \r\n Line 2"); is displayed on the map as: ...
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 ...
2
votes
1answer
77 views

Unable to print feature layer from my ArcGIS Server

EDIT : I replaced the url to my arcgis server by the IP address and everything worked. It was probably a problem with the web adaptor. I am trying to print a map that I made with ArcGIS Server 10.2 ...
6
votes
1answer
70 views

Mousewheel event being locked by map

I've got a tabbed UI on my web page, the last tab is an arcgis javascript map built with their API. The problem I'm having is that just adding the map and all of the esri / dojo libraries to the page ...
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 ...
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 ...
3
votes
2answers
120 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: ...
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
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
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 ...
2
votes
1answer
42 views

Finding Distances in Spatial Query - ArcGIS Javascript

I am running a spatial query based on a buffered location (e.g. user clicks map, point is buffered and points from feature layer are queried within buffer). Has anyone run something similar but also ...
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 ...
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 ...
1
vote
0answers
10 views

Making attribute features pop up in a static location

I am writing an ArcGIS application that has a 20% left pane div and an 80% map div. The left pane div has four tabs: one for layers, one for search, one for what I want to display information, and one ...
0
votes
1answer
65 views

zoom rubber band missing in IE11 with esri js api 3.10

I am no longer seeing the rubber band in the browser when a user does a zoom operation where they can draw their zoom extent. This started breaking when i added in a X-UA tag = 'Edge'. I am testing ...
1
vote
1answer
38 views

Make FeatureClass that has a FileGeodatabase data source editable?

I wasn't able to find any documentation on this, but is it possible to use the Editor widget in the Esri JS API to edit a FeatureLayer whose data source is that's stored in a FileGeodatabase? I've ...
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 ...
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 ...
2
votes
4answers
124 views

How to perform relational queries against an ArcSDE geodatabase using the ArcGIS API for JavaScript?

I have a geospatial database which contains both spatial and not-spatial tables I would like to publish my data on ArcGis for server and perform both simple and spatial queries. Also, foreign key ...
0
votes
1answer
44 views

different browsers referencing different css files, arcgis javascript cmv

When I open a page in chrome, and click on a feature the popup style is coming from one css file, and when I do the same thing in firefox, the popup looks completely different and is referencing a ...
0
votes
1answer
124 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 ...
1
vote
1answer
71 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 ...
0
votes
0answers
37 views

How to link two combo boxes in ArcGIS JavaScript API

This is related to this question: How to create an if else condition with ArcGIS JavaScript API combo boxes? A few parameters have since changed; Now the layer references multiple fields which should ...
0
votes
0answers
21 views

Use pdf file from a network drive to use it in webmaps without creating Virtual directory?

I would like to include some pdfs, docs, images etc stored in the network drive in webmap popups. I don't want to create a virtual directory in IIS and expose it (which is rather easy). What are the ...
1
vote
1answer
70 views

Configurable Map Viewer (CMV) - Content Pane with CMV

I’m upgrading from the old viewer to the new CMV version. Is there a better way for handling a content pane in the sidebar under the new format? In the previous version I did it thru the controller, ...
1
vote
0answers
26 views

Generating a Placemark (Google Earth) via information link

I'm using the ArcGIS JavaScript API. I'd like to have an infowindow pop up that has a link to a downloadable KML placemark. Is this possible without pre-generating thousands of individual KML files? ...
0
votes
0answers
17 views

Problem with displaying a route in EU, method works in USA

could anyone help me with my code to create a route between two directions in Germany? According to instructions I am creating a route task and setup parameters: map.addLayer(new ...
0
votes
1answer
68 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
3answers
146 views

Measure Widget Issue - ArcGIS Javascript API 3.11

I am having an issue with the Measure Widget in my application after updating to 3.11. The widget does not appear after the application loads. I have checked my code and do not see an issue, also ...
2
votes
1answer
396 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 ...