Questions tagged [arcgis-javascript-api-4]

For when 4.x is version of ArcGIS API for JavaScript that you are using

Filter by
Sorted by
Tagged with
0
votes
0answers
12 views

Searchbox click suggestion bug in ArcGIS API for JavaScript map

Following is my UI for map. Red is default pin I have selected. using showMarker and showPopup custom function. which are using viewMap.graphics.add and popup.open methods internally. There's a ...
2
votes
1answer
41 views

Loading a custom module from different file with ESRI API4 and Dojo

I am trying to create a demo app to better understand how to minimize my code by creating more files. I am using the base starter app sample on one js file and trying to add a widget on another. The ...
2
votes
1answer
24 views

Closing popup removes Navbar

I have an esri popup in my web app MapView: // Add the map to a MapView const view = new MapView({ container: "viewDiv", map: map, center: [-82.9001, ...
0
votes
0answers
18 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 ...
5
votes
1answer
75 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&...
0
votes
0answers
10 views

Map Lagging on Drag and Drop Movement

am working on Angular 11 project having arcgis javascript version 4.17 when doing Drag and Drop on the map it self by the mouse, there is a kind of lagging that happens on it. the movement is not ...
0
votes
1answer
36 views

SVG Icon Animation not working on ArcGIS JavaScript

I am working on Angular 11 project having ArcGIS JavaScript version 4.17. When placing points on map using GraphicsLayer am using custom SVG Icons, the ones with animation are not showing perfectly on ...
2
votes
1answer
39 views

ArcGIS-Javascript-API use “color” property of each polygon feature in geoJSON file

I am using ArcGIS Javascript API v4.17. My geoJSON file has "color" property defined for each feature. each feature is a polygon. I would like to color-code each polygon on the map using the ...
5
votes
2answers
118 views

How to disable map navigation in the ArcGIS Server JavaScript API v4.x

In the older version 3.x of the ArcGIS Server JavaScript API, it was possible to disable map navigation using disableMapNavigation() as explained in Disabling map in ArcGIS API for Javascript What is ...
0
votes
1answer
42 views

How to “Select By Location” in ArcGIS Server JavaScript API

Is it possible to perform the equivalent of "select by location" in the ArcGIS Server JavaScript API v4.x? The use-case is "find features in Layer 1 which are within x kilometres of ...
0
votes
1answer
84 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 ...
0
votes
1answer
79 views

Popup not working following feature query using ArcGIS API for JavaScript

I am using the ArcGIS API for JavaScript 4. I'm creating a web map based on this example: https://developers.arcgis.com/javascript/latest/sample-code/sandbox/index.html?sample=tasks-query Except I've ...
0
votes
1answer
76 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 ...
0
votes
1answer
28 views

ArcGIS JS API - Masking a Layer - Changing the tilelayer source?

I am trying to reproduce and modify the mask effect found in this example from the ArcGIS JS API: Masking effect using a custom layer view There is a lot of fancy footwork to modify the underlying ...
0
votes
1answer
22 views

Whether ArcGIS can use the IIS published image as the base image and not use ArcGIS Server?

I posted the tile base map on IIS. I wanted to load it through ArcGIS for JS, but I could not use ArcGIS Server. Just like OpenLayers var center = ol.proj.transform([112.233778,22.688963], 'EPSG:4326',...
0
votes
0answers
77 views

Create GeoJSON layer based on remote server request (ArcGIS JS API)

I'm starting with ArcGIS JS API. I'm doing the following POST request to my remote server: esriRequest("php/load_gisdata.php", { method: "post", query: { table: &...
0
votes
1answer
47 views

ArcGIS JS API - time series with heatmap

I am trying to create a time series of covid data moving across the globe. For now, I'm trying to use a heatmap to do it. Using this COVID19_Time_Series_Combined (which pulls data from here), I ...
1
vote
1answer
22 views

Limiting search result to country using ArcGIS API for JavaScript integrated with Angular

I want to restrict my search results to a specific country (NZ) with ArcGIS Javascript/Angular API. I am using Angular for this project: mygis.component.ts async ngOnInit() { await loadCss('https://js....
1
vote
1answer
108 views

Updating symbology in ArcGIS Online

I have an ETL updating a layer attribute on a registered Enterprise geodatabase. The layer has been published on ArcGIS Portal which sends the layer with updated values to ArcGIS Online. This data is ...
0
votes
1answer
56 views

ArcGIS JS 4.15 Cluster Popup navigation for Cluster

I would like to migrate from ArcGIS JS API 3.x to 4.16. One other feature I am using from 3.x version is clustering. In 3.x is it allow user to click on Cluster marker and navigate between all ...
0
votes
0answers
14 views

Identify zones intersected when a polygon is selected and generate the areas of the polygon parts that falls in different zones

I am consuming two (2) datasets in a JavaScript application (field and zones). I want to be able to identify which zone/zones a field falls into. In many cases, some fields falls into 2 or more zones ...
0
votes
1answer
108 views

PopupTemplate Content strips HTML Data-* Attributes in ArcGIS API for JavaScript 4.16

Working with the ArcGIS JavaScript API version 4.13 and was able to build popup templates that included data attributes to work with the Semantic UI library for their Tab module (https://semantic-ui....
0
votes
1answer
63 views

ArcGIS display multiple popup at the same time?

I'm using ArcGIS API v4 and the document said ArcGIS API allows view can only have one instance of popup at a time All Views contain a default popup. This popup can display generic content, which is ...
0
votes
0answers
18 views

How can i add time series to FeatureLayer Arcgis

I converted shape file(geojson) to ArcGis Json via terraformer-arcgis-parser. It will render the map but how can i add a csv or json file to the FeatureLayer in order to use TimeSlider? let ...
0
votes
0answers
21 views

Change order of polygons within a feature layer? (arcgis js 4.xx)

I have tried using the below in my initial query, and query right before drawing my polygons with class breaks. query.orderByFields = ["Shape__Area DESC"]; However this did not seem to ...
2
votes
1answer
30 views

Calculating apportionment on the client-side in JavaScript map?

I have a set of census polygons (P1... P4) containing population information, and I'm building a tool using the ArcGIS Server JavaScript API whereby the user can draw an arbitrary shape: I need to ...
1
vote
1answer
32 views

How to tie an ArcGIS Server QueryTask result back to the calling layer?

Using ArcGIS Server JS API 4.x I'm running a series of QueryTasks in succession, and need to tie the result of the query back to the calling layer. However, since the QueryTasks execute asynchronously ...
0
votes
0answers
16 views

Add items to map, collectively, one at a time, per attribute ID

I have successfully been able to filter, for instance shakemaps, by attribute id - I have successfully achieved this multiple ways - but all ending with the same problem. With the where filter ...
0
votes
1answer
34 views

Loop through attribute ids of FeatureLayer

Would there be a way to loop through the definitionExpression ids without having to manually specify? I have tried to console log SeismicData, but for some reason I am not finding a collection of ids ...
1
vote
0answers
89 views

Are there any examples or tutorials showing Branch Version editing with ArcGIS Server JavaScript API?

I am trying to implement branch versioning in an application that I'm building using the ArcGIS Server JavaScript API. I found a blog post showing how to edit branch-versioned data in ArcGIS Pro, and ...
0
votes
0answers
25 views

ArcGIS JS API: make circle not zoom

I have a ArcGIS JavaScript API map. On map click I want to display a circle and highlight all the points within that circle. However, when I create the circle and zoom in the map, the circle zooms in ...
0
votes
1answer
80 views

How to access webmap in ArcGIS Portal from Angular app on localhost

I'm testing an Angular CLI application that's running on my PC at http://localhost:4200 and which needs to access a webmap hosted on an ArcGIS Enterprise Portal. The typical method for doing so ...
0
votes
0answers
9 views

Find the graphics/GraphicsLayers associated with the Measurement widget

I have an instance of the Measurement widget and I would like to get a reference to the layers it uses for the measured graphic and edit handles. I cannot find anything like a graphic or layer ...
0
votes
1answer
83 views

Multiple queries on feature layer ArcGIS JS API

I have been stuck with an issue, that I thought will be simple to fix. I am developing a web application (with ArcGIS Javascript 4.15) where I can click on a property. From the geometry of the ...
0
votes
0answers
9 views

Migrating to Widget - ArcGIS API JavaScript 4.15

I have an application developed with ArcGIS API Javascript 4.15. I have to migrate this code to a Widget for better sharing with other users. It's the first time that I have to do that and I don't ...
1
vote
0answers
33 views

Using Geometry.fromJSON() gives unexpected results

I am trying to use Geometry.fromJSON() in the ArcGIS JSAPI 4.x to return a Point or an Extent geometry and I am getting some unexpected results. Here is what I have tried. const point = Geometry....
0
votes
0answers
13 views

Showing values in DataGRID with ArcGIS JavaScript API 4

I'm working with ArcGIS JavaScript API 4.15, and as a result of calling a SOAP service I have a set of values structured like this example: [{"name_1": v11; ...; "name_n": v1n}. {"name_1": v21; ...; ...
0
votes
0answers
24 views

Publishing a FeatureService in ArcGIS Server

I have a registered PostGIS DB in ArcGIS Server Enterprise > Site > DataStore. How to create a FeatureService in ArcGIS Server from my PostGIS DB to create a FeatureLayer in JS app? How to obtain ...
0
votes
1answer
30 views

Adding feature layer in ArcGIS

I am trying to add client-side feature graphics to a feature layer in a map with a roadmap baselayer using the following code, but nothing seems to appear on the map: function CreateFeatureLayer() { ...
1
vote
1answer
50 views

Publishing PostGIS Data in Portal for ArcGIS Enterprise

I have a PostGIS table with millions of points (x,y,z,time). I have to develop a web app with the ArcGIS JavaScript API, to make some statistics like this application: https://ycabon.github.io/...
0
votes
1answer
80 views

Convert pixel x,y position on map to latitude and longitude

My map takes up 100% width and height of the browser screen.. I have a draggable div that is super imposed over the map, I am am capturing this divs position using offset(); to get the pixel top and ...
0
votes
0answers
21 views

Move new graphic layer to a higher index (move up)

I have created a simple polyline line graphic layer, i.e. below: const polyline = { type: "polyline", paths: [ [lineY, lineX], [coordinatesBx, ...
1
vote
1answer
28 views

Tracking in browser while the phone is locked with ArcGIS (ESRI) [closed]

The Question How can I track a user's movements via ESRI's JavaScript API in a web browser when their phone is shut/locked? This would ideally work for all web browsers (i.e. Android and Apple ...
1
vote
1answer
103 views

Uncaught (in promise) RangeError: Invalid language tag

In my react app, I'm seeing the following error in Chrome devtools: Uncaught (in promise) RangeError: Invalid language tag: en-au;q=1 The error is also currently visible at the arcgis official site: ...
0
votes
2answers
19 views

Why don't my featureLayer labels display when using timeSlider widget (Javascript API for ArcGIS 4.14)

You only see all the labels when the slider has gone through the full time extent; at initialization there is nothing, they then start rendering as the slider plays. Anyone know what the issue is? ...
0
votes
1answer
23 views

ArcGIS JavaScript Sketch defaultCreateOptions

I want to change the defaultCreateOptions mode to "click" only. I want to disable adding of point when pointer is dragged. I am trying the following code but it doesn't work. var sketch = new Sketch({...
0
votes
0answers
32 views

ArcGIS API 4.0 for JavaScript intellisense for VsCode and Visual Studio Proffesional 2019

I am newbie. I need elaborate description how to install "ArcGIS API 4.0 for JavaScript" intellisense (for autocomplete and documentation) in VsCode and in Visual Studio Proffesional 2019.
0
votes
1answer
63 views

ArcGIS API for JavaScript: How to filter layers when using Traffic Service

I'm using ArcGIS API for JavaScript v4.41 (https://developers.arcgis.com/javascript/) I want to display a traffic layer on my map with live traffic but without the traffic incidents (red-amber dots). ...
0
votes
2answers
27 views

Resetting all layers one time, when click is fired

Within a click function, I have the below code: home.addEventListener('click', () => { myAPP.mapview.map.layers.items.forEach(item => { item.visible = false; }); ...
0
votes
1answer
115 views

ArcGIS Javascript 4 API - Class breaks visualization in GeoJSONLayer

I'm trying to create a data-driven visualization using a GeoJSONLayer with ArcGIS Javascript 4.14 using "esri/renderers/smartMapping/creators/color" on a field named "Number" (specifically a Class ...

1
2 3 4 5