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
1answer
46 views

ArcGIS ArcGISDynamicMapServiceLayer, setExtent

I have a layer made with ArcGISDynamicMapServiceLayer like this: return esriLoader.loadModules([ 'esri/layers/ArcGISDynamicMapServiceLayer', 'esri/layers/ImageParameters', 'esri/InfoTemplate' ])...
0
votes
1answer
20 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
2answers
452 views

How to apply a layer definition with a spatial query to a Dynamic layer?

Using the ArcGIS Server JavaScript API, it's possible to specify an attribute query in the form of a layerDefinition against a Dynamic layer. For example, the following query will restrict the layer ...
0
votes
1answer
39 views
+50

ArcGIS JS 4.15 Cluster Popup navigation for Cluster

I would like to migrate from ArcGIS JS API 3.x to 4.16. One other feature I am using from 3.x version is clustering. In 3.x is it allow user to click on Cluster marker and navigate between all ...
0
votes
1answer
21 views

In ArcGIS Web appbuilder widget, how can i use a variable what is declared in another widget file?

In Edit widget, i modified the RelatedRecordsEditor.js to automatically upload input fields with data like webMapId. var mapid=dijit.byId("dijit_form_ValidationTextBox_1").attr("value"); ...
6
votes
1answer
541 views

ESRI Javascript Web Application Hosted on Amazon Web Services

I have just deployed my first web application to Amazon S3. This web application is a simple web mapping app using the ESRI Javascript API and consuming a web map from ArcGIS Online. I have been ...
0
votes
0answers
15 views

PopUpTemplate displaying at wrong place

When I click on the point in mapImageLayer the popup is pointing/displaying at wrong place. var mapDataLayer = new MapImageLayer({ url: sArcgisURL, sublayers: [ { id: sSelectedMapLayer,...
0
votes
1answer
30 views

init.js:36 GET https://js.arcgis.com/3.28/esri/WebMap.js net::ERR_ABORTED 404

I got above error in my browser developer tools window. This happened when I added esri/WebMap to my widget.js file of custom widget I was building.
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 ...
0
votes
1answer
28 views

PopupTemplate Content strips HTML Data-* Attributes in ArcGIS API for JavaScript 4.16

Working with the ArcGIS JavaScript API version 4.13 and was able to build popup templates that included data attributes to work with the Semantic UI library for their Tab module (https://semantic-ui....
3
votes
1answer
64 views

How to use a .tpk or GeoTiff file as a Google Maps Overlay

I am building a webapp using Google Maps, and want to have an image overlaid on top of the usual Map that represents Light Pollution data. I don't have ArcGIS myself, but I was able to download a 400 ...
0
votes
1answer
28 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 ...
1
vote
1answer
51 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 (...
0
votes
2answers
164 views

Min and Max for each image of NDVI to calculate Em and LST

I am working on my script to calculate LST for all the images in the collection separately and then use the calculated LST to estimate Mean Annual LST. I have calculated NDVI for each image, and the ...
3
votes
2answers
140 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
vote
1answer
26 views

Converting GeoJSON (or shapefile) data to FeatureLayer

I am creating an interactive map using ArcGIS and React. Presently, I am creating a GeoJSONLayer. However, I'm now trying to use a UniqueValueRenderer for some of the layers. From the docs, it appears ...
0
votes
0answers
11 views

Change order of polygons within a feature layer? (arcgis js 4.xx)

I have tried using the below in my initial query, and query right before drawing my polygons with class breaks. query.orderByFields = ["Shape__Area DESC"]; However this did not seem to ...
2
votes
1answer
232 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
1answer
32 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....
0
votes
1answer
83 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
266 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 ...
0
votes
1answer
32 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 ...
0
votes
1answer
44 views

Responsive Esri app: not sure how to collapse sidebar to button

Currently, I have a sidebar with text. How do I collapse it to a button when the screen size is below a certain pixel width? Here's the app on Code Pen: Click for App. This sample code does what I ...
1
vote
1answer
31 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
0answers
14 views

How can i add time series to FeatureLayer Arcgis

I converted shape file(geojson) to ArcGis Json via terraformer-arcgis-parser. It will render the map but how can i add a csv or json file to the FeatureLayer in order to use TimeSlider? let ...
3
votes
1answer
604 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 ...
1
vote
1answer
28 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. ...
0
votes
1answer
145 views

Update z-index of new graphic layer

I am creating/drawing a new polyline successfully; the only problem is it's going under my other graphic layers. Is there any ability to set the z-index of this to bring it above the over layers? I ...
0
votes
0answers
31 views

Drawing line in reference of Geographic point (WGS84) using X,Y in meters and ArcGIS API for JavaScript

I have a CAD drawing (lines are circles) which I am trying to draw on an ArcGIS Map using JavaScript API. I have a base reference Geographic point (WGS84) and North Angle in my source drawing, the ...
0
votes
0answers
19 views

ESRI proxy for Python

I have used ESRI Proxy in multiple projects which were developed using ESRI JS API and Java backend. Now I have to use secured services in a Django project. I am searching for similar proxy but it is ...
1
vote
1answer
216 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 ...
0
votes
0answers
11 views

How to get fields of subLayer of MapImageLayer?

I have MapImageLayer which has sublayers. I need to show a popup of sublayer feature and popup should contain all attributes(default popup content) with a custom title. Before 4.12 version we can use ...
0
votes
1answer
38 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 ...
1
vote
1answer
61 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 ...
4
votes
3answers
12k views

Center And Zoom function using ArcGIS API for JavaScript?

I'm trying to insert x, and y coordinates manually through input text, and center the map and zoom it to that point. I have this code: var x = $("#x").val(); var y = $("#y").val(); var point=new esri....
2
votes
1answer
98 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
0answers
20 views

Adding extern SOAP libray to ArcGIS Widget

I am trying to use tinysoap library (https://github.com/mhzed/tinysoap) in an ESRI widget. I am able to use this library in ESRI WebAppBuilder, as I show on the following sample code (real code ...
0
votes
0answers
20 views

Display image from attribute table in infotemplate

I have added image in attribute table. It looks like this: Now I want to display this image into InfoTemplate. so far I am doing like this: var content = "<b>Name</b>: ${name}" +...
1
vote
1answer
20 views

Update is not a known function on Bounds in version 3.32 of Javascript API

The typescript code below compiles, but bounds is getting a runtime error suggesting that update is not a known function. var bounds = self.esriHelper.requireModule('esri/geometry/Extent'); bounds = ...
0
votes
1answer
114 views

Turn certain layers on and off in ArcGIS Web AppBuilder Developer Edition

Does anyone know a way in ArcGIS Web AppBuilder Developer edition that I can create a button or a link that turns certain layers on or off? For example, if I have three layers [1] Homes [2] Rivers ...
0
votes
0answers
19 views

ArcGIS JavaScript API for OGC WMTS vector tiles

Are there the plans to support OGC WMTS vector tile in ArcGIS JavaScript API? As I understand esri adopted mapbox format while opengis.net developed a format around a classic WMTS: kind a WMTS, but ...
0
votes
1answer
441 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
38 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 ...
0
votes
1answer
50 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 ...
0
votes
2answers
158 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
0answers
14 views

Add items to map, collectively, one at a time, per attribute ID

I have successfully been able to filter, for instance shakemaps, by attribute id - I have successfully achieved this multiple ways - but all ending with the same problem. With the where filter ...
0
votes
1answer
36 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....
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
34 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 ...
2
votes
1answer
123 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
2 3 4 5
40