Questions tagged [arcgis-maps-sdk-javascript]

The ArcGIS Maps SDK for JavaScript was formerly known as the ArcGIS API for JavaScript

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

Enabling default popup template not working

When adding the feature layer with URL, enabling defaultPopUpTemplate does not open any pop-up. When I click on the feature the feature gets highlighted however, nothing opens up. I am attaching the ...
gis's user avatar
  • 111
0 votes
0 answers
12 views

Esri Participatory Planning App - runtime errors when changing planning area [closed]

I am trying to use the Participatory Planning with the ArcGIS API for JavaScript example code provided on GitHub https://github.com/Esri/participatory-planning but I just get runtime errors when I try ...
K_abdn's user avatar
  • 1
1 vote
1 answer
74 views

Display selected category from dropdown menu in sidebar in ArcGIS SDK JavaScript app?

I'd like to display the {Description} field content of a feature layer in the sidebar div of my application. One way I believe it can be done is by using a click event and the selectedIndex property. ...
Pfalbaum's user avatar
  • 903
1 vote
2 answers
43 views

Problem in giving search functionality using downloaded ArcGIS JavaScript API v4.27

I am trying to use search functionality using downloaded ArcGIS JavaScript API v4.27. Here is my code: <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-...
Priyansh Garg's user avatar
1 vote
1 answer
51 views

Creating a HTML webmap using both ESRI JavaScript API and Leaflet

I have created an ESRI JavaScript based map. It is reading in a webmap from my ArcGIS Online account and works as is required. I would like to include some additional context to my webmap through the ...
Keagan Allan's user avatar
  • 3,696
0 votes
0 answers
28 views

How to preview PBF query results in the browser debugger?

Working with ArcGIS Maps SDK for JavaScript, I want a quick preview (in the browser debugger) of the results of a query. For example, when clicking on a polygon in the PopupTemplate sample, the ...
Stephen Lead's user avatar
0 votes
0 answers
40 views

Editing related records in ArcGIS JavaScript API 4.27

https://developers.arcgis.com/javascript/latest/release-notes/ According to these link, there is an upgrade on ArcGIS JavaScript API. This new version 4.27 provide editing related records but it does ...
ayça tabakoğlu's user avatar
0 votes
0 answers
16 views

Multipatch Editing

In ArcGIS JavaScript API, I try to edit my layer which contains buildings with multipatch geometries. In my web map, I create editor widget for edit my data but it does not work. Is it possible to ...
ayça tabakoğlu's user avatar
0 votes
0 answers
11 views

Change GeoRSS Style based on attributes - ESRI ArcGIS Maps SDK for Javascript

I have successfully implemented the solution to a question relating to accessing a GeoRSS's attributes using the code here: Access GeoRSS Attributes using ESRI ArcGIS Maps SDK for JavaScript My ...
Keagan Allan's user avatar
  • 3,696
0 votes
1 answer
35 views

Removing feature from the view's popup feature array in ArcGIS Maps SDK JS?

Using ArcGIS Maps SDK for JavaScript version 4.x, it is possible for the view's popup to contain an array of features. In this case, it is possible to page through them using the forward/back arrows. ...
Stephen Lead's user avatar
0 votes
1 answer
21 views

Access GeoRSS Attributes using ESRI ArcGIS Maps SDK for JavaScript

I have created a web map in ArcGIS Online. Using the ArcGIS Maps SDK for JavaScript I can create a view of this map using JavaScript and HTML. The webmap works and I can view all data layers within ...
Keagan Allan's user avatar
  • 3,696
0 votes
0 answers
42 views

Extract the text from ArcGIS map using JavaScript

I have this map, and I'm looking to extract the map label when clicked on the map. Let's suppose I click on the block with a 16257038. How can I get this text using JavaScript API. Here is my code so ...
xawova3005's user avatar
0 votes
0 answers
26 views

Adding Secure web services to a custom JS Web App

I am building a JS web app using Esri's SDKs. I need to add a web tile services from map proxy. But the services need HTTP authentication. Based on my research I found out that the services are ...
Shraddha Sharma's user avatar
0 votes
1 answer
75 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-...
albert Kai's user avatar
0 votes
1 answer
28 views

Create a point/Polyline on map

I am new to ArcGIS JavaScript API. With below code, am trying to add a point/Polyline on the map Spatial Reference is 2881 for Example POINT (914723.27587074414 524669.72858949) and PolyLine(912367....
Zr2271's user avatar
  • 1
0 votes
0 answers
19 views

Add projection warp calculation to preserve correct scale when exporting map for printing

I'm working on my own widget for printing large maps based on the ArcGIS printing service. The main feature of the service will be dividing the large area to separate parts in specified paper format. ...
Ivan Kyka's user avatar
0 votes
1 answer
23 views

How to get ordered results from ArcGIS in case of using statistics with group by

Now if I implement query via ArcGIS Server 10.7.1 using params like this including outStatistics, groupByFields: params = { .... 'groupByFieldsForStatistics': 'DFIRM_ID', 'outStatistics': '[{...
Mahmoud Adel's user avatar
0 votes
0 answers
13 views

Using SummaryStatistics for binning data representation

I have a data representation using bins (featureReduction/Type binning). I would like to be able to use the summary statistics function to obtain the Min and Max values. The idea is to use them as ...
USER7's user avatar
  • 21
1 vote
1 answer
204 views

Couldn't access MapView from Experience Builder Widget

My widget requires MapView and it needs use through out the application. However, I am not able to get it. The problem is activeViewChangeHandler is not executed at all. I followed this documentation. ...
wondim's user avatar
  • 1,363
0 votes
1 answer
34 views

Web AppBuilder Developer Edition - "this" Keyword Conflict with Button Element

I created a button element with an onclick handler using the following method: domConstruct.create('button', { ... value: someValue, onclick: this.onBtnClick }); The onBtnClick method uses the ...
PacmanKX's user avatar
  • 333
0 votes
1 answer
27 views

Show only certain attributes in custom JS applications with ArcGIS JSAPI 4.25

When you publish a map service from ArcGIS Pro, you can control the popup field options that get displayed when viewing said map in the "Map Viewer Classic" page, as seen in the image below. ...
osswmi's user avatar
  • 41
1 vote
1 answer
310 views

Convert ESRI JS Graphic geometry into WKT format

I am drawing an object on map and retrieving it's geometry using following code: this.draw = new SketchViewModel({ layer: this.drawLayer, view: this.view }); this.draw.on("create", function(...
gisit's user avatar
  • 447
0 votes
0 answers
37 views

ArcGIS Maps SDK for JavaScript Printing

I have a web app using ArcGIS Maps SDK for JavaScript and am getting an error when I try printing a map with private layers. Below is the code am using to call print (derived from here). import * as ...
Takudzwa Mawarire's user avatar
2 votes
1 answer
64 views

Obtain a FeatureLayer's default renderer in ArcGIS JS SDK?

When creating a new FeatureLayer in the ArcGIS Maps SDK for JavaScript, it's possible to specify a renderer, to tell the layer how draw on the map. If you don't specify a renderer, the symbology ...
Stephen Lead's user avatar
0 votes
0 answers
16 views

All the entities of the layer are not displayed in the 3D scene of my web application using the ArcGIS API for JavaScript

I have an application that I have developed with the ArcGIS API for JavaScript. I am loading some layers that have 1217 entities and when I go to visualize them I do not see the total of the entities. ...
Daniel León's user avatar
1 vote
0 answers
37 views

JavaScript ArcGIS: Change style of Measurement widget 3D [closed]

I am using Measurement widget from ArcGIS SDK for JavaScript: https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Measurement.html Everything works fine, however I would like to ...
KlemenPl's user avatar
  • 129
0 votes
1 answer
144 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&...
BPolanco's user avatar
0 votes
1 answer
18 views

How do blur points when it is not selected by a filter in ArcGIS?

I want to implement a filter to be able to blur all points on my map. const nzgdFeatureLayer = new FeatureLayer({ url: "url...", definitionExpression:"", ...
Le Hoang's user avatar
1 vote
2 answers
101 views

Setting scale range for MapImageLayer in ArcGIS JavaScript API

I am trying to set scale range in JS API v 4.x as seen here in 3.x. However when I try to use the load event as in the example it does not work in 4.x. Does anyone know how to accomplish this same ...
Robert Smith's user avatar
0 votes
0 answers
66 views

ArcGIS Javascript 4.25: Coded value descriptions in popuptemplate

Please help. I am using ArcGIS JavaScript 4.25 to display values in a popup using Query on a featurelayer (ArcGIS Server). The coded value is shown in the popup instead of the related description. ...
P Holtzhausen's user avatar
1 vote
0 answers
82 views

Change the state of a Sketch without destroying it (ArcGIS API for JavaScript and React) [closed]

I'm working on an application that the user defines a point on a map and then goes on to take that point's information to do other stuff. Originally, this has been done by having an event listener ...
Kathryn's user avatar
  • 11
1 vote
1 answer
111 views

JavaScript ArcGIS: Relative links are not working

I want to show a link in popup template when clicking on a feature. I am using popup template: const template = { // autocasts as new PopupTemplate() title: "Trail run", content: "...
KlemenPl's user avatar
  • 129
0 votes
0 answers
88 views

Save feature table info as text with their headers in ArcGIS JS API

I try to save my info at the feature table as a file. I was able to create my feature table and save them in a text but how can I save them with their headers? My data came like this now: How can I ...
ayça tabakoğlu's user avatar
0 votes
0 answers
43 views

How can I group my filter expands into a single expand in ArcGIS JavaScript API?

I tried to group my expands. I want to use them together with bootstrap tabs. How can I merge them? Is it possible in ArcGIS js API? I want to show like this (in single expand): My code: const ...
ayça tabakoğlu's user avatar
1 vote
0 answers
24 views

Colorize extruded buildings by construction years in ArcGIS JS API

I would like colorize my extruded buildings by construction years like old ones red and new ones blue color. It is possible with renderer but I want it dynamic. I mean when I change years with slider, ...
Suleyman Jumayev's user avatar
0 votes
0 answers
56 views

Save feature table info as text or CSV file in ArcGIS JS API

I try to save my info at the feature table as a file. I was able to create my feature table but how can I save it as CSV? My Code: require([ "esri/config", "esri/Map", ...
ayça tabakoğlu's user avatar
0 votes
1 answer
108 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 ...
Arpit Aggarwal's user avatar
0 votes
0 answers
140 views

Highlight sublayer of feature layer on click ArcGIS JavaScript

I have a feature layer of state that has sublayers as district. Now I want to highlight the sublayer polygon where I am clicking. I have tried a lot of different things but nothing worked. Here is one ...
Arpit Aggarwal's user avatar
1 vote
0 answers
36 views

Filter extruded buildings by colour according to their construction year in ArcGIS JavaScript API

I tried to filter my extruded buildings according to their construction year. I saw this example: https://developers.arcgis.com/javascript/latest/sample-code/visualization-sm-color-mesh/ and tried it ...
ayça tabakoğlu's user avatar
1 vote
1 answer
40 views

Highlight my selected 3D buildings in ArcGIS JavaScript API

I tried to query and select my 3D buildings related to their names or heights and can achieve the selection but I want to highlight selected ones. How can I do that? Or is there any better way to ...
ayça tabakoğlu's user avatar
0 votes
0 answers
28 views

How Can I Merge My Function With Slider In ARCGIS JavaScript API

I tried to merge my slider and query function but I can not do it. How can I merge them ? This is my Slider: const slider = new Slider({ container: "sliderDiv", min: 0, ...
ayça tabakoğlu's user avatar
1 vote
1 answer
32 views

Connect query on button in ArcGIS JavaScript API

I tried to connect my query code to the button. I want to show my 3D building features on a map related to their height values. When I click or slide my button, I want to see or highlight buildings ...
ayça tabakoğlu's user avatar
0 votes
0 answers
62 views

Building height query in ArcGIS JS API

I want to do a building height query in ArcGIS JS API. When I slide the button according to height, I want to highlight buildings associated with height. How can I do that? require([ "esri/...
ayça tabakoğlu's user avatar
1 vote
1 answer
263 views

How Can I Edit or Save My Features on Database in ARCGIS JS API

I create a map by using Esri JS API and try to edit my building features. I want to create new features (or delete them) on the map and I want to save changes on my database. How can I do that? ...
ayça tabakoğlu's user avatar
0 votes
1 answer
120 views

Edit and save features on a database in ArcGIS JS API

I create a map by using Esri JS API and try to edit my building features. I want to create new features (or delete them) on the map and I want to save changes on my database. How can I do that? ...
ayça tabakoğlu's user avatar
1 vote
2 answers
113 views

How do I pass the clipping parameter for the export request in ArcGIS API for JavaScript 3

Starting at ArcGIS Server 10.8, for map services using the ArcGIS Pro runtime, the export request now supports the clipping parameter to clip the image produced, according to the geometry included in ...
greenkarmic's user avatar
0 votes
0 answers
34 views

Using searchWidget.on()

I am new to using widgets and when using search with several layers and when performing a specific zoom in each one of these (layers of points and polygons) it happens that the zoom is carried out at ...
Daniel León's user avatar
0 votes
1 answer
260 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 ...
Docmur's user avatar
  • 101
0 votes
1 answer
171 views

Change the size and color of the box that contains the legend and the layers

I am new to JavaScript. I have a code for a globe of the planet. I have to change size and colors of the box where the legend is. How can I change the size and color of the box that contains the ...
Daniel León's user avatar
1 vote
1 answer
45 views

How to use an image as the base of a SceneView in ArcGIS for JS 4.x

In SceneView I want to add an image as the base image what do I do? It looks like this picture.
Oliver's user avatar
  • 13

1
2 3 4 5
46