Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
The ArcGIS Maps SDK for JavaScript was formerly known as the ArcGIS API for JavaScript
0
votes
1
answer
551
views
Loop through attribute ids of FeatureLayer
Would there be a way to loop through the definitionExpression ids without having to manually specify?
I have tried to console log SeismicData, but for some reason I am not finding a collection of ids …
0
votes
1
answer
27
views
Specific div elem for click event within view.when/view.on
view.when(function(){
view.on("click", function () { doSomething = !doSomething;});
});
The above works as a global click event. HOWEVER, I am trying to specify a specific div elem not a g …
1
vote
1
answer
473
views
get a PolyLine path to go to center of screen
I am trying to draw a polyLine to the center of the screen (as the second path, point B) ... I tried referencing the below to get center: any pointers?
coordinatesBx = map.extent.getCenter().getLat …
2
votes
1
answer
2k
views
Update z-index of new graphic layer
I am creating/drawing a new polyline successfully; the only problem is it's going under my other graphic layers. Is there any ability to set the z-index of this to bring it above the over layers? I re …
0
votes
2
answers
154
views
Resetting all layers one time, when click is fired
Within a click function, I have the below code:
home.addEventListener('click', () => {
myAPP.mapview.map.layers.items.forEach(item => {
item.visible = false;
});
// …
1
vote
1
answer
797
views
How to get base map ids from basemap gallery ArcGIS JS (i.e. topo)
Context: I am trying to simply create a 'Save Button' from selection of basemap in basemap gallery...
The only thing missing is I cannot find the 'well known string ids' from the basemaps in the basem …
0
votes
1
answer
312
views
Change order of polygons within a feature layer? (arcgis js 4.xx)
I have tried using the below in my initial query, and query right before drawing my polygons with class breaks.
query.orderByFields = ["Shape__Area DESC"];
However this did not seem to do anythin …
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/geom …
1
vote
1
answer
152
views
polyline second path to draggable div
How can I simply draw a line between two lat long coordinates values on a map using ESRI ArcGIS JS API?! This most basic task is taking a gruesome amount of effort.
I am able to draw a line with the …
4
votes
1
answer
699
views
polyline path to follow a draggable modal
Here is what I am trying to do: on click (right now just click
anywhere on the map) will draw the line and display a drag-able
modal pop-up, I have static coordinates set for the start point
(which …
0
votes
1
answer
616
views
Possible to loop through and turn off ALL layers?
The below finds my layer and shows visible property in the console, when I toggle it there from 'true' or 'false' it changes.
myApp.mapview.map.findLayerById('cool_layer');
But when I run the be …
1
vote
1
answer
189
views
Programatically toggle Basemap labels
I can toggle the active basemap programmatically using the code below, but how can I also include a widget to show or hide the basemap labels programmatically?
myApp.widgets.basemapManager.basemapGal …
0
votes
1
answer
1k
views
Convert pixel x,y position on map to latitude and longitude
My map takes up 100% width and height of the browser screen.. I have a draggable div that is super imposed over the map, I am am capturing this divs position using offset(); to get the pixel top and l …