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
0 answers
8 views

Using JavaScript unable to work out how to log into organizational ArcGIS Enterprise Portal

I have written an ArcGIS app using JavaScript API 4.23 accessing ArcGIS online (personal account). The code is stored in an .html file I have saved on my hard drive. I now want to point the app at my ...
user avatar
  • 55
0 votes
0 answers
31 views

geometry/quantizationParameters vs. cacheHint/resultOffset/resultRecordCount

Very simple code, something like this: const featureLayer = new FeatureLayer({ url: "https://domain.org/arcgis/rest/services/Layer1/FeatureServer/0", }); map.add(featureLayer); This ...
user avatar
1 vote
1 answer
62 views

Trigger click event on existing map marker

I am showing some markers using latitude and longitude, but there is a navigation drawer view, where I can click on the location. So if I click on any particular location from the drawer, how can I ...
user avatar
0 votes
0 answers
14 views

ArcGIS JavaScript API and Wordpress: How would you populate text box outside map with info from inside the map

So, using WordPress, my organization is creating a survey/questionnaire. Within this multi-stage questionnaire, they want an address box with a map underneath. They want the user to be able to type in ...
user avatar
1 vote
1 answer
39 views

How to temporarily disable a feature layer's popup, then restore it again later?

I have an ArcGIS Server JavaScript API v4 map containing some feature layers which each have a popupTemplate defined, so clicking on the layer(s) automatically shows the layers' popup. I need to ...
user avatar
  • 20.5k
0 votes
0 answers
20 views

Is there an "Add Data Widget" equivalent for the ArcGIS Server JavaScript API?

The ArcGIS Web AppBuilder has an Add Data widget which: allows you to add data to the map by searching for layers in ArcGIS content, entering URLs, or uploading local files. In this way, you can ...
user avatar
  • 20.5k
3 votes
1 answer
449 views

Why is ArcGIS Server JavaScript API throwing a CORS error when Leaflet does not, for the same WMS layer?

I'm trying to add a publicly-accessible WMS layer to an ArcGIS Server JavaScript API v4 map, and am encountering a CORS error. See the simple demo which loads the ArcGIS JS API WMS layer: // ArcGIS ...
user avatar
  • 20.5k
1 vote
0 answers
162 views

How to use esri-resource-proxy with React and ArcGIS Server JavaScript API?

I'm trying to add a publicly-accessible WMS layer to an ArcGIS Server JavaScript API v4 map: https://environment.data.gov.uk/spatialdata/special-protection-areas-england/wms I'm adding it as a WMS ...
user avatar
  • 20.5k
2 votes
1 answer
113 views

Disabling the Esri JavaScript API v4.x IdentityManager login prompt?

I have an application using 4.22 of the Esri JavaScript API. It references several layers from different sources. When one of these layers from an outside ArcGIS Online Organization changes or is ...
user avatar
  • 116
0 votes
0 answers
64 views

Get selected Features in LayerView

I am currently developing 2 widgets in the Experience Builder. In one of the two widgets I have implemented the Esri search widget and mark the feature in the LayerView via the search result. Now I ...
user avatar
  • 1
1 vote
0 answers
32 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 ...
user avatar
1 vote
1 answer
182 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, ...
user avatar
  • 592
0 votes
0 answers
48 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?
user avatar
2 votes
1 answer
69 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 ...
user avatar
1 vote
1 answer
86 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 &...
user avatar
  • 1,316
1 vote
0 answers
64 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. ...
user avatar
1 vote
1 answer
104 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/...
user avatar
0 votes
0 answers
25 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 ...
user avatar
0 votes
0 answers
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 ...
user avatar
0 votes
0 answers
87 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(...
user avatar
  • 471
0 votes
1 answer
58 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 ...
user avatar
  • 1
1 vote
1 answer
39 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 ...
user avatar
  • 973
1 vote
0 answers
297 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 ...
user avatar
0 votes
0 answers
259 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 ...
user avatar
1 vote
0 answers
35 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://...
user avatar
0 votes
1 answer
41 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(...
user avatar
0 votes
1 answer
26 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 ...
user avatar
1 vote
1 answer
199 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 ...
user avatar
  • 20.5k
1 vote
0 answers
75 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 ...
user avatar
  • 21
2 votes
0 answers
98 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: (...
user avatar
  • 121
1 vote
2 answers
82 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 ...
user avatar
  • 20.5k
2 votes
1 answer
199 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 ...
user avatar
  • 117
2 votes
1 answer
33 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, ...
user avatar
  • 1,679
0 votes
0 answers
73 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 ...
user avatar
  • 125
5 votes
1 answer
507 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&...
user avatar
  • 153
0 votes
1 answer
130 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 ...
user avatar
1 vote
1 answer
406 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 ...
user avatar
5 votes
2 answers
586 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 ...
user avatar
  • 20.5k
0 votes
2 answers
321 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 ...
user avatar
  • 20.5k
0 votes
1 answer
625 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 ...
user avatar
0 votes
1 answer
421 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 ...
user avatar
0 votes
2 answers
694 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 ...
user avatar
0 votes
1 answer
138 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 ...
user avatar
1 vote
1 answer
46 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',...
user avatar
0 votes
0 answers
394 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: &...
user avatar
0 votes
1 answer
260 views

Creating time series with heatmap using ArcGIS API for JavaScript

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 ...
user avatar
1 vote
1 answer
110 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....
user avatar
1 vote
1 answer
554 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 ...
user avatar
  • 1,425
0 votes
1 answer
85 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 ...
user avatar
  • 395
0 votes
1 answer
364 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....
user avatar
  • 43

1
2 3 4 5 6