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

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

Adding multipolygons to Graphic Object converts coordinates to longitude only using ArcGIS API for JavaScript?

I'm using an API to retrieve a multipolygon array where each element of the array is as follows: inZoneData[n] = { "geometry": { "coordinates": [[-108.42, 44.91], [-108.41, 44.87],...], "...
0
votes
1answer
27 views

ArcGIS JavaScript API Buffer Units from Dropdown

I am trying to create a buffer that will have the distance and units inputted by the user. I'm having trouble getting the JavaScript to recognize the which Unit of Measurement the buffer is being ...
2
votes
0answers
128 views

How update location field (geometry) in Oracle Spatial using asp.net web application?

I want to update a geometry column in Oracle Spatial database via Asp.net web application, I couldn't find samples for update query or datatypes that can hold geometry data in asp.net. I use C# for ...
1
vote
1answer
15 views

Why is the CSV Layer converting a Date-Time field to Unix Timestamps?

I am using the ArcGIS JavaScript API to add a dynamic map in my application. I am loading data through a csvLayer. The data looks something like this: Here's a snippet of me initiating the csvLayer: ...
0
votes
0answers
13 views

Display Feature Layer content on default popup ArcGIS Javascript API

I have a map that import a layer using the function var layer = new FeatureLayer( url: "https://xxxxxxxx" outfields: ["nom_cant", "nom_prov", "nom_distr"], ) Also I am using the default popup (...
0
votes
1answer
34 views

Creating bounding box in ArcGIS API for JavaScript?

I am trying to create a bounding box for my map in ArcGIS 3.28. I want the bounding box to stay in a given area based on the coordinates given. I found a class called Extent in the API Reference that ...
0
votes
1answer
25 views

Map not centering on location after using search widget - ArcGIS API for JavaScript

Hello I am completely new to using the ArcGIS API for JavaScript 4.11. I am creating a basic app that uses a search widget. I use the search.on function to grab the latitude and longitude of the ...
1
vote
1answer
106 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 ...
2
votes
1answer
45 views

Using Google Maps Restricting Bounds API with ArcGIS JavaScript API?

I am trying to make a map with ArcGIS 3.29, but in my map I need a bounding box. The ArcGIS API does not have a bounding box function, but the Google Maps API does. What I am having trouble with is ...
1
vote
0answers
20 views

Access secure services from ArcGIS Portal with API JavaScript [closed]

I was reading this tutorial, that explains how to access secured services on ArcGIS Online. But I wonder if there is a way to do the same but with Portal and access my secured own data.
1
vote
0answers
20 views

Keeping TOC layers unchecked on first load in ArcGIS JavaScript API

I am new to ArcGIS and it's API. I am using NLiu's TOC widget for displaying the layers. It is working perfectly, however, I wanted to keep all layers unchecked when it is loading on the browser (for ...
0
votes
3answers
379 views

Zooming into a particular polygon

I am getting the polygon id by doing identifyParams.geometry = evt.mapPoint; identifyParams.mapExtent = map.extent; identifyTask.execute(identifyParams, function(result) { var i; var ...
2
votes
1answer
1k views

Programmatically accessing declarative ToggleButton? [closed]

I've just started with Dojo/Javascript and even though I kind of understand all the AMD way of coding, I keep getting stuck on these (probably) easy things. How can I programmatically access a ...
1
vote
1answer
40 views

Unable to zoom using ArcGIS API 3.28

I've been trying to create a map and have it's initial zoom and center position be the query result's coordinates (a polygon, in this case) but it just refuses to zoom in, both using zoom in the ...
1
vote
1answer
91 views

ArcGIS API 4.11 JavaScript - “Click” “drag” stopPropagation()

Using JavaScript in the ArcGIS API, I am querying a feature layer from a Map View, calculating points within a certain radius when the user "click" "drag" with the mouse. I want to be able to stop ...
6
votes
3answers
5k views

Turn Popups On/Off in ArcGIS Online Webmap via Javascript API Web Application

I am writing my first ArcGIS Javascript API web map application and consuming a web map authored in ArcGIS Online. The ArcGIS Online web map apparently does most of the work for me in terms of ...
1
vote
1answer
33 views

ArcGIS JavaScript 3.28 extent not working

I'm trying to get an extent to work on a web map app but keep getting an error when trying to pass the extent parameter: <!DOCTYPE html> <html> <head> <meta http-equiv="...
1
vote
0answers
46 views

ArcGIS-JS-API failed to execute query

I'm trying to execute this (it's JavaScript but it doesn't matter): queryTask.execute(query, function (results) { and I get an error: Failed to execute query These are the parameters: var ...
0
votes
1answer
89 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, ...
3
votes
2answers
60 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. ...
-1
votes
0answers
22 views

ArcGIS API for JavaScript - Transition from Scene View to Map View

I am working on development with the ArcGIS API for JavaScript 4x. I am seeking for a solution to improve the transition from a Scene View to a Map View? Could anyone please guide me how to have a ...
0
votes
1answer
46 views

Configuring attachments for ArcGIS Local Government “Citizen Service Request” App

Has anybody configured the Citizen Service Request app that ESRI's Local Government has developed? I have it ready to go, but can't get the attachments to work properly, either pics or documents. I ...
2
votes
1answer
623 views

Legend label failed to send to print service using ArcGIS javascript?

I am try to print my map with legend to PDF format; however, the legend label in the PDF is saying Override 1 instead of the label I specified in class breaks. There are other maps I can print ...
5
votes
1answer
268 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 ...
2
votes
1answer
17 views

Adding featureSet into a featureLayer (dynamic renderer)

I'm trying to use a renderer and a legend on data from a featureSet, it displayes symbols and popups but the renderer fails. The data comes from a featureLayer but I display it with view.graphics so ...
0
votes
1answer
19 views

How to implement search in a graphics layer?

There is a method that accepts JSON data. Based on this data, points are created and added to the graphics layer. How to implement search in a graphics layer? I found an example of how to implement ...
2
votes
1answer
33 views

ArcGIS JavaScript API popup-show all attributes

I'm publishing services to ArcGIS server and I want to test them out in a simple HTML web map. I would like to create a pop-up window to test if the attributes are coming through. Since I will be ...
1
vote
1answer
84 views

Emitting map click using ArcGIS API for JavaScript?

I am trying to emit a map click from the MapView object using its emit method. I have successfully done this in the 3x API from the Map object. This same method, however, is not working for me in the ...
0
votes
1answer
30 views

How to filter a csvLayer based on attributes?

Ill start out by just explaining what I'm trying to achieve. I'm running an arcgis application based on the javascript API. I'm Rendering a CSVLayer into my SceneView like such: require(["esri/Map", ...
1
vote
1answer
16 views

esri/dijit/editing/AttachmentEditor use proxy when viewing attachments

I'm trying to figure out why the ArcGIS JavaScript API AttachmentEditor does not use a proxy when viewing attachments. I have my proxy set up correctly, and it uses it in every other situation but ...
2
votes
3answers
1k views

Restricting zoom levels based on Bing Map availability?

My site is built on ArcGIS Server 10 with the JavaScript API 2.3, and uses Bing Maps as the background mapping. Although the site is aimed at NSW, Australia we allow the user to zoom anywhere in the ...
0
votes
1answer
30 views

ArcGIS JavaScript API: map loads after pan

I'm using this.mapa.map.centerAndZoom(center, zoom); with 2 different zooms, 4 and 5. loadModules([ 'esri/geometry/Point', ]).then(([Point]) => { switch (evt....
0
votes
0answers
14 views

Failed to complete the task about the ServiceAreaTask

When I am trying to do the task about the ServiceAreaTask, the callback can not be executed. This is my code: <html> <head> <meta charset="utf-8" /> <meta ...
2
votes
3answers
10k views

How to set center of map in ArcGIS API for JavaScript using Lat Long?

I am using Arcgis javascript API for my map where map is coming from arcgis online using map by ID. Now I want to set map center using Lat long,For this I am using this method to set map center ...
0
votes
0answers
28 views

ArcGIS Map export fails with when using scaleDependentRenderer

I am using ArcGIS javascript API 3.11 so as to call a map export service (printTask). This used to work fine, until I decided to print a graphics layer with a scaleDependentRenderer. The ...
2
votes
1answer
19 views

ArcGIS JS-API click on Graphic and exceute code

Currently I can click on the GraphicsLayer and I can see an array of all my Graphics added there. const layerMarkers = new GraphicsLayer({id: layerId}); this.map.addLayer(layerMarkers); const graphic ...
1
vote
1answer
21 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
2answers
98 views

How can I convert KMZ file to JSON?

I'm writing a ArcGIS JS project, in which user will upload KMZ which will be displayed on map, since ArcGIS doesn't have a magic trick to do it, I want to convert KMZ to JSON (or KML) and then display ...
3
votes
1answer
189 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
1answer
26 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....
0
votes
1answer
80 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 ...
1
vote
1answer
20 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
37 views

Not Able to Add Breaks For Feature Service Graphics

Using ArcGIS JavaScript API 3.24, can you please take a look at this snippet and let me know why I am not able to add Symbology to Feature Service out put by using ClassBreaksRenderer Here is the ...
2
votes
1answer
67 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 ...
1
vote
1answer
39 views

Updating job of workflow manager using ArcGIS API for JavaScript?

I'm trying update the name of a job: updateJob: function (jobId, workArea) { let loParameters = new JobUpdateParameters(); loParameters.jobId = jobId; loParameters.name = "Updated"; ...
0
votes
1answer
65 views

Why does Uncaught TypeError: Cannot read property 'trim' of undefined occur in esriRequest

I am trying to use esri/request to pull in some data from an API. I am have two weird problems. First, when I try to run this, it doesn't complete and throws the following error in the browser console:...
0
votes
1answer
74 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 ...
0
votes
1answer
39 views

Creating\rendering a heatmap not showing up

I am having a problem rendering a heatmap. I am sure the heatmap is created but it doesnt display when I replace or add a renderer. var TF = new FeatureLayer({ url:"https://services3.arcgis.com/...
2
votes
1answer
36 views

Web AppBuilder custom widget how to add third party node modules?

I know that ArcGIS Web AppBuilder Desktop is built using Node.js Is there any way we can add the third party node.js modules in Web AppBuilder Desktop using the npm command and then access these ...
1
vote
0answers
24 views

How to add GeoServer vector tiles in ArcGIS using ArcGIS JS API

I am trying to display vector tile layers from GeoServer in ArcGIS using JavaScript API. I have referred this.here they have used tegola service but i want to add "application/x-protobuf;type=mapbox-...