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

ArcGIS JS API 3.x: How to open a Info Window programmatically

I'm working on a geographic application using the ArcGIS JavaScript API 3.x. I am looking for a method that runs when a user clicks on suggestion Menu in the Search Bar for showing a specific feature ...
0
votes
1answer
49 views

Nothing is highlighted using print service

I have an Esri map with print service enabled. I would like to print a map based on objectid of a feature layer. The following is my Web_Map_as_JSON. { "mapOptions": { "showAttribution": ...
0
votes
1answer
369 views

Using Vector Tile Maps Offline in a Hybrid App (ArcGIS API for JavaScript)

I will create a hybrid map by using ArcGIS API for Javascript. I want to use my own hosted vector tile basemap as offline. What do you advise? Are there any ways to use ESRI Vector Tile Package (....
0
votes
1answer
142 views

ArcGIS Server - Print Map Task result retrieving

I have an application where i'm printing a map on one page and would like to display the result in a PDF when the user goes to the summary page. The print task takes about 4-5 seconds to return the ...
0
votes
1answer
26 views

How to get the most current data from a Temporal Feature Service?

I have created a Temporal Feature Layer on our ArcGIS Server, which records all the locations, along with timestamp & other attributes of moving vehicles. I used the TimeSlider Sample, to create ...
-1
votes
1answer
26 views

What is the process for using data in various projections with the ESRI JS API v4.8?

We have an extensive collection of GIS data sitting in ArcSDE, exposed via map and feature services, and already in a regional (projected) coordinate system. We are starting to explore building web ...
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
127 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
744 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
99 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
77 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
426 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
338 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
400 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
281 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
149 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
265 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
164 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
764 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
291 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
701 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
424 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
66 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
29 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
116 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 ...
2
votes
1answer
757 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
29 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
35 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
43 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
31 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
135 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
64 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
626 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
49 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
59 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
49 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
490 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
372 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
59 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
152 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
66 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
123 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
431 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
111 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
417 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
181 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
405 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
64 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
267 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
3 4
5
6 7
39