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

330 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
0answers
310 views

Change HTML markup used it PopupTemplate in ArcGIS (javascript api)

everyone. I'm sorry if it is common question but I'd googled it for a couple days and still haven't find the answer. Everything I see in documentation is style an exist HTML layout, which looks like: ...
2
votes
0answers
243 views

ArcGIS Web AppBuilder View Query Results in AttributeTable

I'm building a couple of custom widgets for use on a Web AppBuilder app that do some queries against feature layers. I get back a feature set, which I can convert to a local feature layer. What I'd ...
2
votes
0answers
78 views

Disabling Extent Based Rendering using ESRI Javascript API

I am using ESRI's javascript API to generate a heatmap renderer for my feature layer. I am noticing that the heatmap calculation/visualization is dependent upon what is in the current zoom extent. For ...
2
votes
0answers
181 views

Is tileJSON supported by ArcGIS for Server?

Does ArcGIS 10.2 for Server support tileJSON? I mean, can I retrieve in some way the tileJSON from and ArcgisTiledLayer ? I need this so as to use it with wax library and have a grid along with the ...
2
votes
0answers
161 views

Print two different maps object in one layout template in Arcgis javascript api

I'm trying to publish a print service that accepts two maps objects, sent by javascript and print them, I found PrintTask() wedjit, something like printTask.map=map, my goal is to try to send two map, ...
2
votes
0answers
111 views

How to use items param in TemplatePicker to draw with?

I have been checking the JS API of TemplatePicker and it says to either use featureLayers or items in the params object: https://developers.arcgis.com/javascript/jsapi/templatepicker-amd.html I ...
2
votes
0answers
93 views

Is there a limit of the number of legend labels passed to ArcGIS server print service?

Is there any limit on the ArcGIS print service for the number of legend labels? I am using ArcGIS server 10.2 and ArcGIS Javascript version 3.10 and am able to print with legend labels (item ...
2
votes
0answers
105 views

ArcGIS Server Map Service - Best Way To Visualize Coincident (Identical) Point Features

I have an ESRI Map Service serving out several point layers with 10k+ point features. Because of these high feature counts, I use a dynamic map service where a symbolized image is generated on the ...
2
votes
0answers
491 views

Popup with related tables

I'm finding difficulties displaying values of a related table in a popup window. Esri said that at version 3.10 and above, popup templates can include fields from related tables using the syntax (...
2
votes
0answers
279 views

Attachment access using ESRI's dynamic services

I need to be able to display photo attachments in a tabbed popup window that ideally only contains a dynamic map service. I have a working demo running that uses a dynamic map to display the data and ...
2
votes
0answers
876 views

Error on domReady callback: TypeError: b is null arcgis

I'm getting this error "Error on domReady callback: TypeError: b is null" when including arcgis javascript api to my project. <head runat="server"> <title></title> <script ...
2
votes
0answers
642 views

Layer Definition Query - Subqueries

Background: I want to track the movement of icebergs in ArcGIS. In my FileGeodatabase I have a single Iceberg layer. What I have thought of is to create an ID field for each object; each ArcGIS ...
2
votes
0answers
134 views

Export Web Map Task: Configure HTTP response headers

Is there any way to configure the http headers (response headers) of a geoprossessing task hosted by ArcGIS for Server? I would like to make the export web map task, return an image which would be ...
2
votes
0answers
109 views

Showing data in form view (instead of grid view) using ArcGIS API for JavaScript?

Can anyone suggest how to bind data with the help of query in a Form view of the ArcGIS API for JavaScript? I have done it in Grid view but as the requirement of a client is that I have to bind it to ...
2
votes
0answers
590 views

How to display lines with Arrows on a FeatureLayer?

I've setup a feature service with a symbology. One symbol is a line with an arrow at the end. The description for such a symbol is not part of the FeatureServer response data. So it is not ...
2
votes
0answers
147 views

Dissolve Statistics Fields and Statistic Type as Parameters in GeoProcessor

I have a published service which uses a dissolve. In arcMap the I get prompted for all the fields, including statistics fields and stat type. I have the statistics fields marked as parameters. ...
2
votes
0answers
280 views

Populate print template title text from a dojo textbox

I have a print widget that starts up great. It's based on the typical ArcGIS print widget sample. However, I want to tweak this a bit. There is a "titleText" property in the layout options that I ...
2
votes
0answers
459 views

How to serve KML files from ArcGIS Server in AGS JSAPI 3.6

I have a javascript test page that adds a couple kml layers to a map and I can toggle them off and on. I seem to get info popups for free with KML. When I click on a point feature I get the data ...
2
votes
0answers
1k views

Looking for ArcGIS API for javascript and Jquery samples

I'm new in ArcGIS javascript API .I found tons of samples of ArcGIS javascript API and DOJO . it was very interesting for me but i know Jquery and i'd like to use Jquery to develop webgis.Is there ...
2
votes
0answers
265 views

Jsonp Callback error

Recently we have started migrating application from Javascript API 3.1 to 3.5 and we are finding this jsonp error coming sometimes during adding the layer.When we add the layer we also zoom to the ...
2
votes
0answers
4k views

How to dynamically add all feature layers using ArcGIS JavaScript API?

I have a mapserver http:// mymapserver/services/rest/xxx/mapserver/ which contains 7 layers with /mapserver /1 /through mapserver/7 If a define an ArcGISDynamicMapServiceLayer and 7 ...
2
votes
0answers
678 views

ArcGIS in PhoneGap

I am trying to set up a PhoneGap application with an ArcGIS Map using a Windows Phone template in Visual Studio 2012. I have tried using an example from the ArcGIS Javascript API samples to ...
2
votes
0answers
383 views

Anyone have success with OpenLayers and ArcGISCache?

OPENLAYERS Has anyone had success using OpenLayers and the ArcGISCache layer beyond the examples? I'd like to mix tiles with different resolutions and although they seem to scale correctly they do ...
2
votes
1answer
760 views

Variable buffer radius in ArcGIS JavaScript API?

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 buffer zone. https://developers.arcgis....
1
vote
0answers
31 views

Getting longitude and latitude from a GraphicsLayer using ArcGIS API for JavaScript ( 3.32 )

Update : I have to position a button at the bottom of a layer, i try with Point, fullExtent and xyToLngLat. but the result seems offset sometime. I have a hard time getting longitude & latitude ...
1
vote
0answers
25 views

Need assistance in project regarding Change Detection

My task initially was to classify the area into land-use classes like forest, sparse vegetation, agriculture, river, etc I had done that by clustering the whole area and then reclassing it. I had to ...
1
vote
0answers
22 views

Restrict layers in attribute table widget in JavaScript?

I'm building a webapp, where you can change from several map services. In every map service there are several layers with same naming, but not with the same number of layers. I cannot set the ...
1
vote
1answer
29 views

Programatically toggle Basemap labels

I can toggle the active basemap programmatically using the code below, but how can I also include a widget to show or hide the basemap labels programmatically? myApp.widgets.basemapManager....
1
vote
1answer
55 views

How to get base map ids from basemap gallery ArcGIS JS (i.e. topo)

Context: I am trying to simply create a 'Save Button' from selection of basemap in basemap gallery... The only thing missing is I cannot find the 'well known string ids' from the basemaps in the ...
1
vote
1answer
120 views

Uncaught (in promise) TypeError: GraphicsLayer is not a constructor

import Map from "esri/Map"; import MapView from "esri/views/MapView"; import Graphic from "esri/Graphic"; import GraphicsLayer from "esri/layers/GraphicsLayer"; import webMercatorUtils from "esri/...
1
vote
1answer
25 views

Changing order of attribute data in InfoWindow on click of multiple features

I have an ESRI Web App Builer 2.7 stand alone web application where it is required that we are able to control the order of attribute data appearing in an Infowindow on clicking multiple features. ...
1
vote
0answers
12 views

How to show marker on buffer and show the info on click of that marker ArcGIS JavaScript?

First for creating the buffer the below function is used function custombuffer(radial,latt,longt,zoomlevel) { map.graphics.clear(); var pt = new Point(Number(longt), Number(latt), ...
1
vote
0answers
42 views

Limiting size of require statement when using ArcGIS JavaScript API

Sometimes I look back at my code or someone else's and see these crazy long require statements - sometimes, hundreds of lines long. Some of the options for limiting the size of the require statement ...
1
vote
0answers
30 views

Setting Graphics rendering level like ArcMap UniqueValueRenderer in ArcGIS AP for JavaScript

I have to add a Map Layer on Map which I am able render with UniqueValueRenderer. After rendering I want to have certain value matching graphics always on Top if they are over lapping. But I am not ...
1
vote
1answer
48 views

Placing symbol at map extent center

I am using ArcGIS Web AppBuilder (Version 2.13 August 2019). I have a widget, and on button click, I need to place a symbol at the centre of the map. I tried using : selectFeatureService: function (...
1
vote
0answers
33 views

GeoJSON Layer - ArcGIS JS API - External URL with oAuth2.0

I am using ArcGIS JS API and connecting to an external GeoJSON service for my GeoJSON Layer. However, for security reasons oAuth2.0 has been enabled on the service. So now I am lost as to how to ...
1
vote
0answers
35 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 ...
1
vote
0answers
50 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-...
1
vote
0answers
37 views

ArcGIS toScreenPoint not working

I have a lat / long and I'm trying to convert that point to a screen point (the pixel location on the current map). Current version of arcgis-js-api: "3.24.0". Here is my implementation: var point = ...
1
vote
0answers
77 views

ArcGIS JS API Popup does not show properly

This is regarding arcgis js api popups. when viewed in web the popups appear in good way, but when the browser is changed to mobile, the popups submerge below the screen. I would like to know how to ...
1
vote
0answers
294 views

WMSLayer not showing, ArcGIS JavaScript API

I've started to dabble in the JavaScript API for ArcGIS and I am having an issue with a layer I want to display. It's this WMS Layer: In the following code (mostly taken from the ESRI tutorial here), ...
1
vote
0answers
188 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 ...
1
vote
1answer
210 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 ...
1
vote
0answers
66 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 ...
1
vote
1answer
440 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. ...
1
vote
0answers
455 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 ...
1
vote
0answers
444 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 ...
1
vote
0answers
147 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 ...
1
vote
1answer
30 views

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 ...
1
vote
0answers
27 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.

1
2
3 4 5
7