Use this tag when ArcGIS API for JavaScript is the web mapping API that you are using from the ArcGIS platform.

learn more… | top users | synonyms

-1
votes
0answers
8 views

how to display a form with input fields when event was occurred in arcgis JavaScript? [on hold]

I have been doing some task,in which user draws a polygon on base map by using drawing tools, the form has to be generated after the polygon was drawn or form has to be generated in double click ...
6
votes
1answer
295 views

CSS Spritesheets and picture marker symbols in the AGS Javascript API

I'm working on improving the load performance of a large ArcGIS Javascript application, and one area where we can have trouble is that there is a visible delay between putting a graphic with a ...
7
votes
3answers
2k views

Moveable ArcGIS Identify Popup Window (Dojo)

I'm trying to get a popup window that identifies a location to be moveable. My code is similar to the API example: var popupOptions = { fillSymbol: new ...
1
vote
1answer
14 views

Getting Error: Districtna.getExtent(…) is null

I have dojo combo box to display district names when I select one district it should zoom to that particular district.selection is working fine but zooming not happening i am getting ...
3
votes
0answers
22 views

ArcGIS Server config to allow ArcGIS JavaScript printing?

I have ArcGIS Server 10.21 on Windows Server 2012 R2, and have created a web application using ESRI JavaScript API v.3.16 that uses the dijit/Print that invokes the Export Web Map task on the server. ...
0
votes
0answers
6 views

Troubleshooting a PointSymbol3D layer in ArcGIS JavaScript API

I have some code doing what I want here: https://jsfiddle.net/stcline/pvyf7bp6/1/ I would like to figure out why this similar code which is using the PointSymbol3D function is not working: ...
1
vote
0answers
450 views

Error: Objects in this class cannot be edited outside an edit session

I'm simply trying to modify the Default Editing Widget ESRI sample to show my extent and service and am noticing the following error in Firebug when trying to add a point: ...
1
vote
0answers
10 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 ...
3
votes
3answers
342 views

Is there a way to set a geometry filter on a esri.layers.FeatureLayer?

Suppose I want to limit the extent of a feature layer to a geometry (say a circle). Is that possible? I am aware of setDefinitionExpression but that is limited to a attribute filter. There seems to ...
0
votes
1answer
336 views

Plotting GeoJSON data on map using ArcGIS API for JavaScript?

We are developing the portal in which we are using Arcgis javascript APIs.The requirement in our project is one of the weather provider is going to publish the webservice which will return the weather ...
3
votes
0answers
16 views

I want to calculate the distance between two points using network analysis

function drawroute(allcordinate) { var Coordinate = new Array(); Coordinate = allcordinate; var long = Coordinate.split(",")[0]; var lat = Coordinate.split(",")[1]; ...
3
votes
1answer
34 views

Using both query.where and query.geometry with queryTask

I am using a QueryTask to select data from a Feature Service and pass the attribute values to a dGrid. I am using a where statement (query.where) to select only certain polygons from this service and ...
0
votes
1answer
177 views

Create a polygon from an array of coordinates in arcgis javascript api

Well I am building a GIS web app using ArcGIS Javascript API , I want to create a user interface in which the user provides an array of coordinates and I have to get those coordinates and create a ...
1
vote
0answers
39 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 ...
0
votes
2answers
180 views

CMV Viewer Floating Widgets

I asked this question on Gitter but I think it got lost pretty quickly. Does anyone have an example CMV site without the side bar or any indication whether it would be worth pursuing CMV if what I ...
3
votes
1answer
192 views

Inconsistent Identify Task- Explain this bug?

Through some console.log debugging I've located the exact line of code that is failing me but I'm not quite sure how to fix the problem. Basically, I have an identify function that queries the ...
2
votes
1answer
281 views

How do I modify the WebAppBuilder "LayerList' widget to use radio buttons instead of checkboxes?

I've downloaded the developer version of the Web app builder and installed in on my machine. I can open up the widget '\LayerList\LayerListView.js', and I have been exploring the source code. I would ...
0
votes
1answer
33 views

ArcGIS JavaScript API Search widget doesn't work

I am a beginner of ArcGIS JavaScript API. I am creating a simple web map now. For some reason, the search widget of the map doesn't work. When I go to the console, it shows this error: Here is my ...
1
vote
0answers
15 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 ...
2
votes
1answer
230 views

Remove 'zoom to' tool in pop up feature information ArcGIS API for JS, or define the number of clicks i.e. defined scale

How can I remove at all 'zoom to' tool in the pop up attribute information? Or how can I define the scale (number of clicks) in case if the 'zoom to' can not be removed. I have particular layers ...
1
vote
1answer
717 views

How to get the feature set for geoprocessing service?

I am calling a geoprocessing service in a web app. The geoprocessing service has one parameter (a feature set). But I am not sure how to find the parameter in the javascript code to send it to the ...
1
vote
1answer
195 views

Variable buffer radius in ArcGIS JavaScript API?

I'm hoping someone can help with this, I'm trying to combine the following Esri samples, to end up with the ability to create buffers based on a variable radius, that will then query data within the ...
0
votes
1answer
371 views

esri/dijit/Search multiple sources not updating drop down list

I am trying to reproduce the tutorial on one of my own layers Here I have put in one of my own layers <!DOCTYPE html> <html><link rel="stylesheet" ...
1
vote
0answers
13 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
1answer
249 views

Sending e-mail on feature update in ArcGIS JavaScript application? [closed]

We have an ArcGIS feature service that users can edit to change a "project status" attribute. An example would be a change from "pending" to "in-progress". Certain groups need to be notified when ...
0
votes
0answers
11 views

send email by using arcgis api for javascript [duplicate]

i'd like to know how to send an Email by using arcgis api after some Attributes changed. Users can edit to change a geometries attributes or "project status" attribute in a Feature Layer. For example, ...
1
vote
1answer
386 views

Set definition expression from click event

I'm trying to set a definition expression according to a user-selected value from a drop down menu, but I can't get the map to update the feature layers according to the expression. The user is able ...
1
vote
1answer
328 views

“Pagination not supported” error occurs when searching feature layers using the search widget

I just upgraded to the 3.13 version of the JavaScript API, and I'm working on getting the new search widget (esri.dijit.Search) working in our application. We have our own ArcGIS Server (10.1 I ...
2
votes
2answers
281 views

ArcGIS Javascript API: Adding a shapefile with more than 1000 points

I am able to add shapefiles with less than 1000 points by using the ArcGIS Portal REST API as shown in this example: https://developers.arcgis.com/javascript/jssamples/portal_addshapefile.html ...
0
votes
0answers
11 views

Heat Map - Visualize Weather Data Across Continental United States

What i would like to do is to produce a heat map representing temp across the continental United States.. I am using a service from NOAA to gather Temperatures. var tempF = new ...
1
vote
1answer
517 views

How to add custom basemaps to BasemapGallery

I would like to add my own custom basemaps to the BasemapGallery. Is there any way I can create my own BasemapGallery with only my maps? I am using the ArcGIS API for javascript. EDIT: for clarity I ...
1
vote
0answers
12 views

Tiled Map and Picture Marker Symbol not rendered using Print Task with ArcGIS JavaScript API

I have located a hospital and provided a new symbol to it. Also added a STREETS basemap to it. I can see both of them on the map on screen. But when I try to generate a report (using Print Task), ...
1
vote
1answer
193 views

How to create a infotemplate that displays automatically

I have created a postcode search that that highlights a polygon and zooms in. but I would like it to display a infoTemplate box with having to click in it. I want it to show when the function runs. ...
1
vote
1answer
214 views

Legend ArcGIS Javascript does not recognize Legend from ArcGIS for server 10.2.2

I have created maps in ArcGIS for desktop and published them to ArcGIS for server 10.2.2. Because of performance issues I have created a group layer of the same map with different levels of details. ...
1
vote
1answer
508 views

ArcGIS javascript API setDefinitionExpression returns wrong result set

New to GIS and ArcGIS. I am trying to use the javascript API setDefinitionExpression to limit the output of a FeatureLayer on the map; however, the result set returned by the function is incorrect. ...
1
vote
1answer
1k views

ArcGis Server Java script API error code 500 while using proxy.ashx on one particular server

I am looking for help with using proxy.ashx in Javascript API on one particular server at a client site. We have a GP service that the proxy is used to access (when request is more than 2048 ...
0
votes
1answer
28 views

Using proxy with ArcGIS API for JavaScript?

I am using ArcGIS with JavaScript API and I am trying to get a proxy since some functionality requires specifically to install and set up a proxy. I have looked at the manual but it is a little bit ...
0
votes
1answer
368 views

Is it possible to copy and paste features in an online Edit function?

Using the ESRI JS API, is it possible to select a feature and then create buttons to copy and paste that feature? This would be done using the Editor Widget. If its possible to do this, but only ...
1
vote
1answer
28 views

How to use “geometryEngine” in arcGIS Version 3.9

We are using arcGIS javascript version 3.9 in our portal. Now we have new requirement to do reverse clipping on map. We have already written code to implement reverse clipping with the help of ...
2
votes
1answer
33 views

Using Multiple Versions of ArcGIS API for JS in Same Application

We've a large web based GIS application running which uses an older version of ArcGIS API (v3.7) for JS. The ArcGIS JSAPI v3.7 is lacking some functionality which are available in v3.15. Now I also ...
1
vote
2answers
233 views

How to add an attribute value to info window as a link? (ArcGIS JavaScript API)

I am using ArcGIS API for JavaScript and I want to use a value from a feature class attribute as a hyperlink. For example, "template.setContent("Web Address: http://www.esri.com>${Web_Address}"); This ...
1
vote
1answer
185 views

Polyline graphics not displaying in Javascript API?

I am getting features (graphics) back from an IdentifyTask, setting a symbol and adding to a graphics layer. Polygons and points show up just fine, but not lines. Has anyone else encountered this? ...
0
votes
1answer
208 views

limiting circles to a specific radius

I am new to ArcGIS javascript api and I have created a map which allows users to draw circle geometries. I just want to limit the functionality so that the radius is specified at 10000km. This is ...
0
votes
1answer
174 views

Is there any Map event fired when map is loaded completely when we device is oriented from portrait to landscape mode?

We are using ESRI ArcGIS JavaScript API in one of our Mobile web app. When map is loaded first time, Onload event is fired. But when we change orientation from Portrait to Landscape, OnLoad event does ...
3
votes
1answer
522 views

how to disable duplicate items in the legend for ArcGIS JavaScript API

I have a problem with duplicate items in the legend panel! Can anyone help me? This is my feature Layer with popup info: // Feature Layer var msFeatureLayer = new ...
2
votes
1answer
950 views

Programatically add feature to Feature Layer with ArcGIS JavaScript API

I've so far been able to add a feature layer from an ArcGIS server, and I've also been able to add an editor widget which allows me to draw to feature with the mouse. The added features are being ...
1
vote
1answer
40 views

Add a JSON feature class to a map using ArcGIS javascript API

I am a beginner in javascript and I am working on a project using the ArcGIS javascript API. Since I am using shapefiles, I need a way to put them on the map automatically after a procedure. I have ...
0
votes
1answer
221 views

Accessing Draw toolbar of ArcGIS JavaScript API without dojo?

I am building an application using Angular JS, and have been accessing ESRI classes thus far in the following way: var graphicsLayer = new esri.layers.GraphicsLayer(); I have access to the 'esri' ...
0
votes
1answer
33 views

Use HTML button tag to select different feature layers in ArcGIS JavaScript API 4.0

I am trying to build a row of buttons on the top of a page which changes the feature layer being viewed. I am using sample code from here: ...
3
votes
0answers
29 views

Speed up Rendering of Feature Layer Using ArcGIS JavaScript API 4.0

Are there any tricks to speed up the rendering of a feature layer in the ArcGIS JavaScript API? Currently one of the layers I am using is: This takes about 10 seconds to draw but I have used this ...