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]

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

0
votes
0answers
20 views

How to parse a shapefile with Esri JavaScript API and/or ArcGIS Server?

I'm developing a webapp that uses the Esri JavaScript API 3.xx (Dojo 1.x) together with an ArcGIS Server 10.6.xx. Until now I was parsing shapefiles in my Java backend that makes use of an offical ...
2
votes
1answer
39 views

HTTP Basic Auth Failure: Esri JS API

I am unable to prompt the Basic Authorization popup to appear using the Esri JS API with a Secured OGC WMS service. A concise description: Using a basic fetch request, with credentials: "include" ...
0
votes
0answers
21 views

Creating map based on image using ArcGIS API for JavaScript?

I want to make an image as a background map to my application. I am using ArcGIS API with JavaScript and all I could do is to add an Image Layer to this map map = new Map("map"); // create and ...
1
vote
1answer
48 views

Toggle ArcGIS Online WebMap Layers using Javascript?

I am taking an intro course on webmapping and am having some trouble figuring out how to set up a layer list and toggle layers on/off. I have already preconfigured 2 layers in a WebMap using ArcGIS ...
-1
votes
1answer
17 views

Using attribute inspector for ArcGIS JavaScript API?

I'm using the attribute inspector for ArcGIS JavaScript API. I don't know what code will I use, I want to have a dropdown box that is editable with options of red and green, if I select a box, the ...
0
votes
1answer
17 views

Hot spot analysis widget application programmed in JavaScript API is having trouble connecting to my portal

//Define the default inputs for the Hot Spot widget var hotSpotParams = { id: "analysisTool", analysisLayer: sex_offenders, portalUrl: "http://utdepps.maps....
1
vote
1answer
23 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
1answer
23 views

ESRI JS API hosted locally but requests still go to https://js.arcgis.com?

In my current project we have hosted the ESRI JS API within the organisation's IIS. For most of the part the deployed application works fine, but we notice that certain calls are being made to ...
1
vote
1answer
24 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
36 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
1answer
23 views

Setting up localhost in proxy service for ArcGIS Javascript API 3.x

I have a proxy service (DotNet) that works great in my production environment but I can't use it in my development environment. Obviously I really need it to work in my development environment because ...
0
votes
0answers
12 views

Emulating Editor functionality without using the editor widget

We have a simple workflow in place, where we use a TemplatePicker with an Editor widget to let the user add points, polyline and polygons to a map. Inside the onBeforeApply edits event, we pre fill ...
0
votes
1answer
28 views

Mixing a base map with a layer

I am trying to load a base map (streets) and have a feature layer from the arcGIS online system. I can view the base map, but I am receiving a few errors when i try to combine the base map and ...
0
votes
0answers
25 views

ArcGIS JSAPI Dynamically update 'isEditable' property on AttibuteInspector FieldInfo

I'm using the ArcGIS Javascript API 3.26. I'm trying to dynamically update the 'isEditable' property on a fieldInfo. I want to set the 'isEditable' property to true when a user selects a certain ...
-1
votes
1answer
26 views

Turn visible feature layers to invisible in ArcGIS-JS-API 3.x

I'm trying to turn all visible feature layers to invisible in a map using Javascript and jQuery by clicking into an element. What is wrong with the following code? $("#grayPic").click(...
1
vote
1answer
49 views

How to get mapPoint z coordinate by Lat and Lon

Please see the map on: https://codepen.io/stzdzyhs/pen/WamYav the whole code is also inserted below. When click on the scene(A IntegratedMeshLayer), it can show the Lon, Lat, and Z values in the ...
1
vote
1answer
38 views

Is it possible to add vector tile layer published by GeoServer layer using ArcGIS JS API?

GeoServer can publish vector tile layer in format of “application/x-protobuf;type=mapbox-vector”, and I believe the ArcGIS JavaScript API supports this format. So is it possible to add vector tile ...
1
vote
1answer
37 views

Proxy serverUrl with GP Service that has parameters?

I have a proxy that requests for services get routed through. This is working great for my map services, however I have geoprocessing services as well that must be accessed using the proxy. These ...
0
votes
1answer
22 views

How to push objectIds' array to RelationshipQuery's object in ArcGIS API JavaScript 4.9?

I need to push array of the object IDs to RelationshipQuery's object using executeForIds that generates the array. I also used executeRelationshipQuery that executes the query. I don't not why, but ...
1
vote
1answer
32 views

Stuck on getting proxy to work

I'm using JavaScript API 3.24 for reference. I want my application to automatically allow users to access secured services based on background authentication via a token (this way they don't need to ...
0
votes
0answers
40 views

Show Profile of Multiple DEMs in Elevation Profile Widget

I am currently using the elevation profile CMV widget (cmv-widgets/ElevationProfile.js at master · tmcgee/cmv-widgets · GitHub), and I'm looking to show the elevation profile of multiple DEMs along ...
3
votes
1answer
112 views

Feature Layer will not refresh ArcGIS Javascript API

I am trying to integrate live point data (worker locations) from Workforce for ArcGIS into a Javascript web app that I am building. The layer loads fine and displays on the map properly, it even ...
0
votes
1answer
51 views

Using ArcGIS JavaScript to calculate length of line feature where clicked

I am working with arcgis JavaScript API and a linear referencing feature. I want to be able to click on a line of a feature and calculate the length from beginning of the line to where I clicked. Then ...
1
vote
0answers
16 views

How to Get Client Credentials When User is Already Logged Into Server Directory (ArcGIS JavaScript 3.25)?

I'm working on an ESRI JavaScript App. My app needs to support OAuth2 authentication. The code below shows how the client logs in and how I get the client's credentials. What I need is the token ...
2
votes
1answer
67 views

ESRI ArcGIS routing API extremely slow compared to other providers

I'm implementing a wrapper that requests route information from different geospatial / GIS API providers. Input is always two or more waypoints (latitude, longitude pairs). It is not my goal to do a ...
1
vote
1answer
19 views

Displaying WMS sublayers on ArcGIS JavaScript

I want to display layers of a WMS service containing sublayers on ArcGIS using JavaScript 3. No layers appear, but the WMSLayer is marked as loaded. the WMS is described here: data shom WMS My code ...
1
vote
1answer
50 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 ...
0
votes
1answer
57 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
1answer
27 views

Dynamically changing spatial reference using ArcGIS API for JavaScript?

We have a web application that has tiled layers published in GCS. We want to publish a replica of the layers in a different projection system such that : When a user is at a specific zoom level, ...
1
vote
1answer
85 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
0answers
36 views

Directly interfacing ArcGIS JavaScript API with compact or exploded cache map tiles?

I have a set of map tiles in both Esri's exploded cache format (i.e. png, several GBs) and compact cache (i.e. bundle) format. Instead of using an online basemap (or one accessed via ArcGIS server) I'...
0
votes
1answer
112 views

Limiting the search widget results to a country in ArcGIS JS API 4.9

I'm using the Search widget in the 4.9 version of the javascript API. Can I limit the results to a given country when using the default geocoding service?
0
votes
1answer
52 views

Creating animations with goTo and extents using ArcGIS API for JavaScript?

I am using the ArcGIS API for JavaScript. Right now, I am trying to change the extent of a view dynamically. <script> var view; var new_ext; require([ "esri/views/MapView",...
0
votes
0answers
14 views

ESRI JavaScript Heatmap Draws on top of all layers when basemap is changed. How to reorder layer rendered as Heatmap?

I have a web app that includes a number of graphics layers. I have a feature layer that is rendered as a heatmap. The layer drawing order is correct when the page initially loads but the heatmap ...
0
votes
1answer
43 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 ...
2
votes
1answer
73 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
86 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
133 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
60 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
44 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 ...
5
votes
0answers
126 views

Drawing geometrical shapes with dimensions using ArcGIS API for JavaScript?

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
30 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
34 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
55 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
21 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
65 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
109 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
49 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 ...
1
vote
0answers
45 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
24 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 ...