Questions tagged [arcgis-maps-sdk-javascript]
The ArcGIS Maps SDK for JavaScript was formerly known as the ArcGIS API for JavaScript
425
questions with no upvoted or accepted answers
5
votes
1
answer
1k
views
how to disable duplicate items in the legend for ArcGIS JavaScript API
I have a problem with duplicate items in the legend panel!
Can anyone help me?
This is my feature Layer with popup info:
// Feature Layer
var msFeatureLayer = new esri.layers.FeatureLayer("...
4
votes
1
answer
308
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. ...
4
votes
0
answers
394
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
256
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
2k
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
345
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
1k
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 ...
3
votes
1
answer
2k
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 ...
3
votes
1
answer
682
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
155
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 ...
3
votes
1
answer
473
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 ...
3
votes
1
answer
323
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
0
answers
47
views
Can't access resources through JSAPI
Simply I want to upload a tiny csv file to a buffer Geoprocessing service published through ArcGIS Server 10.4.1. The problem ,however, is that I can't access any file in my server or an external ...
3
votes
1
answer
129
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
96
views
ESRI Js api 4.2: FeatureLayer does not draw all features in extent
I'm upgrading a web application from ESRI js 3.19 to 4.2, but I'm experiencing problems with my FeatureLayers.
The data is coming from an ArcGIS Server 10.3 and the following restrictions are in ...
3
votes
0
answers
102
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
1
answer
470
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.
...
3
votes
0
answers
296
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
216
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
453
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
1k
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
324
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
245
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
748
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
202
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
365
views
Create Extent to use in mapView.goto
I would like to use the goTo() method of the mapview, and pass it an Extent that I construct in the code.
I created the extent by:
const extent = new Esri.Extent({
xmax: maxX,
xmin: minX,
...
2
votes
1
answer
347
views
ArcGIS API GraphicsLayer is not visible on map
I'm creating an onClick eventhandler to create a point on every click on the map, but the Graphics layer is not visible;
Has anyone else encountered this? Is there something special I'm supposed to do ...
2
votes
1
answer
204
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
664
views
Are there any examples or tutorials showing Branch Version editing with ArcGIS Server JavaScript API?
I am trying to implement branch versioning in an application that I'm building using the ArcGIS Server JavaScript API.
I found a blog post showing how to edit branch-versioned data in ArcGIS Pro, and ...
2
votes
1
answer
1k
views
Uncaught (in promise) TypeError: GraphicsLayer is not a constructor
import Map from "esri/Map";
import MapView from "esri/views/MapView";
import Graphic from "esri/Graphic";
import GraphicsLayer from "esri/layers/GraphicsLayer";
import webMercatorUtils from "esri/...
2
votes
0
answers
142
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
219
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
1
answer
1k
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
222
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
42
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
317
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
370
views
Workaround for no point clustering in ArcGIS Javascript API 4.7
I'm working with the ArcGIS Javascript API v4.7 and I've run into a roadblock. I have several points on my map with the same coordinates. Therefore they show up exactly on top of one another with no ...
2
votes
0
answers
78
views
Change Order of Features in Popup with ESRI ArcGIS Javascript API version 4
I am using version 4.5 of the ESRI ArcGIS Javascript API with a MapImageLayer.
I'm setting popup templates on each layer.
The problem is that, when showing the Popup following a click in the map, if ...
2
votes
0
answers
35
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
213
views
ArcGIS JS API join ArcGIS Online layers
I am attempting to join 2 layers from the same ArcGIS Online service together, using ESRI's limited sample for MapImageLayer. I would like to join the first [ID: 0] and second [ID: 1] layers in my ...
2
votes
0
answers
68
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
176
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 ...
2
votes
0
answers
242
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
318
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 ...