Questions tagged [arcgis-javascript-api]

For questions about ArcGIS API for JavaScript 2.x and 3.x. For 4.x use arcgis-javascript-api-4 instead

Filter by
Sorted by
Tagged with
0
votes
1answer
17 views

Mouse-over event behavior problem when browser window is in focus

I have an ESRI Web Appbuilder web app with custom widgets and am having a weird issue when trying to register mouse-over events on a feature layer. I noticed that when the Chrome Dev Tools are closed ...
1
vote
1answer
41 views

Looping through all FeatureLayers in map using ArcGIS API for JavaScript

I have featurelayers and I need to loop through all my featurelayers (in my map), to apply the Editor widget "esri/widgets/Editor", to the layers in my map (uploaded from ArcGIS Server ...
0
votes
1answer
35 views

view.map.loadAll is not a function (Arcgis API for JavaScript)

I wrote this code (below) to use the Editor widget of Arcgis API for JavaScript, knowing that before this code I defined my featurelayers (links to shapfiles uploaded on Arcgis server online Arcgis ...
2
votes
1answer
36 views

How to build only custom AMD modules with dojo build system?

Over the last few years, my team has developed a web app with web maps using ArcGIS JS version 3. We opted to use the CDN (script src https://js.arcgis.com/3.36/) instead of hosting the entire SDK ...
0
votes
0answers
14 views

multipleDefine error when loading ArcGISImageServiceLayer

This error is becoming a major problem and I am completely mystified on what to do about it. I already addressed the issue with the arcgis javascript loading before the JQuery libraries, so I know ...
1
vote
0answers
11 views

Getting Uncaught SyntaxError: Unexpected token { error when using downloaded ArcGIS API in PC without internet)

I am trying to implement ArcGIS API offline. I have downloaded the zip file from the site and followed the following changes, changed the baseUrl to my Apache IP copied the files to /var/www/html/ and ...
0
votes
1answer
21 views

ArcGIS API GraphicsLayer is not visible on map

I'm creating an onClick eventhandler to create a point on every click on the map, but the Graphics layer is not visible; Has anyone else encountered this? Is there something special I'm supposed to do ...
0
votes
1answer
18 views

Web AppBuilder Developer Edition - on(someNode, “click”, someFunction) Executes N Times When Widget Opened for the N-th Time

I have an on(someNode, "click", someFunction) in the onOpen() of Widget.js. The problem is that if the widget is closed then reopened (2nd open), the click event on someNode fires twice. If ...
0
votes
1answer
38 views

ArcGIS JavaScript query task not returning feature

I am using query task to do a attribute query for features with a where clause. I have verified that the specific layer I am querying has the field LK_ID_NUM. My query task do not return an error, but ...
0
votes
0answers
30 views

Trying to add user’s Portal content to map with ESRI API 4.19. Function Errors

Why is the addLayer() function is not working in my code? In the console it says it is not defined. I am a bit new to JS and self-taught coder. So please bear with me. I can only get the addLayer() ...
0
votes
1answer
16 views

vertexInfo properties in ArcGIS JS 4x API for event when reshaping polygon

When dragging a polygon vertex using the Sketch class, the update event is fired, with a type of "reshape". 4X: sketch.on("update", onGraphicUpdate); function onGraphicUpdate(...
0
votes
0answers
31 views

WebGL Issues with popup in ArcGIS API 4.17 for JavaScript

In addition to the main map view in my app, I have a popup that has 2 distinct map views. The popup is launched when ever the use clicks on the map. I am using ArcGIS API 4.17 for JavaScript for my ...
0
votes
0answers
9 views

What does graphic.resLayer mean in ArcGIS API for JavaScript

There is a property called reslayer in Graphic of ArcGIS JavaScript API. What does it mean? I have gone through the documentation and there wasn't any information about it.
0
votes
0answers
46 views

Setting start point of line drawn with SketchViewModel in ArcGIS API for JavaScript

I'd like to be able to programmatically set the start point of a new line drawn using SketchViewModel.create('polyline') so that the new line starts from the endpoint of a previously drawn line. I'm ...
1
vote
0answers
64 views

Error loading dojo file locally: “Loading failed for the <script> with source …”

I'm attempting to add ArcGIS maps to a website that's on a restricted network (and therefore needs to work offline). I've been trying to get the ArcGIS ESRI maps running offline, but I'm not sure how ...
0
votes
0answers
14 views

How to show labels for dynamicLayerInfo in ArcGISDynamicMapServiceLayer

Does anyone know how to show labels for dynamic layers I have used below code for show dynamic layers which is working fine and now I have to display labels for that dynamic layers. var dataSource ...
0
votes
1answer
39 views

Overview map not syncing with main map

I have created an overview map widget for my web app using arcGIS API for Javascript version 4.17. My overview map is separate from my main map as I don't want to bring in all the layers from my main ...
0
votes
1answer
69 views

How to make the Polygon tool the active tool when the Sketch widget opens?

Using the ArcGIS Server JavaScript API v4.18, I am adding the Sketch widget. My goal is to have the Polygon tool as the only available tool, and to have this tool active when the widget opens. I've ...
0
votes
0answers
34 views

Using UniqueValueRenderer on Point Feature Layer of ArcGIS API for JavaScript

I am currently working on adding layer legend to Map But I am not able to execute it completely. I have 2 feature Layers one of which is a point feature layer. And on the point feature layer I need ...
0
votes
0answers
28 views

Source for JavaScript SketchViewModel

I'm new to ArcGIS/Esri. I have a working sandbox example using SketchViewModel, but need to change that to: I want to customize the drag and drop/resizing points on the surrounded graphic I want to ...
0
votes
0answers
42 views

ArcGIS JS API 3 Add protected WMS services from Geoserver

How to add WMS service protected with basic authentication from Geoserver using ArcGIS Api 3? I have tried authentication with ArcGIS Proxy, something like this: <serverUrl url="Geoserverurl/...
2
votes
0answers
32 views

Squared buffered polygon based on polyline

I'm using ArcGIS Javascript API to allow users to draw polylines and polygons onto a map. Now when a user draws a polyline, this should result in a polygon surrounding the polyline at a fixed width: (...
1
vote
0answers
111 views

Legend not showing properly in LayerList

In my web app using ArcGIS API for Javascript 4.18, I am bringing in 3 layers served from a mapServer REST Service using MapImageLayer. I also have a LayerList widget to display these layers. My ...
2
votes
1answer
55 views

Widget Expand is not functioning correctly

I have placed 2 widgets (baseMapGallery, LayerList) inside a small map in a rather large popup. To keep it from crowding out the view, I am trying to use an Expand to launch it from a small icon ...
0
votes
2answers
146 views

lang.hitch use in ArcGIS API for JavaScript [closed]

Can someone explain lang.hitch() function use in ArcGIS API for JavaScript?
0
votes
0answers
21 views

EsriLoader in Angular: basemap without border and streets

I'm using the Esri maps inside my angular 9 application by implementing the Esri loader like described in the tutorial. The data requires that there are no borders displayed (operas from 17xx where ...
1
vote
1answer
31 views

Adding multiple Dom Nodes in Content

I am using a popup on my mapView from arcGIS API for Javascript 4.17. When the user opens the popup, I have set the following attributes: view.popup.open({ // Set the popup's title to the ...
0
votes
0answers
88 views

How to select multiple features by mouse click event in ArcGIS JS API 3.x

I am trying to select multiple features in a feature layer by using "hold 'ctrl' button and mouse click event". I am using ArcGIS JS API 3.x. I have created the US State boundary ...
0
votes
0answers
29 views

Attribute join on the fly for visualization with ArcGIS JS API

Lets say I have 2 layers - one that contains shape information about a given group of entities, say countries, and one that contains some data attributes about the same group of entities. Both layers ...
1
vote
1answer
67 views

How to limit legend to show only the features currently visible in the view?

Using ArcGIS Server JavaScript API v4.x and the Legend Widget, is it possible to limit the legend to only those features which are currently visible? For example, in the Legend Widget Sample, only ...
0
votes
0answers
34 views

Large dataset clip (in visualization) API Javascript ArcGIS

I'm working on a project in which I need to integrates features from our ArcGIS server and display them in a mobile application. Using the ArcGIS API for Javascript I'm having issues to understand if ...
1
vote
0answers
57 views

Does ESRI ArcGIS API for JavaScript support vector tiles with fill-extrusion Style Property?

ESRI ArcGIS API For JavaScript’s support GL JSON Stylesheets/Vector Tiles that use fill-extrusion property? https://docs.mapbox.com/mapbox-gl-js/style-spec/layers/#fill-extrusion { "id": &...
1
vote
0answers
53 views

Updating URL in GeoJSONLayer using ArcGIS JS API

I am working on a simple node/react application that allows for the the request of data using the URL parameter in GeoJSONLayer. The way that I set up the API I need to be able to change the url to ...
5
votes
1answer
195 views

How to grey-out area outside of a Polygon?

I have a Polygon on a Map which serve as "Area of Interest", how do I "grey-out" the area outside of the Polygon? (highlighted in pink) Here's my codes: require(["esri/Map&...
2
votes
1answer
175 views

CORS issues when trying to access NASA layers from ArcGIS JS API

I am trying to bring an ImageMapLayer into an ArcGIS JS API project. The layer is here: https://maps.disasters.nasa.gov/ags04/rest/services/ca_fires_202008/sentinel2/MapServer I am creating the layer ...
2
votes
1answer
209 views

One popup for multiple layers in ArcGIS JS API

I am trying to have multiple feature layers that all share one popup in an ArcGIS JS map. As far as I know, the only way to define a popup is on a specific layer, when you do something like: const ...
2
votes
0answers
84 views

Using GeoJSON Services in Arcade Expression

I am trying to use an Arcade expression with GeoJSON services in a map using the ArcGIS Javascript API. The intent of the Arcade expression is to return a count of lakes that intersect a county that ...
1
vote
0answers
31 views

How to configure grouped layers in the LayerList widget with feature layers

This applies to the ArcGIS Server JavaScript API v4.x. This LayerList widget example code contains grouped layers, whereby the San Francisco parent checkbox also controls its child layers: The ...
0
votes
1answer
24 views

Query Items by Type

I'm having trouble with queries in my app. If you look at this page you'll notice the 'Search by Item' drop-down is blank and the 'Search by Category' displays 'Select one' by default. And when you ...
0
votes
0answers
74 views

How do you get values of variables in Chrome Developer Tools console for ArcGIS Javascript API?

I'm sure this question could be worded better, but here's what I'm trying to do... I create a map (using ArcGIS Javascript API 4.17) I have my javascript in a separate file (app.js) index.html: <!...
1
vote
0answers
18 views

Arcgis JS API 3.x Popup infotemplate (popup) with relationship attributes

I've buildt a halfly harcoded popup builder widget, but i don't know how to push fields from relationships into my popup div. I know how to do it in the ObjOriented way, but it's not right for me. ...
0
votes
1answer
274 views

Setting Custom Cluster Icon with Picture Marker Symbols using ArcGIS API for JavaScript

Problem: Unsure how to set a custom icon for the cluster symbol, not the individual points or even the label of the cluster but the symbology for the cluster icon itself. Context: A Feature Layer is ...
3
votes
1answer
322 views

How to simulate/trigger a click on the map/view

In the ArcGIS Server JavaScript API v4x, is it possible to simulate or programatically trigger a click on the map at a given location? I've seen Simulate a mouse-click inside an ArcGIS Online ...
0
votes
1answer
367 views

Querying from dynamically-populated drop down list using ArcGIS API for JavaScript:

Using ArcGIS API for Javascript 4, I want to create a drop-down list in the view that is dynamically populated based on the values available in a layer. When users select a value from this drop down ...
1
vote
0answers
30 views

ImageOverlay or VideoOverlay in ArcGIS JS API?

I would like to lay an image over my map using the ArcGIS JS API. Whether it be a png, jpg, or gif, I'd like to be able to use a locally hosted image, give the 4 coordinates for the corners, and have ...
0
votes
1answer
20 views

Why ArcGIS JavaScript text label does not show on feature?

My working example here does not show the labeling information on features. var featureLayer; map = new Map("map", { basemap: "satellite", center: [-46.807, 32....
0
votes
1answer
176 views

Two PopupTemplates

I'm using this sample code from ESRI ArcGIS API for Javascript 4.16: https://developers.arcgis.com/javascript/latest/sample-code/widgets-feature-sidepanel/index.html I would like to display these ...
0
votes
0answers
31 views

How to add GML data on arcgis javascript map application?

I am using a wfs service using ajax query. So it returns me a xml based response (GML2 format) like following. (But does not return a json.) <wfs:FeatureCollection xmlns:xs="http://www.w3.org/...
0
votes
0answers
37 views

Data not filtering with popup paging (ArcGIS JS API 4.15)

I have created and drawn a filtered layer on my map... Filter has worked fine with the drawn graphics; however I have just now noticed that after enabling pagination in the popup (unhiding it), the ...
0
votes
0answers
211 views

How to Create dojox.form.CheckedMultiSelect dropdown?

I'm trying to create a drop down multi select checkbox using dojo JS and html but just given the drop down only. Code: <body> <div> <select data-dojo-type="dojox/form/...

1
2 3 4 5
40