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

325 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
1answer
24 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 ...
1
vote
0answers
29 views

why the time layer added doesn't show?

I'm adding a layer with time control throught the widget "add Data" But this layer doesn't show in map. Could someone give me a clue as to why this happens?
1
vote
0answers
50 views

Editing related records for layer that has been added using ArcGIS Web AppBuilder?

In our web application we add layers programatically when a user with editing permissions logs in. However when the layers are added using this method (map.addLayer(Layer)), the related records are ...
1
vote
0answers
59 views

Creating web map with dynamically rendered symbols for multiple large datasets with ArcGIS?

I am editing an existing ArcGIS Server (v10.2) / Javascript (3x) map-based web app, which has several dynamic map services, some of which contain over 50,000 points. The new web app must be able to ...
1
vote
0answers
125 views

esriPopup on close stop video play?

I have MEDIA column in my attribute table contains video URLs (YouTube iframe & HTML5 video tag). By Clicking on feature on map popup display and play the video. I would like to stop video play ...
1
vote
0answers
39 views

ArcGIS JavaScript API find the polygon a point belongs

I have a shapefile containing polygons and whenever a user searches an address I store latitude and longitude of the location. I want to know which polygon this address belongs and I have id assigned ...
1
vote
0answers
446 views

Add attachment to feature service feature issue

I have a feature service that contains a number of features for which I want to allow the attaching of files/images etc. The layer is editable and it has attachments enabled, both as a property on the ...
1
vote
0answers
198 views

gpTask: ERROR 000735 Value is required (Input KML, DataFile)

I have a Python script tool running perfectly on the ArcGIS server. Trying to run the tool in a web application (JS API 4.6) with the same input KML-file (published on a publicly available webserver). ...
1
vote
0answers
213 views

Arcgis JS API 4.x how to localize?

I'm looking for ways to customize built in widgets, but couldn't find anything in version 4.x. In version 3.x you can do it in following way as mentioned in doc https://developers.arcgis.com/...
1
vote
0answers
185 views

Moving multipoint using ArcGIS API for JavaScript?

I am trying to move a multipoint object using the edit toolbar, but I keep getting the below error: > Uncaught Error: [esri.toolbars.Edit::activate] Unable to activate the > tool. Check if the ...
1
vote
0answers
48 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"; ...
1
vote
0answers
21 views

What causes these ServiceArea artifacts?

I'm building a bus service coverage tool, using ESRI's javascript API with NetworkAnalyst Route and Service Area tools on ArcGIS Server 10.2.1 doing the heavy lifting. Workflow: Identify 2 or more '...
1
vote
0answers
25 views

Saving user-imported shapefile to geodatabase

Is there any API or service out there that can do this? We have a SQL Server managed geodatabase (ArcSDE). It would be ideal to be able to create a web application where someone can upload a ...
1
vote
0answers
381 views

Using Secure WFS Layers in AGOL/ArcGIS Web App Builder

I am working on an ArcGIS WAB app that needs to reference proprietary lightning strike data which is only provided through the vendor as a secured WFS service. Ideally, this would be a layer inside a ...
1
vote
0answers
213 views

ArcGIS Javascript API - Dynamic label placement in feature layer

Is it possible to use dynamic label placement with a feature layer in the javascript API v3.21 ? For instance, if two point features are superposed, I would like to display their labels at different ...
1
vote
0answers
161 views

How to calculate area of intersection between raster and polygon in a web map?

I need to calculate the area of intersection between a vegetation raster and a polygon drawn by the user in an ArcGIS Server JavaScript API web-map, as in this mockup: After the user has drawn the ...
1
vote
0answers
139 views

ArcGIS JS API 3.21 InfoTemplate ZoomIn Button

Has anyone had luck attaching a click event to a custom button built in the HTML of the InfoTemplate? Here's my InfoTemplate HTML: uploadInfoTemplate = new InfoTemplate ({ title: "", content: ...
1
vote
0answers
408 views

Using ArcGIS JavaScript API feature table using bootstrap wrappers

I am trying to create a feature table following this sample. https://developers.arcgis.com/javascript/3/jssamples/featuretable.html This sample uses the data-dojo-type="dijit/layout/BorderContainer ...
1
vote
0answers
333 views

ArcGIS javascript Cluster Layer not working on a map with UTM spatial reference

I use this sample's clusterlayer module to create a cluster layer. problem is that when map spatial reference is UTM the cluster layer that I added to map does not work properly. the errors are svg....
1
vote
0answers
154 views

How to undo/redo the splitting/union of a feature

I have looked everywhere for examples on this however all I can find are the normal operations, add delete edit and move. Since split and rotate involve creating two features instead of one or ...
1
vote
0answers
125 views

Using a URL instead of a form to add a shapefile to a layer in JavaScript

I have the following code that is used to add a shapefile to the map and it works perfectly. var genRequest = request({ url: portalUrl + '/sharing/rest/content/features/generate', ...
1
vote
0answers
110 views

Configurable Map Viewer Advanced Search Widget

I add Advanced Search Widget on my configurable map viewer application, I have also configure proxy file and paste Attributes Tables, the problem is that search by attributes, by adresse works but ...
1
vote
0answers
400 views

Cascade filtering with ArcGIS API for JavaScript?

I want to populate my dropdown with attributes of shapefile for example in one dropdown on loading name of states given then after selecting the specific state next drop down loads its counties and ...
1
vote
0answers
362 views

ASP .NET and ArcGIS API for Javascript : FeatureTable won't show up

I"m a newbie with the ASP .NET, a have an issue. I want to show up a feature table in a viewer but I don"t get any results. I think I"m missing something? Here is example that I took from the ...
1
vote
0answers
179 views

How To Reference Group Layer

I'm trying to create and if/else loop for three sublayers in a group layer. If it's the group layer (0) then the sublayers have certain labels. If it's group layer (4) then the sublayers have other ...
1
vote
0answers
141 views

GP Tool Timeout Message in the Console

I have a GP tool that creates a PDF report from a map click. I'm testing running multiple reports simultaneously from different browsers. If I run two reports, one will return a PDF to the popup, and ...
1
vote
0answers
127 views

Legend widget not loading all layers on inital load esri javascript api 3.20

When using the legend widget (esri JAPI 3.20), not all the layers show up when my map loads. I have to zoom a level first then they all show up. Any fixes?
1
vote
0answers
217 views

TOC ArcGIS JS API app Is empty

I've been trying to use Nliu's TOC . I've followed a few examples and looked through the threads here, but I'm totally stumped on why my code isn't working. This is my code <!DOCTYPE html> <...
1
vote
0answers
241 views

Large Legend doesn't appear on print task

I am having a problem displaying a large Legend (with more than 60 items) on the print task, it appears that the legend doesn't appear at all at the printed template. It does print fine if there are ...
1
vote
0answers
38 views

Reorder the features in a layer to display on infowindow

I am trying to display features from results on infowindow, I have written the following code for that, But I am not getting the output. Please suggest me where to modify in my code to get first ...
1
vote
0answers
72 views

Ordering of VisibleLayers in Infowindow by clicking on map

I am trying to display the information of multiple layers on infowindow by onclick event in the proper order of layers they exist on the map. I have written some code for this, but the infowindow ...
1
vote
0answers
47 views

See the result of a query on the map with Arcgis Api JS

Let's say you enter these parameters. Which method of the "ArcGISImageServiceLayer" class can serve to display the image of the mosaic dataset? In the attached image the result is an image, but I do ...
1
vote
0answers
308 views

Icon / Symbol missing in vector tile map (integrated by ArcGIS API for JavaScript)

The web map was made by esri tools, since it contains two tile layers (a map tile layer overlapped by a vector tile layer) which hosting by Portal for ArcGIS 10.4, and then integrates through ArcGIS ...
1
vote
0answers
400 views

LayerList Legend onload visible all Layer

I am using LayerList widget and have some problem with Legend when the LayerList is loaded the first time. Actually I have a lot of Group Layers and some of them are turned off but inside the group ...
1
vote
0answers
1k views

Unable to perform applyEdits in Feature Service

I am facing two issues with applyEdits through JavaScript API. 1. Unable to perform applyEdits When I perform ApplyEdits on feature service, I get the error "Unable to complete operation". When ...
1
vote
0answers
383 views

Zooming to selected record in enhanced data grid using DOJO?

I developed a webgis find tool using ArcGIS javascript api 3.17. users search a keyword and find points on map. the find tool result show in an enhanced datagrid and works correctly. What i want to do ...
1
vote
0answers
802 views

Refreshing values of data grid of Dojo?

I developed a webgis tool to find some features on map using Find task of ArcGIS javascript api and show the attribute in a grid using enhanced grid dojo. Everything work fine at the first time and ...
1
vote
0answers
683 views

how to use session variable in javascript to get parameter value from one javascript page to another?

I am trying to get value from one js file to another i am able to do that using cookies but i need to do using sessions can anyone suggest me on this ..(this value i need is for login control) here is ...
1
vote
0answers
77 views

Table not included as layer with result map service

I published a geoprocessing service that outputs (1) a feature layer and (2) a stand alone table. The goal is to join these two on the client side... given the size of the table, it takes too long to ...
1
vote
0answers
91 views

TOC with secure services

I have secured map services with AGS. I also have the proxy.config, proxy.ashx, and web.config in my application. My map layers display OK using the proxy. When I try to display my legend using the ...
1
vote
0answers
663 views

ArcGIS JSAPI Query Related Records/Relationship Table

I am using this example https://developers.arcgis.com/javascript/3/jssamples/fl_query_related.html to develop an application which queries related features. I have two feature classes and have ...
1
vote
0answers
71 views

Create a Map scale for Geodesic circles

I need some guidance. I'm using an ESRI Base Map with Web Mercator projection(Wkid - 102110) in an web application using JavaScript. I'm drawing geodesic circles on the Base Map for a given radius ...
1
vote
0answers
886 views

Can I create a selection on Feature Table by attribute with ArcGIS JS API?

I have a simple app built using the 3.16 API that includes a flat table (so no spatial attributes) using the Feature Table widget. Can I select rows by attribute rather than just by the user clicking ...
1
vote
0answers
31 views

After Feature Layer reference is added all dojo references are not recognized

I'm creating a simple javascript management system in which I have to query 6 feature layer services, edit, add or delete data from the services. Every time I want to add the Feature Layer reference ...
1
vote
0answers
42 views

Send Feature Attributes Along with Geometries to Difference Operation of Geometry Service

I've large number of data(geometries and attributes). I've to find their difference with other geometry, and after difference is calculated I've to assign attributes to those geometries. Example ...
1
vote
0answers
42 views

arcgis 10.2 server how to get legend to display symbology only for visible classes

i have a web app that consumes legend info via a esri/dijit/Legend widget. The problem is that it displays symbology for all data, even those features not visible in current extent, is there a way to ...
1
vote
0answers
1k views

problem with setting up proxy - ArcGIS JS API

I have spent a lot of time to solve a error in setting up proxy for JS API but I could not find any solution. I did following steps: I downloaded the proxy files for .Net. I edited proxy.config ...
1
vote
0answers
123 views

How to put two points using query task please kindly solve the error in the following code

dojo.require("esri.map"); dojo.require("esri.tasks.route"); dojo.require("esri.layers.FeatureLayer"); dojo.require("esri.geometry.Point"); var map, routeTask, routeParams; var ...
1
vote
0answers
77 views

relatedQuery.setDefinitionExpression not working jsapi arcgis

I want to relate two tables STATION and TEMP this my code : var relatedQuery = new RelationshipQuery(); relatedQuery.objectIds = [graphic.attributes.objectid]; relatedQuery.relationshipId = 0; ...
1
vote
0answers
37 views

How to share business logic among multiple applications using different apis with arcgis?

I've been working with ArcGIS and Esri WPF API for a year, but now me and my job colleagues felt the need to build a new application using the Esri Javascript API. Our application using WPF API has a ...

1 2
3
4 5
7