All Questions
Tagged with arcgis-maps-sdk-javascript not javascript
1,960 questions
0
votes
1
answer
1k
views
Adding table (dgrid/OnDemandGrid) under map using ArcGIS API for JavaScript?
I am working with ArcGIS API for Javascript 4.9. I want to create a simple map view and display a table under it.
I am using this script as a base https://developers.arcgis.com/javascript/latest/...
0
votes
1
answer
1k
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
1
answer
245
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 ...
0
votes
1
answer
715
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 ...
1
vote
1
answer
1k
views
Displaying related records in popup using ArcGIS JavaScript API?
I am attempting to display related fields in a popup window. I've created a GraphicsLayer, consisting of features from the results of a QueryTask. Upon adding the features to the GraphicsLayer, I am ...
2
votes
1
answer
363
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
1
answer
1k
views
Custom pop-up for multiple results in ArcGIS Online application
I have a point layer that contains business locations where the businesses offer services from different providers. i.e. competing businesses.
A customer is requesting a modified pop-up to display, ...
0
votes
1
answer
213
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 ...
3
votes
1
answer
483
views
ESRI Search Widget - Alter Search Parameters (ArcGIS JS v4.9)
The Search widget within the ArcGIS JavaScript API (v 4.9) works by returning all records that contain your search string. In other words, if you search for "123" You'll get "123 S Main St", "5123 W ...
0
votes
1
answer
821
views
Multiple queries on feature layer ArcGIS JS API
I am developing a web application (with ArcGIS Javascript 4.15) where I can click on a property. From the geometry of the property, I am querying feature layers that are listed in an object and have ...
1
vote
1
answer
380
views
Set extent in a webmap Esri
I'm creating a storymap from a developers tutorial I found on Esri. The point of the tutorial is to insert an additional reference map. Everything is working well but I want the extent to closely ...
0
votes
1
answer
262
views
Hiding/Displaying dashboard content (tiles) based on user or group logging in using ArcGIS JavaScript API
I want to know if it is possible to either hide or display the content of an Esri webapp, dashboard, or experience (tiles, widgets, data layers, filters) depending on which Portal user is accessing ...
0
votes
2
answers
615
views
ArcGIS API JavaScript error to add layer
I'm developing a custom widget for WebApp Builder.
The widget calls a Geoprocessing service and the result must be added to map, but when I call a function this.map.addLayer() I receive the error ...
0
votes
1
answer
376
views
Publish a feature service from a shapefile in ArcGIS Online using JavaScript
I have created a custom HTML page for data extract analysis using ArcGIS API, the API save the shapefile in zip format by default in my ArcGIS portal, so I just want to publish the shapefile(.zip) as ...
3
votes
2
answers
1k
views
Applying async/await feature to ArcGIS API for JavaScript code?
How do I apply the async/await feature to this code?
I need to wait for the reltionshipQuery and forEach to finish before I return contentSpecies.
contentSpecies = function(value, key, data) {...
1
vote
1
answer
619
views
How to add GeoTagged images to the map and store as KML
I have the requirement that i need to add a GeoTagged Image into the map and save that image in KML format. Give the approach to do this task.
0
votes
1
answer
295
views
ArcGIS SketchViewModel: how to set some of the Graphics can't be deleted, only modified?
https://codepen.io/U_B_U/pen/YzeppyZ?editors=1001
<html>
<head>
<meta charset="utf-8" />
<meta
name="viewport"
content="initial-...
3
votes
1
answer
473
views
Cannot set map extent in ArcGIS JavaScript API 3.17
I have my map set to a custom projection SVY21/3414
This map service only supports Tiled and not Dynamic.
I manually convert the projection coordinates using proj4 and it works fine for my graphics.
...
2
votes
1
answer
1k
views
Uncaught (in promise) TypeError: GraphicsLayer is not a constructor
import Map from "esri/Map";
import MapView from "esri/views/MapView";
import Graphic from "esri/Graphic";
import GraphicsLayer from "esri/layers/GraphicsLayer";
import webMercatorUtils from "esri/...
0
votes
1
answer
339
views
Change background color of highlighted feature layer ArcGIS JavaScript
I have a feature layer and I am highlighting the feature of the feature layers on click. It is working fine.
Now what I want is, I want to change the background color / fill some color in that ...
4
votes
3
answers
3k
views
ESRI proxy page not working properly + CORS + cross domain scripting
I have set up a proxy page. I am using JSP version of proxy page. I have set up a server URL which will point to my Java. When I load the my page which the proxy URL has set in its html it will work ...
0
votes
1
answer
388
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
1
answer
1k
views
Printing secured services
ArcGIS Server Version: 10.4.0
ArcGIS JS API: 3.25
ArcGIS Desktop: 10.2.1
Browser: IE 11
In my web application, I am consuming secured services and have a requirement to print the map contents.
...
0
votes
1
answer
483
views
ArcGIS server can not be used in Mobile browser and Firefox browser/ ArcGIS Javascript
I am using ArcGIS JavaScript API to develop a web page to consume services from ArcGIS Server. The page loaded good in Chrome browser but not work for Firefox, and also both Android and Safari mobile ...
3
votes
1
answer
2k
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 ...
0
votes
0
answers
36
views
Create Esri JavaScript web map and host on ArcGIS Online
I have created a relatively simple web map using Esri JavaScript. This web map has some widgets included on the map (SearchBar and some custom legends). I do not have access to an online server to ...
1
vote
0
answers
8
views
How to Apply ClassBreaksRenderer in ExportImage for ArcGIS Sentinel-2 NDVI Layer?
I'm working with the ArcGIS JS SDK and using the Sentinel-2 Imagery Layer to display NDVI values. Here's the code I use to apply the ImageryLayer and ClassBreaksRenderer:
this.instance = new ...
1
vote
1
answer
646
views
Displaying Content in TabContainer
I have two tabs on my Info Window Popup. My code is based on the sample ArcGIS API for JavaScript Sandbox.
The only change compared to this sample is: I want to display pie charts on both the tabs. ...
0
votes
1
answer
775
views
ArcGIS JS - How to destroy, clear, erase, free and get rid of features?
I'm using ArcGIS JS 4.25.5 and Angular 14.
I have a map where I can dynamically load and unload layers, and this map serves multiple purposes throughout the software, so I have to strip out all the ...
2
votes
1
answer
1k
views
ArcGIS JavaScript setRequestPreCallback is partially working?
I have an api sitting in front of AGS that requires it's own authentication. I am using setRequestPreCallback as stated by the ESRI docs.
In the image below, you can see that the first 2 requests are ...
2
votes
1
answer
215
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 ...
0
votes
1
answer
1k
views
Selecting Polygon Feature using ArcGIS API for JavaScript?
I used ArcGIS JavaScript API 3.25 for developing. I want to select polygons within 1km radius. so I used a sample code that esri provides. But it works only for point features. I want to use that ...
0
votes
1
answer
181
views
Displaying all layers in ArcGIS feature service in Angular application
As you can see in the below living atlas layer, there are multiple layers inside (state,county,tract etc..)
But when I add https://services2.arcgis.com/FiaPA4ga0iQKduv3/arcgis/rest/services/...
0
votes
1
answer
163
views
Mouse click event used gis application with much data
I will create an application that using my water pipes, electric cables, gas pipes service in a city. All of streets and roads including water pipes. My service is publishing pipes. My service like ...
1
vote
1
answer
489
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:
...
1
vote
1
answer
178
views
Changing order of attribute data in InfoWindow on click of multiple features
I have an Esri Web AppBuiler 2.7 standalone web application where it is required that we are able to control the order of attribute data appearing in an InfoWindow on clicking multiple features.
For ...
1
vote
1
answer
616
views
HitTest with MapImageLayer not returning sublayers
I'm new in ArcGIS, and what am I doing is viewing MapImageLayer with all of sublayers.
But, when clicking on point and running hitTest it returns 0 results.
Below the code:
<script>
require([...
0
votes
1
answer
312
views
Use my own map service ArcGIS JavaScript API 3.43
I have my own custom service map. I have a base map, layers etc...
I need to use it instead of ArcGIS default basemaps and layers.
For now I trying this:
<!DOCTYPE html>
<html>
<head&...
2
votes
2
answers
800
views
How to apply a layer definition with a spatial query to a Dynamic layer?
Using the ArcGIS Server JavaScript API, it's possible to specify an attribute query in the form of a layerDefinition against a Dynamic layer.
For example, the following query will restrict the layer ...
0
votes
1
answer
498
views
Map Disappearing on HTML page when Sizing is changed from pixels (px) to percentages (%)
I am trying to allow this map to be resized via screen size (Mobile, Tablet, Chrome (Half Screen, Full Screen, etc.) so I know I can't set a specific pixel amount. However, when I do set a percentage ...
1
vote
1
answer
879
views
applyEdits to FeatureLayer does not add geometry
I'm trying to add the feature into the layer with a geometry type polygon. When I call applyEdits it adds the feature attributes into the layer but not its geometry.
Here is my dummy data object which ...
0
votes
1
answer
250
views
Labeling a 2D feature layer in ArcGIS javascript API 4.x
I'm in the process of updating my application from ArcGIS JS API3.x to 4.7. I'm unable to add labeling to a feature class. As per ESRI, they support labeling only for 3D or a MapImage layer in 2D. In ...
2
votes
1
answer
150
views
Applying specific styling to group layers in the LayerList Widget in ArcGIS Maps SDK for JavaScript
Using ArcGIS Maps SDK for JavaScript 4.24, I would like to change the formatting of Group Layers within the LayerList Widget, such that the group layers can be immediately distinguished from non-group ...
0
votes
1
answer
187
views
Changing Data Types within the CMV Map Service
Is it possible to format fields that appear in tables within the map service?
In the table results after a spatial query, date fields are converted to UTC rather than duplicating the values from the ...
0
votes
1
answer
59
views
Why does view.on('click') event not fire and popup not open
I am trying to add a popup to a very simple web app using the arcGIS Map SDK for JS and React. The popup is not opening and when I check the debugger, it looks like the `view.on('click', ...) event is ...
3
votes
1
answer
334
views
Parameters for ArcGIS REST ".../MapServer?f=jsapi"?
What parameters can be used with .../MapServer?f=jsapi to alter the results, like turning on or off a single layer?
Background:
When browsing an ArcGIS REST Services Directory one of the options at ...
13
votes
4
answers
10k
views
How to query all records (>1000) and export to csv?
Assume you have a vehicle tracking records from Oct.1 to Dec. 31 with wind speed information.
All data is saved in geodatabase (sde-sqlserver) and up in ArcGIS Server 10.1 as feature layer.
A time ...
0
votes
1
answer
509
views
init.js:36 GET https://js.arcgis.com/3.28/esri/WebMap.js net::ERR_ABORTED 404
I got above error in my browser developer tools window. This happened when I added esri/WebMap to my widget.js file of custom widget I was building.
1
vote
1
answer
1k
views
ArcGIS geometryEngine.intersect always returns null
I am using the ArcGIS JavaScript API with the geometryEngine.intersect() method but I cannot get it to work on feature layers.
In my code you can see how I can create and intersect 2 square ...
4
votes
1
answer
310
views
Snapping does not work for WFSLayer in ArcGIS JavaScript API 3
I have a web application that I now need to use WFSLayer for some of the map layers. The problem is that snapping does not seem to work for WFS layers.
The layer I use for drawing is a FeatureLayer. ...