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
1
vote
0answers
10 views

Adding a layer by URL without knowing the layer type In the ArcGIS API for JavaScript

We are providing a service with a map using the ArcGIS API for JavaScript. One of the features that we want to provide is the ability to add any web hosted map layer to our map as a map overlay. When ...
1
vote
1answer
29 views

Get features onclick ArcGIS JavaScript API

I am new to JavaScript and to JavaScript APIs as well, I am trying to get all the attributes of a feature that is clicked on the webmap, and I don't want to use the default pop up so I disabled it, ...
0
votes
0answers
28 views

Use "calendar" input in DateTimePickerInput on FeatureForm widget in ArcGIS JS API v 4.x

There is DateTimePickerInput in FeatureForm widget which allows to edit date/date-time fields of a feature. Is there any ability to use "calendar" input to pick a date with a mouse?
2
votes
1answer
35 views

Show the locations in Esri Map as dots, not as pin-points

Currently, my Esri map is displaying the locations in the map as Pin-points. But I want to display those locations in Esri Map as dots (Circles) not as pin-points. Could you please refer to the ...
1
vote
1answer
31 views

Error Handling Geoprocessing Service in ArcGIS JavaScript API

I am using ArcGIS JavaScript API 4.21 (with TypeScript). @arcgis/core/tasks/Geoprocessor is deprecated since version 4.20. So I am using @arcgis/core/rest/geoprocessor instead. import JobInfo from &...
1
vote
0answers
31 views

Using ArcGIS JavaScript to display LAS point cloud data using Azure instead of ArcGIS server

I have LAS point cloud data that I want to visualize in ArcGIS API for JavaScript, but from my understanding of the documentation, one will need to host their LAS data on ArcGIS server for it to work. ...
1
vote
1answer
67 views

Get basic statistics from a feature server and display it in an own element in ArcGIS JavaScript

I use ArcGIS Pro 2.9.0 and ArcGIS JavaScript. I am new to using my feature sets with ArcGIS JavaScript. I have a point feature set on ArcGIS Online (https://services2.arcgis.com/iVTT0jpvWSmHS8yL/...
0
votes
0answers
11 views

Get data from two overlay FeatureLayers arcgis API JS

I have two featureLayers (RegionsLayer and CommunesLayer) so my goal is to get only the communes that are under a given Region, actually I can get a specific region with definitionExpression const ...
0
votes
0answers
29 views

Make point renderer in ArcGIS JavaScript to show all points at small scale

I am making an online map using ArcGIS JavaScript 4.20. I have a polygon feature that I want to render as points (I have points all over Norway, not just as this example): I am using the simple ...
0
votes
0answers
34 views

How to open an attribute table via actions in ArcGIS JS API 4.x?

let layerList = new LayerList({ view: view, container:"sideDiv", listItemCreatedFunction: defineActions }); function defineActions(...
0
votes
1answer
24 views

How to configure ArcGIS JS API 4.19 to use self-hosted ArcGIS Server GeometryService for Locate widget?

I'm using the Locate widget in my MapView using a self hosted 4.19 version. I followed the installation instructions but I just found out that it access arcgisonline.com to query the GeometryService ...
1
vote
1answer
29 views

editingEnabled Property is always return as True for feature layers

I have hosted two feature layers in ArcGIS Online 10.8 and consumed it as portal items in my webmap application using ESRI Javascript API 4.19. I have enabled editing for one feature layer and not ...
1
vote
0answers
21 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
0answers
44 views

How to access the rows in an ArcGIS Server JavaScript FeatureTable?

Using the ArcGIS Server JavaScript API v4.x how can I access the rows in a FeatureTable? As an example, I modified the ArcGIS FeatureTable sample to log the table object to the console: Note that the ...
0
votes
0answers
133 views

Mobile friendly Styling for Esri Widgets in JavaScript 4.x API and Calcite

Has anyone had difficulty (or experience) styling Esri widgets for mobile friendly use? I am currently working on a routing application whose code structure (I believe) makes it impossible to access ...
1
vote
0answers
24 views

Keeping symbol in Map but not showing it in Legend using ArcGIS API for JavaScript

I would like to customize the list displayed on the legend of the map but not delete it fro the Map. Was able to get how to do it for desktop - but struggling to know how to do it in JS. https://...
0
votes
1answer
22 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
11 views

Can the ArcGIS Viewshed Analysis Sample take height as a parameter?

The ArcGIS JavaScript API has a viewshed analysis sample that calculates a viewshed after clicking the scene view. The geoprocessor takes an Input_Observation_Point and a Viewshed_Distance, executes ...
0
votes
0answers
25 views

Is there a better geoprocessor for viewshed analysis in ArcGIS JavaScript API?

I am working on a viewshed viewer application for webcams. Viewshed variables that are critical to my application include: elevation, azimuth, and direction. ArcGIS' own Viewshed Analysis example uses ...
0
votes
1answer
19 views

How to simulate a click in a SceneView?

I am working on a viewshed viewer application that uses ArcGIS' Viewshed Analysis example as a base. I have a calculator widget that takes coordinates and zooms to the specified location on the map ...
1
vote
1answer
100 views

How to create a heatmap from overlapping polygons using ArcGIS Server JavaScript API?

Using the ArcGIS Server JavaScript API version 4.18, how can I visually highlight areas with high concentrations of overlapping polygons, such as these historical cyclone tracks? In addition I need ...
1
vote
0answers
47 views

Getting address from coordinates on initialization of map using ArcGIS API for JavaScript 4.x

I am trying to fetch address details by lat long coordinates that are provided from DB. I am able to call locationToAddress on click. I want to do the same for on load using the coordinates.  The ...
2
votes
0answers
62 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
2answers
77 views

Clustered points legend prints as separate RGB bands

I'm using one the ArcGIS clustering samples in order to generate clustered points. This achieves the desired effect on the map and legend. However, when I include the Print Widget in this sample, the ...
2
votes
1answer
146 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
25 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
57 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
343 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
1answer
94 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 ...
1
vote
1answer
241 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
427 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
2answers
257 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
489 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
331 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
2answers
517 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
97 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 ...
1
vote
1answer
36 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
301 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
154 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
70 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
417 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
74 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
1answer
292 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
196 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
62 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
56 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
93 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
1answer
163 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 ...
2
votes
0answers
308 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
1answer
225 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 ...

1
2 3 4 5 6