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
345
questions with no upvoted or accepted answers
4
votes
0
answers
351
views
Get Styles for Feature Layer in Feature Collection, Customize Layer List
so I'm using the JavaScript API to customize an ArcGIS web app and I need to take feature layers and group them in the layer list widget. Here's the code I have that does that (in the widget.js file ...
4
votes
0
answers
215
views
How to move a point on a touch screen using esri map, dojo and javascript
I am new to map development. For touch screen devices, I need to add a point on an ESRI map and then move this point to other location on the map and get its coordinates.
4
votes
0
answers
5k
views
Populate an existing popup with an AttributeInspector after RelationshipQuery returns results
Here's the workflow: A user selects a feature layer polygon, views a popup. A link added to the popup will run a RelationshipQuery to view related records. How can I get the RelationshipQuery results ...
4
votes
1
answer
1k
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 ...
4
votes
1
answer
297
views
What would prevent ESRI JSAPI AMD modules from being cached?
I am using AMD style in the ESRI Javascript API (along with the esri application boilerplate: https://github.com/Esri/application-boilerplate-js).
For some reason, the AMD modules from the js.arcgis....
4
votes
1
answer
852
views
How to offset/displace overlapping lines in a web map?
I have a dataset of points representing a To/From status - something like distribution centres and delivery addresses.
When the user clicks on a point I'd like to show the relationships between this ...
4
votes
2
answers
239
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. ...
3
votes
1
answer
552
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">
&...
3
votes
1
answer
281
views
Parameters for ArcGIS REST ".../MapServer?f=jsapi"?
What parameters can be used with .../MapServer?f=jsapi to alter the results, like turning on or off a single layer?
Background:
When browsing an ArcGIS REST Services Directory one of the options at ...
3
votes
1
answer
85
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 ...
3
votes
0
answers
90
views
Rotating non-symmetrical symbols, or avoiding upside down symbols
I have a lovely symbol of a vehicle on a map (as an SVG path). I'd like to show current heading.
Trouble is, cars aren't symmetrical. I am ending up with a lot of vehicles that look like this. Not ...
3
votes
0
answers
289
views
Add Shapefile code - Why all shapefile features added on the same location on map?
I am developing the JS app using 3.15. I have tried this code in my app Add shapefile from the esri samples.
but shapefile features added at the same location on map.If the polygon features it ...
3
votes
0
answers
196
views
Feature layers don't appear in print result?
I have a problem when I print my map, when I display the result I find only one feauture of twenty. the result does't contain all features. I used esri/dijit/PrintTask
verifier: function(){ //...
3
votes
0
answers
441
views
Increase maximum zoom level for a WebTiledLayer in ArcGIS
I am using the WebTiledLayer from the Javascript ArcGIS API to render a custom WMTS source. The WMTS I am using has zoom levels going from 18 to 21, however I cannot zoom in further than what appears ...
3
votes
0
answers
911
views
High-DPI printing with ArcGIS API for JavaScript and esri.dijit.Print?
I've got cached tiles for all map layers at various zoom levels, and would like to print at DPI higher than the default (around 96) by using tiles from a deeper zoom level. It doesn't matter if map ...
3
votes
0
answers
315
views
Adding Edit button to ArcGIS Javascript template?
We've been able to successfully download the Find, Edit, Filter template, customize the configurations, and host it on our own server but here is the issue we are facing now.
We're looking to use ...
3
votes
0
answers
239
views
Automatically update the result of a QueryTask
I have developed a application using the ESRI JS API to allow users to create and edit features in a web map. I have used the QueryTask to create summary statistics to report back to the user on ...
3
votes
0
answers
1k
views
Can I highlight a selected feature using the ArcGIS REST API only?
I have a .Net web application with embedded maps, using the Arcgis javascript API. For non-interactive maps, I thought I would just make calls using c# to the REST endpoints. This works fine for ...
3
votes
0
answers
192
views
Cannot use published zonal stats geoprocessing service (Arcgis Java API)
I am primarily following this tutorial.
Here is the signature for the service used in the sample.
It is slightly different than the one I have had any success with, though if I recall correctly the ...
3
votes
0
answers
724
views
View attachments in popup when using the editor widget
I am using ArcGIS javascript API to construct an editor app for a layer. I am using the default out of the box editor widget to edit and display data for an app. The layers I am editing contain ...
3
votes
0
answers
200
views
ArcGIS Javascript API - Looking For Styled Navigation Plugin/Widget
I am looking for a fancy navigation plugin to use with the ArcGIS Javascript API. Something along the lines of the Navigation Widget (see image below) available in the Flex Viewer would be great.
...
3
votes
0
answers
2k
views
How to access ArcGISDynamicMapServiceLayer with credentials (token)
I know I simply need to append a token=XXX to the export query string but how, in code, do we initialize "esri/layers/ArcGISDynamicMapServiceLayer" to use credentials? In my case I only want to ...
3
votes
0
answers
4k
views
Simple Dojo Pop Up Window
I'm working on my first web application using the JS API and am looking to add a simple tabbed pop-up window that can be called on the load of the page that can display map instructions and a general ...
3
votes
0
answers
1k
views
How to create a custom Attribute Inspector for mobile app using the ESRI JS API
I am making a mobile version of a JS web application I developed. I'm noticing though that the AttributeInspector widget by default uses standard dojo/form controls. This means that the form within ...
2
votes
0
answers
88
views
Squared buffered polygon based on polyline
I'm using ArcGIS Javascript API to allow users to draw polylines and polygons onto a map. Now when a user draws a polyline, this should result in a polygon surrounding the polyline at a fixed width:
(...
2
votes
1
answer
727
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 ...
2
votes
0
answers
113
views
Using GeoJSON Services in Arcade Expression
I am trying to use an Arcade expression with GeoJSON services in a map using the ArcGIS Javascript API. The intent of the Arcade expression is to return a count of lakes that intersect a county that ...
2
votes
0
answers
343
views
ESRI IdentityManager.registerToken unable to register Multiple servers
I have multiple secured service that needs to be added to my map for which I need to register multiple servers using ESRi IdentityManager.registerToken method
IdentityManager.registerToken({
...
2
votes
0
answers
102
views
Esri mapview USGS earthquake trigger popup from outside of map
I am trying to show some recent earthquake information in Esri maps using USGS earthquake API data. I am able to fetch the list from API data and also I got the map with those listed information ...
2
votes
0
answers
100
views
Issues with ArcGIS Web AppBuilder creating custom widget by inheriting existing widget
I am trying to extend the inbuilt Select widget in the ArcGIS Web AppBuilder for Desktop using dojo. According to the documentation by ESRI we always inherit the 'dijit/_WidgetBase' module to create ...
2
votes
0
answers
153
views
How to add GeoServer vector tiles in ArcGIS using ArcGIS JS API
I am trying to display vector tile layers from GeoServer in ArcGIS using JavaScript API. I have referred this.here they have used tegola service but i want to add "application/x-protobuf;type=mapbox-...
2
votes
0
answers
112
views
Adding ArcGIS JSAPI code to Existing Angular app?
I am new to web dev. coding. I managed to scrape together some code for a simple web GIS app. using ArcGIS Javascript API version 3.xx. The ArcGIS JSAPI app has some simple functionality like a click ...
2
votes
1
answer
190
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
1
answer
802
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.
...
2
votes
0
answers
188
views
Feature Layer not showing up when adding an automatic rotation function to SceneView
I am building a simple web application using the ArcGIS API for JavaScript (4.x). I created a map with an associated FeatureLayer and then a SceneView and everything works fine. However, I'm trying to ...
2
votes
1
answer
38
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 ...
2
votes
0
answers
29
views
Using ArcGIS API for JavaScript 3,X Directions widget?
Can I select only one country in the Directions widget in ArcGIS API for JavaScript 3,X?
For example: I want to select only UK. If the user writes Spain he will find nothing.
2
votes
0
answers
235
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 ...
2
votes
0
answers
34
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?
2
votes
0
answers
65
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 ...
2
votes
0
answers
160
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 ...
2
votes
0
answers
255
views
Handling "exact" scale close to layer's minScale/maxScale in ArcGIS js api
We deliver web apps for our customer based on common platform which in turn is developed on top of ArcGIS JS API 3. Customers publish their map layers to get whatever maps they need.
Customers have ...
2
votes
0
answers
69
views
wkid error using buffer GeometryService - ArcGIS JS API 3.2
First of all, going to this url for the geometry service referenced in the documentation shows it's been deactivated so I instead chose this url - both with /GeometryServer and /GeometryServer/buffer.
...
2
votes
0
answers
66
views
Supported Interfaces: REST SOAP
I am trying to create a simple webmap and I want to add the layers of a map that I published to the GIS server. But the rest URL from the published map do not display these layers. Anyone know what ...
2
votes
0
answers
417
views
Map disappearing when zoom in or panning using ArcGIS API for JavaScript 3?
I am using ArcGIS API for JavaScript 3.19.
I have added a dynamic layer without a base map, without the extent, its working , i can do map activities . But when i added extent in the map while ...
2
votes
0
answers
822
views
ArcGIS JavaScript API: SEC7127: Redirect was blocked for CORS request after submitting geoprocessing job
Using the ArcGIS for JavaScript API 3.19, I'm submitting a job to the ExtractData geoprocessing service at:
https://analysis7.arcgis.com/arcgis/rest/services/tasks/GPServer/ExtractData/submitJob
The ...
2
votes
0
answers
131
views
Javascript syntax error on print map, only when feature count > 8000 (updated)
I am using arcgis jsapi v3.10, and esri/dijit/Print for my map printing.
I am encountering an very weird bug where the browser return:
SyntaxError: Unexpected token <
at Object.b.fromJson (init....
2
votes
0
answers
40
views
ArcGIS layers not scaling when attribute table is open
I've recently discovered an issue in Chrome and I'm wondering if anyone else has had this issue or if anyone can tell me how to fix it. Basically, when I zoom in and out on my map when the ...
2
votes
1
answer
407
views
Cannot set map extent in ArcGIS JavaScript API 3.17
I have my map set to a custom projection SVY21/3414
This map service only supports Tiled and not Dynamic.
I manually convert the projection coordinates using proj4 and it works fine for my graphics.
...
2
votes
0
answers
2k
views
Unable to perform applyEdits in Feature Service
I am facing two issues with applyEdits through JavaScript API.
1. Unable to perform applyEdits
When I perform ApplyEdits on feature service, I get the error "Unable to complete operation". When ...