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
1
vote
2answers
138 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
459 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
234 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
57 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
27 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
79 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
444 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
32 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
29 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
105 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
43 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
418 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
37 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
57 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
350 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
293 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
51 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
100 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
50 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
74 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
226 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
95 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
279 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
106 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
248 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
59 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
37 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
174 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
110 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
336 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
83 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
164 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
582 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(...
0
votes
1answer
143 views

asynchronous execution javascript dojo (return a variable result of a query)

I would like to know if it's possible to return a variable in a function after finding the result in a queryTask. Apparently this is an asynchronous execution but, to be honest, I really need to ...
0
votes
1answer
57 views

why feature hides in map after move it?

I have a function that allows move a point by angle and distance The problem is that after move the point, this doesn't show in map: Sometimes the line also disappears This is a summary of the code ...
0
votes
0answers
29 views

ArcGis JS: Radius of circle created by Editor Toolbar

The Editor class has this option to show the toolbar (toolbarVisible:true). I want to modify the toolbar's "draw-end" event so I can control the radius of the circle. The toolbar has a 'circle' ...
1
vote
1answer
31 views

Strange Polygon Shape Rendering in ArcGIS JavaScript API 3.22

When I upload a shapefile using the existing WAB Geoprocessing widget Shapefile uploader. Below is the screenshot. What could be the cause of the problem? The image below was supposed to show the ...
0
votes
1answer
114 views

Why is my function hiding all of my features?

I'm making a map, using ArcGIS javascript API, that has a filter tool that filters some polygons by habitat type. When the user selects a habitat type, only features of that habitat type should be ...
0
votes
1answer
118 views

Create image from ESRI VectorTileServer using script

I have service from ESRI VectorTileServer https://tiles.arcgis.com/tiles/P3ePLMYs2RVChkJx/arcgis/rest/services/Esri_Childrens_Map/VectorTileServer/tile/{z}/{x}/{y}.pbf Map example: https://tiles....
1
vote
1answer
256 views

Esri js api 4.6 fires animation event on fast drag

We are having a problem with fast drag event on the new esri js 4.6 api. When a user drags the map too fast, the map extent's changes rapidly. I've detected that on a fast drag, there's an animation ...
1
vote
1answer
115 views

Authorize app but also sign in user into ArcGIS online

I request authorization for my app through OAuth as described here: https://developers.arcgis.com/documentation/core-concepts/security-and-authentication/browser-based-user-logins/ The sign in dialog ...
1
vote
1answer
87 views

How to add a few points to an external esri map using iframe and javascript

There is an external map on : https://gis.apcrda.org/lps/index.html i have iframed it using this code in my html page :- <iframe id="crdamap" width="500" height="...
0
votes
1answer
426 views

message: “string.substitute could not find key \”loadingState\“ in template” esri javascript 3.23

I am trying to add a measure widget from the esri samples and I get the following error. I am using boostrap.css and I am wondering if this has an effect on widget loading. <div class="container-...
1
vote
1answer
236 views

Extending line by specified distance in ArcGIS javascript

I have a web application where I need some functionality to draw two points that is the start of a line, and then extend that line to a given length (that is given by a number in meters). I know how ...
0
votes
2answers
167 views

Client-side 3D surface generation in ArcGIS JS API

Is there any way to create some sort of 3D surface (mesh, TIN, elevationLayer) from contour lines on the client side with ArcGIS JS API? Or alternatively edit a hosted 3D surface (any format)? In our ...