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
3
votes
5answers
4k views

Exploding clusters of overlapping points in ArcGIS API for JavaScript

In my map application built on the ArcGIS API for JavaScript there are a number of points that share a lat/long. I need a way to allow the user to see all of the points at a specific location by ...
2
votes
1answer
36 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 ...
0
votes
1answer
47 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 ...
1
vote
1answer
42 views

Looping through all FeatureLayers in map using ArcGIS API for JavaScript

I have featurelayers and I need to loop through all my featurelayers (in my map), to apply the Editor widget "esri/widgets/Editor", to the layers in my map (uploaded from ArcGIS Server ...
2
votes
1answer
36 views

How to build only custom AMD modules with dojo build system?

Over the last few years, my team has developed a web app with web maps using ArcGIS JS version 3. We opted to use the CDN (script src https://js.arcgis.com/3.36/) instead of hosting the entire SDK ...
0
votes
1answer
17 views

Mouse-over event behavior problem when browser window is in focus

I have an ESRI Web Appbuilder web app with custom widgets and am having a weird issue when trying to register mouse-over events on a feature layer. I noticed that when the Chrome Dev Tools are closed ...
1
vote
0answers
65 views

Error loading dojo file locally: “Loading failed for the <script> with source …”

I'm attempting to add ArcGIS maps to a website that's on a restricted network (and therefore needs to work offline). I've been trying to get the ArcGIS ESRI maps running offline, but I'm not sure how ...
0
votes
1answer
93 views

How to Specify Out Unit to Be in Decimal Degree in ArcGIS JS API

I am using a Map service on ArcGIS Server 10.4.1 which is in this format Spatial Reference: 102100 (3857) Single Fused Map Cache: false Initial Extent: XMin: -9819759.37726215 YMin: 5128008....
2
votes
1answer
461 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 ...
2
votes
1answer
460 views

Making a popup (which is a DIV containing a panel consist of textbox and a button) to float within the map DIV only

The HTML for the popup is: <div id="commentBox" class="commentBox"> <div class="panel panel-default"> <div class="panel-body"> &...
0
votes
1answer
35 views

view.map.loadAll is not a function (Arcgis API for JavaScript)

I wrote this code (below) to use the Editor widget of Arcgis API for JavaScript, knowing that before this code I defined my featurelayers (links to shapfiles uploaded on Arcgis server online Arcgis ...
1
vote
1answer
277 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
1answer
51 views

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

I have an Esri Web AppBuiler 2.7 standalone 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. For ...
0
votes
1answer
630 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, ...
0
votes
1answer
222 views

Multiple queries on feature layer ArcGIS JS API

I have been stuck with an issue, that I thought will be simple to fix. I am developing a web application (with ArcGIS Javascript 4.15) where I can click on a property. From the geometry of the ...
0
votes
1answer
47 views

Attaching dojo events in ArcGIS Javascript API 3.29

I am trying to do same job for two different events on map using dojo on() function. map.on('extent-change', function (event) { //code goes here } and map.on('zoom-end', function () { //same code ...
4
votes
2answers
1k views

How to control the rendering priority/order of feature layers?

I am displaying polygon, line and point feature layers on a button click event and adding layers in order based on their geometry type, e.g.: polygon -> line -> point. In certain cases layers are ...
1
vote
1answer
154 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 ...
0
votes
1answer
44 views

Publish a feature service from a shapefile in ArcGIS Online using JavaScript

I have created a custom HTML page for data extract analysis using ArcGIS API, the API save the shapefile in zip format by default in my ArcGIS portal, so I just want to publish the shapefile(.zip) as ...
1
vote
2answers
390 views

Placement of Save Button in ArcGIS Javascript AttributeInspector dijit

I am having a problem with an AttributeInspector that I noticed also exists in an online sample here: http://developers.arcgis.com/javascript/samples/ed_attribute_inspector/ If you click on a polygon ...
1
vote
0answers
125 views

ESRI ArcGIS plot point

I have created a Java function to plot the points on the map, and I need to pass the x-y coordinates and the taskevent as the parameters. I would like to ask what should be the input parameter for ...
0
votes
2answers
267 views

ArcGIS API JavaScript error to add layer

I'm developing a custom widget for WebApp Builder. The widget calls a Geoprocessing service and the result must be added to map, but when I call a function this.map.addLayer() I receive the error ...
0
votes
1answer
44 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
54 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 ...
3
votes
1answer
70 views

Panning to Point in WrapAround180 past initial extent in Arcgis Javascript API

With my map set to WrapAround180: true, I have a icon list outside of the map that pans to a location on the map when you select an icon in the list. If you are outside of the initial extent and ...
0
votes
1answer
38 views

ArcGIS JavaScript query task not returning feature

I am using query task to do a attribute query for features with a where clause. I have verified that the specific layer I am querying has the field LK_ID_NUM. My query task do not return an error, but ...
2
votes
2answers
359 views

What is the proper “title” property for the Terrain with Labels Basemap?

EDIT: Actually this posted link ended up helping me quite a bit but don't mark it as duplicate because the problem I had using it stemmed from needing to define the map before defining the ...
2
votes
1answer
158 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
0answers
33 views

Added time layer doesn't show

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

ArcGIS API GraphicsLayer is not visible on map

I'm creating an onClick eventhandler to create a point on every click on the map, but the Graphics layer is not visible; Has anyone else encountered this? Is there something special I'm supposed to do ...
0
votes
1answer
39 views

Overview map not syncing with main map

I have created an overview map widget for my web app using arcGIS API for Javascript version 4.17. My overview map is separate from my main map as I don't want to bring in all the layers from my main ...
1
vote
1answer
438 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/...
0
votes
1answer
65 views

Align 2 maps in ArcGIS JS API and React

I am trying trying to build a web app using React. I have been using [this example][1]. I would like to have 2 maps aligned horizontally, Something that looks like [this way][2]. In the sandbox ...
0
votes
1answer
54 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 ...
0
votes
1answer
219 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 ...
0
votes
0answers
15 views

multipleDefine error when loading ArcGISImageServiceLayer

This error is becoming a major problem and I am completely mystified on what to do about it. I already addressed the issue with the arcgis javascript loading before the JQuery libraries, so I know ...
1
vote
1answer
631 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
11 views

Getting Uncaught SyntaxError: Unexpected token { error when using downloaded ArcGIS API in PC without internet)

I am trying to implement ArcGIS API offline. I have downloaded the zip file from the site and followed the following changes, changed the baseUrl to my Apache IP copied the files to /var/www/html/ and ...
0
votes
1answer
31 views

Adding feature layer in ArcGIS

I am trying to add client-side feature graphics to a feature layer in a map with a roadmap baselayer using the following code, but nothing seems to appear on the map: function CreateFeatureLayer() { ...
1
vote
1answer
1k views

ArcGIS JavaScript setRequestPreCallback is partially working?

I have an api sitting in front of AGS that requires it's own authentication. I am using setRequestPreCallback as stated by the ESRI docs. In the image below, you can see that the first 2 requests are ...
0
votes
1answer
284 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
18 views

Web AppBuilder Developer Edition - on(someNode, “click”, someFunction) Executes N Times When Widget Opened for the N-th Time

I have an on(someNode, "click", someFunction) in the onOpen() of Widget.js. The problem is that if the widget is closed then reopened (2nd open), the click event on someNode fires twice. If ...
0
votes
1answer
2k views

ArcGIS Javascript Map loads but doesn't display

I just started creating a very simple mobile GIS app using ArcGIS Javascript API, and I have experiencing a very peculiar issue. When the app loads, the basemap is white (not visible) until you use ...
1
vote
1answer
103 views

Getting email addresses of pointers after selection with JSON or array and ArcGIS API for JavaScript?

I am trying to create a map where I can create a selection area, and get info of all graphic pointers under it, I tried to modify with following example, but they are using web service and queries, ...
0
votes
2answers
814 views

ARCGIS-JS-API : featurelayer.queryFeatures() not returning results

I have a feature layer that is hosted on ArcServer. It has a field called document_num that is a string. I have a table of which one of the columns is a link that lets the user "view on map". When ...
3
votes
1answer
1k views

ESRI Javascript API QueryTask error handling

I'm struggling to find the proper way to handle errors in a QueryTask. Particularly if the user clicks outside the feature layer. My current QueryTask looks at a field (bare_earth) populated with ...
2
votes
1answer
176 views

CORS issues when trying to access NASA layers from ArcGIS JS API

I am trying to bring an ImageMapLayer into an ArcGIS JS API project. The layer is here: https://maps.disasters.nasa.gov/ags04/rest/services/ca_fires_202008/sentinel2/MapServer I am creating the layer ...
0
votes
1answer
103 views

How to hide feature layer outside of boundary feature layer using ArcGIS JavaScript API?

I am developing JavaScript application. I have two feature layers one for features with point symbol and one for boundary with line symbol. I have added these two layers on map like below image. I ...
0
votes
0answers
30 views

Trying to add user’s Portal content to map with ESRI API 4.19. Function Errors

Why is the addLayer() function is not working in my code? In the console it says it is not defined. I am a bit new to JS and self-taught coder. So please bear with me. I can only get the addLayer() ...
0
votes
1answer
826 views

Selecting Polygon Feature using ArcGIS API for JavaScript?

I used ArcGIS JavaScript API 3.25 for developing. I want to select polygons within 1km radius. so I used a sample code that esri provides. But it works only for point features. I want to use that ...

1
2 3 4 5
40