Use this tag when ArcGIS API for JavaScript is the web mapping API that you are using from the ArcGIS platform.

learn more… | top users | synonyms

1
vote
1answer
341 views

“Pagination not supported” error occurs when searching feature layers using the search widget

I just upgraded to the 3.13 version of the JavaScript API, and I'm working on getting the new search widget (esri.dijit.Search) working in our application. We have our own ArcGIS Server (10.1 I ...
0
votes
1answer
9 views

Draw and save graphics to IndexedDB / Local Storage using ArcGIS API for JavaScript?

I need to add graphics to a map with class. Is it any sample or way to save it to IndexedDB or Local Storage ? I tried to use offline-editor-js but this library don´t offer possibility to save ...
1
vote
1answer
748 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
0answers
10 views

How do you control the width of a column generated by FeatureTable with javascript?

I am generating a table using FeatureTable() and I would like for the columns to be different widths. I can't find anything in the API on how to do it and all of the samples I have seen have all of ...
1
vote
0answers
10 views

AttributeTable sending an alert that data was not found when clicking on table row

I have an AttributeTable that I have opening when I start a widget. When I click on a table row in this instance, I am able to get the information back correctly and not see this message. I did this ...
1
vote
1answer
201 views

How to create a infotemplate that displays automatically

I have created a postcode search that that highlights a polygon and zooms in. but I would like it to display a infoTemplate box with having to click in it. I want it to show when the function runs. ...
0
votes
1answer
9 views

force re-render of graphic symbol after modifying it on click event in arcgis js

I'm using ArcGIS javascript sdk to render some points on a map with simple marker symbols. I setup an event for mouse clicks to change the outline color of a point symbol when clicking on one, like ...
1
vote
1answer
542 views

How to add custom basemaps to BasemapGallery

I would like to add my own custom basemaps to the BasemapGallery. Is there any way I can create my own BasemapGallery with only my maps? I am using the ArcGIS API for javascript. EDIT: for clarity I ...
1
vote
1answer
723 views

How to get the feature set for geoprocessing service?

I am calling a geoprocessing service in a web app. The geoprocessing service has one parameter (a feature set). But I am not sure how to find the parameter in the javascript code to send it to the ...
1
vote
1answer
1k 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 ...
1
vote
1answer
207 views

Variable buffer radius in ArcGIS JavaScript API?

I'm hoping someone can help with this, I'm trying to combine the following Esri samples, to end up with the ability to create buffers based on a variable radius, that will then query data within the ...
1
vote
0answers
8 views

Export features to pdf using JSPDF and Openlayers 3?

I built a map with different type of data, WMS layer, Vector Layers ( features extracted them from GeoJson file). Used Technologies : - Openlayers 3 - JSPDF My Question is : How can i export just ...
0
votes
1answer
217 views

limiting circles to a specific radius

I am new to ArcGIS javascript api and I have created a map which allows users to draw circle geometries. I just want to limit the functionality so that the radius is specified at 10000km. This is ...
0
votes
1answer
393 views

esri/dijit/Search multiple sources not updating drop down list

I am trying to reproduce the tutorial on one of my own layers Here I have put in one of my own layers <!DOCTYPE html> <html><link rel="stylesheet" ...
0
votes
0answers
81 views

Layer coordinates and geometry in ArcGIS API for JavaScript? [on hold]

I'm working on a system that uses the ArcGIS API for JavaScript with layers and map to display information on borders of specific regions. I don't want to display all information at once and prefer ...
2
votes
1answer
33 views

ArcGis Javascript

I am trying to make map, that on mouse over displays the mgrs coordinates. Example map with lat, long: https://developers.arcgis.com/javascript/3/sandbox/sandbox.html?sample=map_xycoords I know ...
2
votes
1answer
418 views

Set definition expression from click event

I'm trying to set a definition expression according to a user-selected value from a drop down menu, but I can't get the map to update the feature layers according to the expression. The user is able ...
1
vote
1answer
555 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. ...
2
votes
2answers
224 views

Browser-based user login (ESRI dojo Javascript 3.14)

I have a web application (several custom Javascript modules plus a single HTML page) hosted on our local server. This works fine when the services that the application consumes are shared to ...
0
votes
0answers
97 views

JSON loop - get field values not field names [closed]

I'm running a for loop to extract certain values from a JSON string. I get the related values back for a map service that is initiated by the user clicking on a table of contents - e.g. a url, layer ...
0
votes
1answer
20 views

Arcgis Javascript API WMTS Layer don't use the configured proxy

I am new about Arcgis javascript API. I'm using WMTSLayer and i have configured to use a proxy. esriConfig.defaults.io.proxyUrl = <Proxy_url> When the API does the GetCapabilities request, ...
1
vote
1answer
224 views

Legend ArcGIS Javascript does not recognize Legend from ArcGIS for server 10.2.2

I have created maps in ArcGIS for desktop and published them to ArcGIS for server 10.2.2. Because of performance issues I have created a group layer of the same map with different levels of details. ...
1
vote
2answers
243 views

How to add an attribute value to info window as a link? (ArcGIS JavaScript API)

I am using ArcGIS API for JavaScript and I want to use a value from a feature class attribute as a hyperlink. For example, "template.setContent("Web Address: http://www.esri.com>${Web_Address}"); This ...
0
votes
1answer
27 views

Scrolling down a page with a map

I'm using version 4.0 of the ArcGIS API for my maps. I have this problem with maps whenever the page has to be scrolled down to view the map. My map is somewhere in the middle of the page so the user ...
0
votes
0answers
27 views

ArcGIS Javscript API Legend - Print Set Legend Columns & Picture

I have a web application that displays map, based on dynamic layers, and provides basic functionality like zoom\pan, print(pdf export option) etc. Application is based on Arc GIS Server 10.4 platform ...
0
votes
1answer
22 views

Using ArcGIS Javascript API and need help understanding asynchronous programming in accessing the fields property of a FeatureLayer Object

I'm creating a new FeatureLayer, and I want to populate the popup with a list of all the fields. Here is part of my code: var featureLayer = new FeatureLayer(url, { mode: ...
1
vote
1answer
19 views

Altering the suggestQueryParameters in ESRI javascript API

I'm using a modified version of the CMV application and I'm trying to alter the query used by the suggestions query of a search widget. The suggestQueryParamters seems to allow for a custom where ...
0
votes
1answer
2k 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: ...
1
vote
1answer
13 views

ArcGIS javascript, convert Graphic to Polygon

I am trying to call GeometryService.autoComplete which has Polygon[] as the first parameter. In my case, I would put the all of the features of my featureLayer. The only property that would seems to ...
0
votes
1answer
187 views

Is there any Map event fired when map is loaded completely when we device is oriented from portrait to landscape mode?

We are using ESRI ArcGIS JavaScript API in one of our Mobile web app. When map is loaded first time, Onload event is fired. But when we change orientation from Portrait to Landscape, OnLoad event does ...
1
vote
1answer
188 views

Polyline graphics not displaying in Javascript API?

I am getting features (graphics) back from an IdentifyTask, setting a symbol and adding to a graphics layer. Polygons and points show up just fine, but not lines. Has anyone else encountered this? ...
3
votes
1answer
544 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
0answers
39 views

ArcGIS Javascript Legend widget does not show full color ramp

Has anyone used the legend widget with raster map services? I have created a GP service that returns raster maps, but the legend is incomplete. The ArcGIS layer properties are shown here, and below ...
0
votes
1answer
38 views

Use HTML button tag to select different feature layers in ArcGIS JavaScript API 4.0

I am trying to build a row of buttons on the top of a page which changes the feature layer being viewed. I am using sample code from here: ...
0
votes
0answers
9 views

Geocoding with xml response

I'm new to coding and I've set myself the task of geocoding some postcodes and addresses on a map. I've been going through the Arcgis javascript api and followed the geocode tutorials but now I want ...
1
vote
1answer
241 views

Accessing Draw toolbar of ArcGIS JavaScript API without dojo?

I am building an application using Angular JS, and have been accessing ESRI classes thus far in the following way: var graphicsLayer = new esri.layers.GraphicsLayer(); I have access to the 'esri' ...
2
votes
1answer
30 views

What is the correct tileInfo for MapBox basemaps in the ArcGIS JavaScript API (3.16)?

I'm trying to use a MapBox basemap in a JS API (3.16) app and they are using tiles that are 512px instead of the typical 256px. This causes the map to be one zoom level off and the labels and such ...
0
votes
0answers
7 views

Regroup layers in Configurable Map Viewer (CMV)

Please, how can I group layers by topic in CMV and change operationalLayer = [ ] array automatically into Viewer.js: I want to regroup feature layers by topic. I failed to create an other ...
4
votes
0answers
95 views

Error after successful ArcGIS PrintTask

Using ArcGIS Javsacript API on one server to grab a PDF from a custom print service published on a different server. We have used the exact same script successfully on other apps/servers before with ...
1
vote
1answer
332 views

Adding Point Graphic to ArcGIS API for JavaScript Map?

Can you please take a look at this JSFiddle and let me know why I am not able to add the Marker into the Map? I am getting this error Uncaught TypeError: Cannot read property 'add' of null Here ...
0
votes
0answers
11 views

Add legends manually for graphic layer in arcgis javascript

In my arcgis map application I am adding legends for featurelayer like this legendLayers.push({ layer: singleCityLayerFeature, title: cityLayers[i][1] }); This adds legends for that "CityLayer". ...
1
vote
1answer
462 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
9 views

InfoWindow Dijit anchor placement and bootstrap

I have a javascript api web map that I have styled using Bootstrap. I have created the infowindow in the webmap and load the map using esri/arcgis/utils and enable the popups (see below) However ...
0
votes
1answer
46 views

How do you change a GraphicsLayer's geometry in the ArcGIS API for Javascript 4.0

The setup: Creating a Point with a longitude and latitude Creating a SimpleMarkerSymbol Creating a Graphic using the Point and SimpleMarkerSymbol Adding the Graphic to the view's graphics What's ...
2
votes
1answer
24 views

applyEdits to FeatureLayer does nothing

I am trying to create a series of layers using a county map of the US. In order to save load time I am only loading the county polygon geometries once, then using applyEdits ...
1
vote
1answer
254 views

ArcGIS Javascript API FeatureLayer not available immediately upon show click event

I am adding a FeatureLayer in my application as follows: featureLayer00 = new FeatureLayer("http://webadaptorserviceurl/MapServer/0",{ mode: FeatureLayer.MODE_ONDEMAND, id: "0", ...
-2
votes
1answer
33 views

Layers Labeled “Override” in Printed PDF Legend

I have a Javascript function that creates a GraphicsLayer, adds some features to it, and then adds the layer to my ArcGIS Web Map. When I use the Print Widget to print my map I see the layer show up ...
1
vote
1answer
169 views

Python geoprocessing output parameter as feature layer on arcgis javascript api?

How i can get result of this query in Arcgis Javascript Api?? or how i should publish the its services to work and send for me result?? i run this query and it works in ArcMap but when i publish it , ...
5
votes
2answers
311 views

tabbed popup window for Arcgis Javascript

Anyone know examples of a tabbed popup window for Arcgis for javascript, NOT an infowindow? If you could point me in the the right direction it would help.
0
votes
0answers
21 views

Buffer widget with Esri JavaScript API (3.16) for ArcGIS Server

I want to create buffer widget, but my code doesn't work ( my code is blocked in this line : esriConfig.defaults.geometryService.buffer(params, showBuffer); This is my code : define([ ...