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
99 views

No manifest.json or widget.html file for WAB app

I want wanted to configure a select widget in my WAB code on my local to have only the selectBy Polygon instead of the out of the box SelectBy square settings. So I created a new WAB app with those ...
0
votes
1answer
468 views

Adding API JSON data to ArcMap [closed]

I want to add data from an API (census.gov - https://api.census.gov/data/2016/acs/acs5/variables.json) to ArcMap. How do I do that? If I have to publish it on ArcGIS Online first, I can do that but I ...
1
vote
1answer
56 views

ArcGIS JS - Printing with private layers

I have a map built using ArcGIS JS API v4.8. The map has a basemap and FeatureLayer that are both secured by a custom API and a server-side proxy. I'm looking to make use of the Printing widget, but ...
2
votes
1answer
70 views

Converting lats and longs to centerpoint in ArcGIS API for JavaScript?

I'm working on a angular 2 website using the Arcgis API 3.24. I'm fairly new to ESRI and I was wondering how I could convert a extent that has values of spatialReference : {wkid: 4326} xmax:...
3
votes
2answers
241 views

Add new fields to the FeatureLayer dynamically - arcgis JS API Version 4.7

I've uploaded GeoJSON to Esri cloud and created a feature layer. Now I'm able to plot the featurelayer into my map. I'm trying to color each feature based on measures which comes from my DB. Here ...
2
votes
1answer
218 views

Layer on click event not firing in Firefox but working fine in Chrome,Edge

I am using ESRI JS API 3.24 in my application. I am using following code to open specific URL within the application when click on the layer. var lyrUrl = "Path_To_Layer"; var myLyr = new ...
0
votes
2answers
244 views

Using ArcGIS webmap offline?

I am working with a simple map application (basemap and some points/markers) that is using ArcGIS services. The map was developed about 2 years ago but this year (due to security measurements, ...
3
votes
1answer
189 views

Applying async/await feature to ArcGIS API for JavaScript code?

How do I apply the async/await feature to this code? I need to wait for the reltionshipQuery and forEach to finish before I return contentSpecies. contentSpecies = function(value, key, data) {...
2
votes
0answers
122 views

ArcGIS Javascript API - Limit Map extent to a 100 mile radius

I'm using ArcGIS JavaScript API 3.24 and im displaying the location of a lat/long and displaying features of a feature layer with 50 miles of that lat/long. Is there way to limit the extent to a 100 ...
0
votes
0answers
187 views

FeatureLayer selectFeatures hides the feature only on one layer

I am using arcgis 3.23. I have defined the following SimpleLineSymbol to use to highlight selected features in different FeatureLayers. app.selectionLineSymbol = new SimpleLineSymbol(); ...
1
vote
1answer
128 views

QueryTask doesn't return anything ArcGIs Javascript 3.24

I have a query that I believe I am setting up correctly, but maybe I'm missing a vital property. Does the where clause need to be set? I want to query all features, not a subset of them, so I don't ...
2
votes
2answers
498 views

Setting Min Zoom without base map using ArcGIS API for JavaScript?

How do I set min zoom for map without defining base map(User can't zoom out beyond that label)? Set min zoom with base map is working fine. For example: map = new Map("map", { ...
1
vote
2answers
157 views

ArcGIS JS API 3.x - Update the default selected feature highlight styling when a pop up displayed

I'm displaying a pop up when a feature is selected on feature layer. I'm also highlighting the polygon boundary with a red line but when the pop up appears the highlighter changes to aqua color which ...
0
votes
1answer
503 views

GraphicsLayer not redrawing visually while a Graphic is being dragged (JS API 4.7)

I've implemented a 'route between points' site using the 4.7 JavaScript API. The logic works fine, but I'm having a graphical display issue: when a point is picked up and dragged to a new location it ...
0
votes
1answer
263 views

ArcGIS Javascript API - Update Renderer when a Feature Layer record is selected

I'm using ArcGIS JavaScript API to display a map with a feature layer with multiple records. I wrote code to display a pop up when a record is selected on the map. Is it possible to change the color ...
2
votes
2answers
59 views

Show map service

I am new to ArcGIS JavaScript API and I want to use it in local host mode. I definitely follow Esri support instruction for using of it. I replacement instead of [HOSTNAME_AND_PATH_TO_JSAPI] in init....
1
vote
0answers
28 views

ArcGIS API maximum distance in feature layer [closed]

I use ArcGIS API of JavaScript to show a feature on the map. I use FeatureLayer and set definition Expression but I want to show results with maximum distance, for example show to use only the feature ...
-1
votes
1answer
84 views

Configuring UniqueValueRenderer to work with graphicsLayer

graphicsLayer has a method: setRenderer(renderer) How to set certain graphic elements of graphicsLayer using UniqueValueRenderer? Any example available? Did not find anything like this on Google ...
1
vote
1answer
497 views

Getting map center lat long in ArcGIS API for JavaScript?

How to get map center lat long in arcgis javascript api? I looked the api reference of 'Map' object, only see map.getZoom() There is NO such method map.getCenter()
1
vote
0answers
28 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?
0
votes
1answer
33 views

Basemap widget to access map layers from ArcGIS Server?

Can a basemap widget retrieve a list of map layers from an ArcGIS server instead of ArcGIS Online or Portal? If not, how can I get or build a similar widget?
0
votes
1answer
42 views

Get list of published items on arcgis server

Is there a way to query the list of all features service layers and map layers from ArcGIS Server via ArcGIS javascript?
0
votes
0answers
30 views

Need to set centerAt to true before calling locate() method

I need to allow the user to change the extent while the Locator Widget is tracking. I defined the locator widget with the following code var locateButtonLayer = new GraphicsLayer(); app.map.addLayer(...
0
votes
1answer
113 views

CSVLayer in the TimeSlider using ArcGIS Javascript

I am trying to display the time series data in CSV using the ArcGIS Javascript API. I am working on the sample CSV layer for the timeslider, but i cant get it to show in 1 minute interval.
-1
votes
1answer
46 views

ArcGIS javascript API (3.x) Dynamic Workspace [closed]

I am still learning JavaScript along with the ArcGIS API for JavaScript. I am attempting to load feature classes from a dynamic workspace (with a registered workspace ID) within a simple JS API ...
0
votes
1answer
453 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 ...
0
votes
1answer
38 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
58 views

Firefox zooms to user's location even if locator button isn't clicked when useTracking is true

When I am in Firefox and go to Esri's example at LocatorWidget and add useTracking: true to the geoLocate definition e.g. geoLocate = new LocateButton({ map: map, useTracking: true }, "...
1
vote
0answers
43 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 ...
0
votes
1answer
382 views

Adding features to ArcGIS featureLayer via HTML form and ArcGIS JavaScript API

I am using the ArcGIS JavaScript API 3.24 and trying to update a featureLayer via an HTML input form. Below is my code: <!DOCTYPE html> <html> <head> <meta http-equiv="...
1
vote
1answer
308 views

How to Use WebGL with ArcGIS API for JavaScript 3.24

Starting with 3.24 of ArcGIS API for JavaScript we can opt in to render FeatureLayer with WebGL. According to ESRI This allows to display more data in the map and update the visualization of features ...
1
vote
0answers
53 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
1answer
110 views

ArcGIS InfoTemplate setTitle setContent is not a function

I'm using ArcGIS JS API 3.24 and I got an error saying that Uncaught TypeError: cellInfoTemplate.setTitle is not a function But I'm sure that I have already included esri/InfoTemplate in my require....
0
votes
1answer
51 views

Issue with speed of adding new features to a layer

I have a list of features that I would like to add to a layer. The features are built from a list of objects that contain a number of attributes as well as a set of coordinates. var lines = data; //...
1
vote
0answers
78 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 ...
0
votes
1answer
270 views

Difference between Graphic() or a FeatureLayer() in ArcGIS

I've been adding paths and markers on my maps with the Graphic() service, but I know you can do it all with multiple FeatureLayer(). What is the main difference between doing it all with one or the ...
1
vote
1answer
99 views

ArcGIS returns “IconSymbol3DLayer failed to load” when configuring a PictureMarkerSymbol

I'm trying to add a PictureMarkerSymbol to a SceneView, but I'm getting the following error upon reloading the page: [esri.views.3d.layers.graphics.Graphics3DSymbolLayer] IconSymbol3DLayer failed to ...
1
vote
2answers
302 views

How to reference jQuery in Javascript API 3.23

I'd like to hookup jQuery in my application to use along side with Dojo just to be able to use animations and a few other styling type of things on my map layout, but am unsure of what the best ...
0
votes
1answer
121 views

Can't get Dijit layout to work in Javascript API (BorderContainer/ContentPane)

EDIT: Well this is probably a big part of the issue, it appears my parser is not working. How do I fix that? I'm using the Javascript API 3.23. For whatever reason, when I create a BorderContainer ...
1
vote
2answers
282 views

Set the redirect_uri on ArcGIS JS application for ArcGIS Online WebApp

I am trying to create a javascript application using the ArcGIS JS API. I want to use a webmap created on the ArcGIS online. So, I have set the ArcGIS Online WebApp and register it in order to have ...
0
votes
0answers
60 views

How to check whether given xy coordinate lies inside a web map imported from arcgis online?

I want to know when i have imported a web map to arcgis javascript api from arcgis online then how to check whether a given xy coordinate lies inside that web map. I know there is a method in polygons ...
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 ...
0
votes
1answer
190 views

Geoprocessing Service works in ArcMap but not via Server Manager or JavaScript API

I've published a simple geoprocessing service that takes an uploaded zip file and unzips it. The geoprocessing service was published with "uploads" enabled. I have also enabled "Info" level messaging, ...
1
vote
1answer
124 views

Couldn't change ArcGIS Web App Builder application spatial reference (wkid 102100)

I couldn't change ArcGIS Web App Builder application spatial reference (wkid 102100) to wkid 4326 even though I changed it in the configuration. Is there anywhere else where I have to make changes to ...
1
vote
0answers
362 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
1answer
70 views

Not Able to See Feature Layer With Different Spatial reference On the API Base Map

I know ESRI is using following spatial reference for base maps World_Street_Map (MapServer) Spatial Reference: 102100 (3857) 102100 (3857) Now I have a feature layer which is already published in ...
2
votes
0answers
101 views

How to use FeatureLayer's opacity settings?

I'm pretty new to GIS development and I'm trying to load a FeatureLayer that has opacity set (layer is outlined areas that are color-filled and translucent). However, when the layer is displayed in my ...
0
votes
1answer
42 views

Modifying polygon attribute interactively on web map for public interaction

I am looking for examples or ideas on how to create a web map using esri javascript api for redistricting purposes. On the web map, it would show the school boundaries in smaller sections (similar to ...
0
votes
1answer
181 views

How to include ArcGIS javascript apis ElevationProfile template in openlayers4 application

I developend a small application using openlayers4 javascript library. As per my bussiness requirement I need to add a elevationprofile widjit to display elevationprofile chart for drawpath. I tried ...
3
votes
2answers
602 views

Understanding Promise deprecation warnings in ArcGIS API for JavaScript?

I am trying to update legacy map code to the latest ArcGIS version of 4.6 and noticed this warning in the console when querying a feature layer. [esri.core.Promise] DEPRECATED: then() -- use .when(...