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
2answers
20 views

How to Get Dynamic Map Service Layer Name On ArcGIS API

Can you please take a look at This Demo and let me know how I can get the Selected Layer Name through API when check boxes are checked? As you can see at This Link the service is providing 3 layers ...
0
votes
0answers
8 views

Custom feature search functionality in story map, Map tour template [on hold]

I am new in ArcGIS java script API. I need to add a search widget in ArcGIS story map, map tour template Can any one help me.
2
votes
0answers
11 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 ...
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
37 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 ...
0
votes
1answer
21 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, ...
0
votes
1answer
13 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 ...
0
votes
1answer
33 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
30 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
23 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
20 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 ...
1
vote
1answer
14 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
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 ...
0
votes
0answers
8 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 ...
2
votes
1answer
31 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
12 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". ...
0
votes
0answers
10 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 ...
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 ...
0
votes
1answer
49 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 ...
4
votes
0answers
96 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 ...
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([ ...
-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
0answers
24 views

error printing a map with feature layer with feature collection using esri jsapi

I have this single page web map app with esri js api 3.4 and arcgis server 10.1. I have added a print widget and that works fine (with two base map layers and an empty feature layer with feature ...
4
votes
0answers
25 views

How to synch a FeatureTable with a FeatureLayer's selection set?

The ArcGIS Server JS API contains a new FeatureTable class, which shows the attribute table corresponding to a FeatureLayer. There is an option syncSelection which: Enables an interaction between ...
1
vote
0answers
15 views

After Feature Layer reference is added all dojo references are not recognized

I'm creating a simple javascript management system in which I have to query 6 feature layer services, edit, add or delete data from the services. Every time I want to add the Feature Layer reference ...
1
vote
0answers
34 views

Send Feature Attributes Along with Geometries to Difference Operation of Geometry Service

I've large number of data(geometries and attributes). I've to find their difference with other geometry, and after difference is calculated I've to assign attributes to those geometries. Example ...
1
vote
1answer
24 views

Getting Error: Districtna.getExtent(…) is null

I have dojo combo box to display district names when I select one district it should zoom to that particular district.selection is working fine but zooming not happening i am getting ...
1
vote
0answers
14 views

arcgis 10.2 server how to get legend to display symbology only for visible classes

i have a web app that consumes legend info via a esri/dijit/Legend widget. The problem is that it displays symbology for all data, even those features not visible in current extent, is there a way to ...
3
votes
0answers
30 views

ArcGIS Server config to allow ArcGIS JavaScript printing?

I have ArcGIS Server 10.21 on Windows Server 2012 R2, and have created a web application using ESRI JavaScript API v.3.16 that uses the dijit/Print that invokes the Export Web Map task on the server. ...
0
votes
0answers
9 views

Troubleshooting a PointSymbol3D layer in ArcGIS JavaScript API

I have some code doing what I want here: https://jsfiddle.net/stcline/pvyf7bp6/1/ I would like to figure out why this similar code which is using the PointSymbol3D function is not working: ...
3
votes
0answers
29 views

I want to calculate the distance between two points using network analysis

function drawroute(allcordinate) { var Coordinate = new Array(); Coordinate = allcordinate; var long = Coordinate.split(",")[0]; var lat = Coordinate.split(",")[1]; ...
1
vote
0answers
63 views

problem with setting up proxy - ArcGIS JS API

I have spent a lot of time to solve a error in setting up proxy for JS API but I could not find any solution. I did following steps: I downloaded the proxy files for .Net. I edited proxy.config ...
3
votes
1answer
36 views

Using both query.where and query.geometry with queryTask

I am using a QueryTask to select data from a Feature Service and pass the attribute values to a dGrid. I am using a where statement (query.where) to select only certain polygons from this service and ...
0
votes
1answer
41 views

ArcGIS JavaScript API Search widget doesn't work

I am a beginner of ArcGIS JavaScript API. I am creating a simple web map now. For some reason, the search widget of the map doesn't work. When I go to the console, it shows this error: Here is my ...
1
vote
0answers
19 views

How to put two points using query task please kindly solve the error in the following code

dojo.require("esri.map"); dojo.require("esri.tasks.route"); dojo.require("esri.layers.FeatureLayer"); dojo.require("esri.geometry.Point"); var map, routeTask, routeParams; var ...
1
vote
0answers
15 views

relatedQuery.setDefinitionExpression not working jsapi arcgis

I want to relate two tables STATION and TEMP this my code : var relatedQuery = new RelationshipQuery(); relatedQuery.objectIds = [graphic.attributes.objectid]; relatedQuery.relationshipId = 0; ...
0
votes
0answers
11 views

send email by using arcgis api for javascript [duplicate]

i'd like to know how to send an Email by using arcgis api after some Attributes changed. Users can edit to change a geometries attributes or "project status" attribute in a Feature Layer. For example, ...
0
votes
0answers
12 views

Heat Map - Visualize Weather Data Across Continental United States

What i would like to do is to produce a heat map representing temp across the continental United States.. I am using a service from NOAA to gather Temperatures. var tempF = new ...
1
vote
0answers
20 views

Tiled Map and Picture Marker Symbol not rendered using Print Task with ArcGIS JavaScript API

I have located a hospital and provided a new symbol to it. Also added a STREETS basemap to it. I can see both of them on the map on screen. But when I try to generate a report (using Print Task), ...
2
votes
1answer
38 views

Using Multiple Versions of ArcGIS API for JS in Same Application

We've a large web based GIS application running which uses an older version of ArcGIS API (v3.7) for JS. The ArcGIS JSAPI v3.7 is lacking some functionality which are available in v3.15. Now I also ...
1
vote
1answer
28 views

How to use “geometryEngine” in arcGIS Version 3.9

We are using arcGIS javascript version 3.9 in our portal. Now we have new requirement to do reverse clipping on map. We have already written code to implement reverse clipping with the help of ...
1
vote
1answer
48 views

Add a JSON feature class to a map using ArcGIS javascript API

I am a beginner in javascript and I am working on a project using the ArcGIS javascript API. Since I am using shapefiles, I need a way to put them on the map automatically after a procedure. I have ...
0
votes
1answer
40 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: ...
3
votes
0answers
37 views

Speed up Rendering of Feature Layer Using ArcGIS JavaScript API 4.0

Are there any tricks to speed up the rendering of a feature layer in the ArcGIS JavaScript API? Currently one of the layers I am using is: This takes about 10 seconds to draw but I have used this ...
0
votes
1answer
34 views

Using proxy with ArcGIS API for JavaScript?

I am using ArcGIS with JavaScript API and I am trying to get a proxy since some functionality requires specifically to install and set up a proxy. I have looked at the manual but it is a little bit ...
4
votes
1answer
81 views

Editing ArcGIS Online Hosted Layers in Secured Web Application

Goal: Develop a web application using ArcGIS Javascript API that has a single login experience for the end user and that enables them to edit feature layers hosted on ArcGIS Online. Setup: We are ...
0
votes
1answer
24 views

Create a 3D map with extruded polygons for use in ArcGIS Javascript API

I am working on a project which contains several choropleth maps (State and County level mostly). In very simple terms, I would like to create 3D extrusions of the polygons based on an attribute. So ...
1
vote
2answers
63 views

How do I Customize an ArcGIS Map Service to Include Additional Items?

I am using ArcGIS 10.1 and attempting to publish a map service on a remote server running ArcGIS server 10.2. I have created a map service successfully and can view it via the ArcGIS JavaScript API: ...
0
votes
0answers
34 views

How exactly should third party libraries be included in WAB through the lib/main?

The official documentation for using other libraries in Web AppBuilder points to libs/main for including AMD modules in multiple widgets. I want to use Proj4js in my widgets, so I deployed it in the ...
0
votes
2answers
23 views

Esri JSAPI Legend Not Appearing

I am stumped on an Web App that I have been working on. I am using Esri JSAPI and can not figure out where I have gone wrong with the Legend. The app runs, but no legend appears anywhere. I have ...