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

For questions about ArcGIS API for JavaScript 2.x and 3.x. For 4.x use arcgis-javascript-api-4 instead

2
votes
1answer
18 views

ESRI Proxy for Javascript API

I am using the ESRI proxy to avoid CORS issues as I am testing against clients data held on another domain. The wierd issue I am having is that WFS data only seems to work via one route, whereas ...
0
votes
1answer
21 views

Using Extent and SpatialReference with ArcGIS API for JavaScript?

I am trying to display an ArcGIS Map on my webpage. Whenever I try to use the 'extent' Attribute next to the 'center' and 'zoom' Attributes, I get the following error: GET https://js.arcgis.com/4.8/...
1
vote
0answers
31 views

Getting ArcGIS API for JavaScript to work in Typescript application using Webpack?

I am trying to incorporate the arcgis-js-api into an Angular2/Typescript application I am developing in Visual Studio 2017 using Webpack. I have not been successful in getting it work. I've gone ...
0
votes
1answer
19 views

Cannot load MapService from ArcGIS Server in Javascript API

I am trying to put together a very basic sandbox app to load data from a public ArcGIS Server MapService using the Javascript 3.5 API. However I keep getting the a 400 return status with the error "...
0
votes
1answer
27 views

How can I publish a standard ArcGIS basemap on local server?

Is there a way to publish/install a standard basemap (topo, streets, etc.) to a local ArcGIS server? I have an app using the javascript API, that is running in an environment that cannot connect to ...
2
votes
0answers
61 views
+50

Draw geometrical shapes with dimensions ArcGIS JavaScript API

I have to draw the geometrical shapes with their dimensions and show it with that shape. As in below images, I want to show the length and width of the rectangle, the radius of the circle and the ...
0
votes
1answer
15 views

ArcGIS Javascript API returning value to popup from function

I'm creating a custom pop-up where I send the attribute table value into a function to reformat it. It's called like so: var herbicide = '${Herbicide1:herbName}' It then enters the function like ...
1
vote
1answer
23 views

Add map layers during runtime ESRI Javascript API

I had a look through the ESRI js API (version:3/4) and examples on ESRI's page but I couldn't find something like an "add map layers from ", where the source is any reachable map service, WMS or ESRI ...
0
votes
0answers
25 views

How to Add Animation to ArcGIS JavaScript API Cluster Layer Breaks

Can you please take a look at this demo snippet and let me know how I can add animation to cluster breaks on zoom in out? As you can see in the demo cluster symbols disappear on zoom in, out and re ...
0
votes
1answer
18 views

Not able to render simple marker render on feature layer

Can you please take a look at this demo and let me know why I am not able to add the simple render / Simple Marker to the map for feature layers <script> require([ "esri/map", "esri/...
0
votes
1answer
25 views

ArcGIS: Adding labels to 2D FeatureLayer in JavaScript 3.25

Is it possible to add labels to a 2D FeatureLayer in ArcGIS using the JavaScript 3.25 API. I can only find examples that use Javascript 4.8 and 3D scenes. The following code doesn't show anything: ...
1
vote
0answers
45 views

Bring KML via localhost url into ESRI js app also hosted locally

I have brought over one of the demos ESRI javascript apps and hosted that on my local IIS instance. I also have a folder I have turned into an application via IIS, so I have the following: The file ...
0
votes
1answer
29 views

ArcGIS: Get layer by name using Javascript API and modify it

I'm very new to ArcGIS and I'm developing a custom widget in the ArcGIS WebApp Builder that will allow me to change the style attribute of a specific layer in my map. To manually change the style ...
0
votes
0answers
35 views

Tiled Map doesn't work properly [closed]

I'm working on a project using ArcGIS JS 3.14 and it doesn't show the tiled map in the main container, it shows only in overview container. I'm looking forward to any suggestions for this behaviour. ...
1
vote
0answers
42 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 ...
0
votes
1answer
10 views

ArcGIS Server - Print Map aynschronously using Map_Only template

I'm trying to print a Map asynchronously using the ArcGIS printing tools. I'm successfully able to print the map using any template other than "MAP_ONLY". When i use "MAP_ONLY" template i get this ...
0
votes
0answers
15 views

Change POPUP content on _maxButton click

I am working with a pretty standard Esri map with some clusters. You click on one of the markers and you are presented with a popup window, small size. When you click on the maximize button it ...
0
votes
1answer
48 views

Uncaught TypeError: FeatureLayer is not a constructor

I am trying to test adding a clickable layer to a web app. I am just using a test layer from arcgis online rest services shown in a tutorial. When I try to add the layer using esri/FeatureLayer I, get ...
1
vote
1answer
12 views

How to query areas from DynamicMapService Layer…?

I have two dynamicMapServiceLayers, I have to query the area where three dropdowns are there. From a districts dropdown I have to select one district according to that mandals should be loaded to the ...
0
votes
1answer
16 views

ArcGIS JavaScript choropleth map with custom data

I am using ArcGIS JS API for creating a different type of maps. I am pretty much clear on how do I create point maps using Lat/Long fields. But I don't seem to get a way to create choropleth map like ...
0
votes
0answers
19 views

Using ArcGIS API for JavaScript 3,X Directions widget?

Can I select only one country in the Directions widget in ArcGIS API for JavaScript 3,X? For example: I want to select only UK. If the user writes Spain he will find nothing.
0
votes
1answer
29 views

ArcGIS Routing service using two locations?

I was going through the routing example Simple Routing which works on map click event. I am bale to replicate the same but instead of click I want the routing to take place using 2 different x,y. Is ...
-1
votes
1answer
26 views

Unable to access the ArcGIS JavaScript application in local host

My organisation has multiple ArcGIS JS API (3.13) applications. Those are working fine and good. I am new to GIS technology and I want to add more features to the applications which are already ...
0
votes
1answer
26 views

How to implement search tool get values in dropdown ArcGIS JavaScript 3.x

How to get point? When search button clicked i am trying search button click to go to point in ArcGIS JavaScript my code is this. How to push the values into search button? <script type="text/...
0
votes
1answer
49 views

Adding multipoint to feature layer using ArcGIS API for JavaScript?

I want to display a marker whenever I receive websocket message but with this code I can only display the first point and then when I receive the second message I can't display it. socket.onmessage = ...
0
votes
1answer
40 views

ArcGIS JS API 3.x: How to open a Info Window programmatically

I'm working on a geographic application using the ArcGIS JavaScript API 3.x. I am looking for a method that runs when a user clicks on suggestion Menu in the Search Bar for showing a specific feature ...
0
votes
1answer
34 views

Nothing is highlighted using print service

I have an Esri map with print service enabled. I would like to print a map based on objectid of a feature layer. The following is my Web_Map_as_JSON. { "mapOptions": { "showAttribution": ...
0
votes
0answers
32 views

Using Vector Tile Maps Offline in a Hybrid App (ArcGIS API for JavaScript)

I will create a hybrid map by using ArcGIS API for Javascript. I want to use my own hosted vector tile basemap as offline. What do you advise? Are there any ways to use ESRI Vector Tile Package (....
0
votes
1answer
23 views

ArcGIS Server - Print Map Task result retrieving

I have an application where i'm printing a map on one page and would like to display the result in a PDF when the user goes to the summary page. The print task takes about 4-5 seconds to return the ...
0
votes
1answer
20 views

How to get the most current data from a Temporal Feature Service?

I have created a Temporal Feature Layer on our ArcGIS Server, which records all the locations, along with timestamp & other attributes of moving vehicles. I used the TimeSlider Sample, to create ...
-1
votes
1answer
20 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 ...
1
vote
1answer
14 views

How do you retrieve a single attribute from a feature layer by clicking on it using ArcGIS Javascript API v3.2?

I am building a map that you can hover over and click on. I need to access a feature's project number (ProjectNum) when I click on it, but my click event on the layer doesn't seem to be firing. When I ...
0
votes
1answer
25 views

No manifest.json or widget.html file for WAB app

I want wanted to configure a select widget in my WAB code on my local to have only the selectBy Polygon instead of the out of the box SelectBy square settings. So I created a new WAB app with those ...
0
votes
1answer
35 views

Adding API JSON data to ArcMap [closed]

I want to add data from an API (census.gov - https://api.census.gov/data/2016/acs/acs5/variables.json) to ArcMap. How do I do that? If I have to publish it on ArcGIS Online first, I can do that but I ...
1
vote
1answer
28 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
39 views

Converting lats and longs to centerpoint in ArcGIS API for JavaScript?

I'm working on a angular 2 website using the Arcgis API 3.24. I'm fairly new to ESRI and I was wondering how I could convert a extent that has values of spatialReference : {wkid: 4326} xmax:...
2
votes
1answer
51 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 ...
2
votes
1answer
37 views

Layer on click event not firing in Firefox but working fine in Chrome,Edge

I am using ESRI JS API 3.24 in my application. I am using following code to open specific URL within the application when click on the layer. var lyrUrl = "Path_To_Layer"; var myLyr = new ...
0
votes
0answers
40 views

Get features from ArcGIS WMS layer

I am trying to get features from WMS point layer using GetFeatureInfo as mentioned in WMS Polygon Layer With GetFeatureInfo. For point layer not getting results. I have doubt that they are passing X ...
0
votes
2answers
61 views

Using ArcGIS webmap offline?

I am working with a simple map application (basemap and some points/markers) that is using ArcGIS services. The map was developed about 2 years ago but this year (due to security measurements, ...
3
votes
1answer
48 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) {...
2
votes
0answers
52 views

ArcGIS Javascript API - Limit Map extent to a 100 mile radius

I'm using ArcGIS JavaScript API 3.24 and im displaying the location of a lat/long and displaying features of a feature layer with 50 miles of that lat/long. Is there way to limit the extent to a 100 ...
0
votes
0answers
37 views

FeatureLayer selectFeatures hides the feature only on one layer

I am using arcgis 3.23. I have defined the following SimpleLineSymbol to use to highlight selected features in different FeatureLayers. app.selectionLineSymbol = new SimpleLineSymbol(); ...
1
vote
1answer
39 views

QueryTask doesn't return anything ArcGIs Javascript 3.24

I have a query that I believe I am setting up correctly, but maybe I'm missing a vital property. Does the where clause need to be set? I want to query all features, not a subset of them, so I don't ...
2
votes
2answers
72 views

Setting Min Zoom without base map using ArcGIS API for JavaScript?

How do I set min zoom for map without defining base map(User can't zoom out beyond that label)? Set min zoom with base map is working fine. For example: map = new Map("map", { ...
1
vote
2answers
33 views

ArcGIS JS API 3.x - Update the default selected feature highlight styling when a pop up displayed

I'm displaying a pop up when a feature is selected on feature layer. I'm also highlighting the polygon boundary with a red line but when the pop up appears the highlighter changes to aqua color which ...
0
votes
1answer
88 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
44 views

ArcGIS Javascript API - Update Renderer when a Feature Layer record is selected

I'm using ArcGIS JavaScript API to display a map with a feature layer with multiple records. I wrote code to display a pop up when a record is selected on the map. Is it possible to change the color ...
0
votes
0answers
23 views

Adding ArcGIS API for JavaScript to SalesForce?

Currently i'm trying to use Esri javascript api with salesforce lightning component, but its keep give me an error with the api: Uncaught TypeError: Cannot read property 'require' of undefined ...
2
votes
2answers
45 views

Show map service

I am new to ArcGIS JavaScript API and I want to use it in local host mode. I definitely follow Esri support instruction for using of it. I replacement instead of [HOSTNAME_AND_PATH_TO_JSAPI] in init....