Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [arcgis-javascript-api-4]

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

-4
votes
0answers
20 views

How much will it cost to hire a programmer or developer? [on hold]

How much will it cost to hire a programmer or developer to make a GIS website with features like these: https://developers.arcgis.com/javascript/latest/sample-code/featurelayerview-query-stats/index....
1
vote
1answer
21 views

How to configure modal widgets in ArcGIS Server JavaScript API version 4?

The ArcGIS Server JavaScript API version 4 has the concept of widgets, such as the LayerList or Legend widgets. Is it possible to set these widgets to be modal, whereby opening any widget closes all ...
0
votes
1answer
26 views

ArcGIS Online vs JS rendering differences

I am experiencing some issues working with ArcGIS JS API v4.9. I created a map on my offline software that I imported into ArcGIS Online. The map contains polygons with labels inside them and some ...
1
vote
1answer
17 views

Continious icon rotation

Is there a way to continuously rotate an icon from the CalciteWebCoreIcons? I have a layer with the single icon on it, that shows up correctly. view.graphics.add({ id: "centers", ...
0
votes
1answer
19 views

Adding markers to a layer at runtime

I would like to use two layers (units, calls) over the streets base map. I have a timer loop that runs every 30 seconds and I would like to clear the units layer, then add the new unit markers to the ...
1
vote
1answer
18 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 ...
2
votes
1answer
33 views

Chart JS chart not rendering in ArcGIS popup when using navigation arrows

I'm putting a chart in the popup of my points. On the initial click, the popups display the chart and if I use the forward navigation arrow on the popup, the next chart renders. However, if I use the ...
0
votes
0answers
11 views

Two Views in ArcGIS JS API 4.9?

I'm attempting to set up one View for the PC screen and one View for a mobile device (something like <=800px). You can not do this in CSS. It has to be done in JavaScript. The reason I need two ...
0
votes
0answers
10 views

Adding dropdown to just one field in table created with dgrid and ArGIS API for JavaScript?

I am using Javascript API 4 for ArcGIS And dgrid library in my project. Currently my script (html, css, Javascript) creates a web page with map at the top and a table below. One field (column) in ...
0
votes
1answer
25 views

Can I use the Search Widget on fields related to a featurelayer?

Is it possible to point the search widget to related records? For example, I have a featurelayer of spaces, which is related to a table of names based on the spaceID. I would like to be able to ...
0
votes
1answer
27 views

ArcGIS Esri feature layer query get object lat and long

I am trying to do a query on a feature Layer and the get an object's Lat and Lng, so I can center it on the map. However after doing the query, I get a graphic that has only an x,y position. the ...
0
votes
1answer
41 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
0answers
11 views

Visual variable renderer doesn’t work on mobile

I don’t even know where to start with this one. I have developed this simple application: http://matthewiannowlin.com/school-tax-referendum/ If you try this on a desktop, the layers will render ...
1
vote
0answers
29 views

ArcGIS API for JavaScript - Search widget with external geocode service

To be brief, I want to add to my Search widget new geocode service that is not exposed by the ArcGIS Server REST API (more precisely - OneMap REST API - https://docs.onemap.sg/). I wonder if it is ...
1
vote
1answer
46 views

How do I add use a method to add a FeatureLayer to a Map?

I'm using Angular 6 with the ESRI API for JavaScript 4.9. I have a working application but now it's time to refactor and make this project more polished. I have a series of FeatureLayers added to the ...
1
vote
1answer
66 views

How to use filter on the Search widget in ArcGIS JS API 4.9?

var searchWidget = new Search({ view: view, includeDefaultSources:false sources: [{ locator: new Locator({ url: "https://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer"}), ...
0
votes
1answer
20 views

Getting coordinates in Projected Coordinate System using ArcGIS API for JavaScript?

I have map built using the ArcGIS API for Javascript 4.8. The basemap is the ESRI "streets" basemap in wkid 102100 (latestWkid 3857). How do I get the coordinates in the following to be output as ...
0
votes
1answer
83 views

Combining legend and layer list using ArcGIS API for JavaScript?

I'm building a web app using ESRI's ArcGIS API for Javascript 4.8. I have a legend and a layer list widget on the page. The legend displays the symbology used but lacks ability to toggle display of ...
2
votes
1answer
45 views

ESRI Search Widget activeSourceIndex Usage (ArcGIS JS v4.8)

I am new to ArcGIS JS. I have read the docs but I am looking for some example of setting the default search service. I am looking to use all services (featureLayer and esri geocoding services) but ...
0
votes
0answers
36 views

How to add labels using featurelayer and sceneview in ArcGIS API for JavaScript 4.3

I am using using featurelayer and sceneview in ArcGIS API for JavaScript 4.3 and want to add labels. I have followed code examples from the API documentation but the labels do not show. How do I get ...
0
votes
0answers
18 views

dash line in SceneView ArcGIS JS API

The style property of SimpleLineSymbol is currently not supported in 3D SceneViews (in ArcGIS JS API 4.8), so it's not possible to create dash lines in 3D SceneViews by simply changing the style ...
2
votes
1answer
39 views

Hosting HTML files so they are accessible through AGOL

I recently made a web mapping application using the ArcGIS for JavaScript API, but I am having a difficult time making it accessible to users of my organizations AGOL account. I naïvely thought I ...
1
vote
0answers
35 views

ArcGIS feature layer built of SQL View not visible

I am building a custom web app using the ArcGIS JS 4.8 API with an ArcGIS Web service and I have run into an issue. The root cause that I am trying to fix is to do with features not being filtered ...
0
votes
2answers
263 views

CSVLayer doesn't show HeatMap in Angular 6

I am using ArcGIS JavaScript 4.8 API and I have integrated the CSVLayer to an Angular 6 application but it is not showing up any heat map. The legend shows that it is getting renderer data and heatmap ...
1
vote
0answers
44 views

Feature Layer not showing up when adding an automatic rotation function to SceneView

I am building a simple web application using the ArcGIS API for JavaScript (4.x). I created a map with an associated FeatureLayer and then a SceneView and everything works fine. However, I'm trying to ...
2
votes
1answer
103 views

Heatmap not working on FeatureLayer (ArcGIS JS API 4.8)

I tried my best but didn't get success to show heatmap on FeatureLayer with latest ArcGIS JavaScript API 4.8. My Code is located here. I used HeatMapRenderer to render the point on the map as the heat ...
0
votes
1answer
143 views

Get FeatureLayer Attribute by Clicking

I'm using ArcGIS API for JavaScript 4.8. My goal is to get the Census tract ID value of the clicked Feature in a FeatureLayer and display the ID value in an alert box. I got stuck when trying to use ...
-1
votes
1answer
23 views

What is the process for using data in various projections with the ESRI JS API v4.8?

We have an extensive collection of GIS data sitting in ArcSDE, exposed via map and feature services, and already in a regional (projected) coordinate system. We are starting to explore building web ...
0
votes
1answer
73 views

Radio Button in Layer List Widget Instead of Eye Icon

I'm using portalItem to display a web map in a web page and the Layer List widget to control the layer display. I want to show one layer at a time using radio buttons, instead of having to click on ...
1
vote
1answer
33 views

ArcGIS JS - Printing with private layers

I have a map built using ArcGIS JS API v4.8. The map has a basemap and FeatureLayer that are both secured by a custom API and a server-side proxy. I'm looking to make use of the Printing widget, but ...
2
votes
1answer
76 views

Add new fields to the FeatureLayer dynamically - arcgis JS API Version 4.7

I've uploaded GeoJSON to Esri cloud and created a feature layer. Now I'm able to plot the featurelayer into my map. I'm trying to color each feature based on measures which comes from my DB. Here ...
1
vote
1answer
276 views

How to load GeoJSON into map using JavaScript API in ESRI

I'm new to ESRI Map. I'm working on latest version of JavaScript API. I'm trying to load GeoJSON from https://bit.ly/2IZk4Nj into my Map. I'm able to load GeoJSON from ESRI Feature Service URL. I ...
0
votes
0answers
19 views

Esri ArcGIS API for JavaScript: how to return polygon info for point within polygon in KMLLayer

Using the 4.7 JS API, I have multiple KMLLayers on my map, each containing hundreds of polygons. Given a point on the map, How can I identify all of the polygons across multiple layers that contain ...
1
vote
0answers
134 views

Workaround for no point clustering in ArcGIS Javascript API 4.7

I'm working with the ArcGIS Javascript API v4.7 and I've run into a roadblock. I have several points on my map with the same coordinates. Therefore they show up exactly on top of one another with no ...
0
votes
1answer
102 views

Esri JS API 4.7 - Changing the view spatial reference in place

Asked this already in GeonNet, but asking here as well as I can get valuable help from both sites. I'd like to change the view.spatialReference property in place to be able to switch between basemaps ...
3
votes
2answers
278 views

XY Points incorrect on map (ArcGIS Javascript API 4.7)

Hopefully something silly I'm overlooking. I started building my map with this sample code But once I started using my own data, it isn't appearing correctly on the map. Example: These coordinates [...
1
vote
1answer
36 views

can the geometry element be accessed within CSVLayer in ArcGIS for JS 4.x

I was wondering if there is a graphic or geometry element that can be access within CSVLayer in arcgis JS 4.7, I have been unable to extract the geometry which I want to save as a JSON or array that I ...
0
votes
1answer
173 views

GraphicsLayer not redrawing visually while a Graphic is being dragged (JS API 4.7)

I've implemented a 'route between points' site using the 4.7 JavaScript API. The logic works fine, but I'm having a graphical display issue: when a point is picked up and dragged to a new location it ...
0
votes
1answer
143 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 ...
3
votes
1answer
141 views

esriRequest json response to feature layer

I am using JavaScript 4.7 and I am able to retrieve json using esriRequest from our ArcGIS server. However, I have difficulty in showing this data on the map layer. the call map.addLayer(...
1
vote
0answers
40 views

How to connect to a Portal for ArcGIS js API

I have some issues connecting to my ArcGis Portal JavaScript API. I don't know what to specify in: require(["in here"], function (in here) { }); And also where to put authentification ...
1
vote
0answers
24 views

Change Order of Features in Popup with ESRI ArcGIS Javascript API version 4

I am using version 4.5 of the ESRI ArcGIS Javascript API with a MapImageLayer. I'm setting popup templates on each layer. The problem is that, when showing the Popup following a click in the map, if ...
0
votes
1answer
174 views

How to display 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 ...
0
votes
1answer
49 views

Get field attributes from Esri JavaScript API query

I'm trying to get the geometry in an array from a queryTask using the Esri JavaScript API v4.7. I'm sure I'm missing something but I dont know what. I want to take geometry from this to then create a ...
1
vote
0answers
54 views

ArcGIS JS API join ArcGIS Online layers

I am attempting to join 2 layers from the same ArcGIS Online service together, using ESRI's limited sample for MapImageLayer. I would like to join the first [ID: 0] and second [ID: 1] layers in my ...
0
votes
1answer
46 views

How to add multiple map marker while reading data from a single csv file

I am trying to add a different map marker for every lat/long point added through a csv file using CSV Layer,is it possible to loop through each of the point for which I am going to add map marker and ...
0
votes
0answers
40 views

MapImageLayer Sublayers renderer javascript

Can you use a renderer function for a MapImageLayer sublayer? The documentation says you can use a renderer function with MapImageLayer. I am using a MapImageLayer and sublayers so that I can label ...
3
votes
2answers
465 views

Understanding Promise deprecation warnings in ArcGIS API for JavaScript?

I am trying to update legacy map code to the latest ArcGIS version of 4.6 and noticed this warning in the console when querying a feature layer. [esri.core.Promise] DEPRECATED: then() -- use .when(...
4
votes
1answer
330 views

Getting popuptemplate from feature layer to pop up when selecting row from table using ArcGIS API for JavaScript?

Using esri javascript api 4.3 in an Angular 2 application. I initially generate the map using this code: OnInit() { this.map = new Map({ basemap: 'streets' }); this.map.layers.add(new ...
0
votes
0answers
50 views

Geoprocessing widget that returns a hyperlink

I have a geoprocessing widget that does some spatial queries, and currently returns a string in the output tab using SetParameter. The string is a URL. What's the best way to display this as: 1. a ...