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)

1
vote
1answer
19 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
11 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
26 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
41 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
31 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
18 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
33 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 (https://developers.arcgis....
0
votes
1answer
93 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 I'...
4
votes
0answers
115 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
39 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([ 'dojo/_base/...
-2
votes
1answer
66 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
31 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 ...
7
votes
0answers
62 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
18 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
36 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
42 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 Districtna....
1
vote
0answers
16 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
42 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: https://...
3
votes
1answer
50 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
79 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
44 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
60 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
27 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
17 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
18 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 FeatureLayer("...
1
vote
0answers
25 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
46 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
37 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 "esri/...
1
vote
1answer
62 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
70 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: https://blogs.esri.com/esri/arcgis/2016/01/25/3d-...
3
votes
0answers
53 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
50 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
105 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
50 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
70 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
43 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 d:...
0
votes
2answers
27 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 ...
0
votes
3answers
42 views

How to resolve this error, ARCGIS JSAPI

XMLHttpRequest cannot load http://sampleserver1.arcgisonline.com/ArcGIS/rest/info?f=json. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not ...
1
vote
0answers
58 views

Get Styles for Feature Layer in Feature Collection, Customize Layer List

so I'm using the JavaScript API to customize an ArcGIS web app and I need to take feature layers and group them in the layer list widget. Here's the code I have that does that (in the widget.js file ...
3
votes
3answers
129 views

How can I change number format and alias in javascript API legend?

I want to change the alias and the length of a field that already exists in my GDB from the Javascript API. Is this possible? I see that alias is a property of the Field class. Can I do something ...
0
votes
1answer
50 views

CSVLayer as a source for Search widget in ArcGIS Javascript

I am trying to add my CSVLayer as a source for the Search widget, however, I've been unsuccessful. My Search widget searches addresses and I was able to add one of the sources from this example (...
3
votes
1answer
81 views

Editor widget in CMV is not working

I'm new to GIS. I'm using the CMV template for my applications, but I can't get the Editor widget to work. The problem is that all the functionalities form the Editor Toolbar are not working. The only ...
0
votes
0answers
22 views

Use multiple dojo datagrids or generic?

I'm using ESRI ArcGIS javascript api v 3.16 I need to display results from 4 separate layers and queries in a datagrid (at different times). Rather than specifying 4 separate tables with field's ...
0
votes
1answer
39 views

Legend Not Refreshing When Renderer Changes

I have the following code to grab a value from a drop down menu and use it to change the renderer of the featureLayer. However, it does not update the legend. The legend just stays on the initial, ...
0
votes
1answer
18 views

How to set LocateMe Widget static or predefined location(or x & y)

I whant to have locateMe button with static predefined x and y coordinates. I have found this: myWidget = new locateButton({ theme: "locateButton", // (optional). class name for the widget container. ...
0
votes
1answer
59 views

S-JTSK projected incorrectly in JS API

I use a method based on the "project a point" sample to project points from S-JTSK (wkid 102067) to Web Mercator (wkid 102100) and they are ~100m away from their correct position. This happens when I ...
0
votes
1answer
12 views

Is it possible to show preview extent box for PrintTask in ArcGIS 3.16 JavaScript API?

I have set up a map application using ArcGIS JavaScript API v3.16 and included functionality for exporting a map to PDF using the PrintTask. Is there a way that I can use a button/checkbox to turn on ...
0
votes
0answers
19 views

How to get color from a marker symbol using esri and javascript

I use Esri map and javascript, and I set the variable: var pointSymbol = new esri.symbol.SimpleMarkerSymbol( esri.symbol.SimpleMarkerSymbol.STYLE_CIRCLE, 15, new esri.symbol....