|
POST
|
If it's returning -1, that means that there is no match for the findIndex function. Here's an example using a FeatureLayer and GraphicsLayer: https://codepen.io/annefitz/pen/ExVKzxV
... View more
04-17-2020
11:17 AM
|
2
|
1
|
4612
|
|
POST
|
Hi Cam, If you are trying to move the graphicsLayer above the other layers within the map, you could try using the map.reorder(layer, index) method. If you are just trying to move that specific graphic within your graphicsLayer, you could try using graphicsLayer.graphics.reorder(graphic, index). Let me know if this works for you! Thanks, Anne
... View more
04-16-2020
01:35 PM
|
2
|
3
|
4612
|
|
POST
|
Hi Rajni, You can use the default zoom widget, but set the layout: "horizontal", and then add it to the bottom-right, like this: var view = new MapView({
container: "viewDiv",
map: map,
ui: {
components: ["attribution"] // removes default widgets except for attribution
}
});
var zoom = new Zoom({
view: view,
layout: "horizontal"
});
view.ui.add(zoom, "bottom-right");
... View more
04-13-2020
09:37 AM
|
1
|
5
|
4879
|
|
POST
|
Hi, have you tried using wmsLayer.sublayers? Or would you be able to share your code? I'm not sure if I understand what you are asking. Thanks, Anne
... View more
04-08-2020
04:03 PM
|
0
|
1
|
978
|
|
POST
|
Yes, they are the same in terms of performance, assuming that your FeatureLayer is created from a service. But it is probably better to just use FeatureLayer.queryFeatures() so that you do not have to import another task.
... View more
04-06-2020
09:08 AM
|
1
|
0
|
1169
|
|
POST
|
Hi, I just wanted to update you that this will be fixed in the 4.15 release of the ArcGIS API for JavaScript (which is coming very soon!) Thanks again for reporting this bug.
... View more
04-03-2020
10:27 AM
|
2
|
1
|
2720
|
|
POST
|
Hi Massimiliano, Instead of using definitionExpression, try using FeatureLayer.queryFeatures(). See this section in the API Reference on Spatial Queries for more information: Spatial Query | ArcGIS API for JavaScript 4.14 Here's a sample that shows querying statistics by geometry: SceneLayerView - query statistics by geometry | ArcGIS API for JavaScript 4.14 Hope this helps! Thanks, Anne
... View more
04-03-2020
09:46 AM
|
1
|
2
|
1169
|
|
POST
|
Hi John - here's a sample that has attachments within the popup: Popup with edit action | ArcGIS API for JavaScript 4.14
... View more
03-27-2020
12:57 PM
|
2
|
1
|
2436
|
|
POST
|
Hi Gianna - I still only see the topo basemap in both the link you sent and in the jsfiddle, and there's errors about the layer not loading in the console: [esri.layers.ImageryLayer] #load() Failed to load layer (title: 'WdlndExp netcdf', id: '17119272bda-layer-0')
name: "request:server"
message: "Failed to fetch" But I think in your function you want to access the first object in the multidimensionalDefinition array, and set the value on that. mosaicRuleClone.multidimensionalDefinition[0].values = [value];
... View more
03-26-2020
04:44 PM
|
0
|
1
|
4385
|
|
POST
|
Hi Gianna - your layer isn't loading correctly for me so I don't know what your data looks like, but I think you would need to create some sort of function that would update the mosaicRule on your ImageryLayer based on the fmaValue. This sample might help you understand: ArcGIS API for JavaScript Sandbox - Image Coordinate System On line 80 - whenever the select box value changes, a function is called that updates the mosaicRule on the ImageryLayer. I think you can implement something similar when the slider value changes in your code.
... View more
03-25-2020
02:30 PM
|
0
|
3
|
4385
|
|
POST
|
Hi Gianna, It looks like you're doing it right in your code, the issue is that the function you are trying to call when the slider thumb value changes ( updateFMA(event.value) ) is undefined. Try this and see if you get the event value to print in the console. slider.on(['thumb-change', 'thumb-drag'], function(event) {
console.log(event.value);
}); Hope this helps!
... View more
03-24-2020
08:33 AM
|
0
|
5
|
4385
|
|
POST
|
Hi Jay, Check out the goToOverride property on the Search widget. This allows you to override the goTo() method invoked when a result is selected. Hope this helps! Thanks, Anne
... View more
03-23-2020
12:33 PM
|
1
|
0
|
1906
|
|
POST
|
Hi Ryan - just wanted to let you know that this will be fixed when 4.15 is released! Thanks again for reporting.
... View more
03-10-2020
04:10 PM
|
2
|
0
|
3979
|
|
POST
|
Hi Dylan, Thanks for taking the time to report this. I was able to reproduce the issue - it seems like a bug. We will investigate the cause of this issue and have in fixed in an upcoming release! Thanks, Anne
... View more
02-26-2020
08:55 AM
|
1
|
1
|
928
|
|
POST
|
Akbar, I think you might want to look into using the Editor widget. Here's a sample: Edit features with the Editor widget | ArcGIS API for JavaScript 4.14 Also, here's a sample of using the Editor widget with Popups: Popup with edit action | ArcGIS API for JavaScript 4.14 Hopefully this helps! - Anne
... View more
02-24-2020
01:13 PM
|
1
|
1
|
9270
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | yesterday | |
| 1 | 10-24-2025 07:03 AM | |
| 1 | 09-09-2025 09:52 AM | |
| 1 | 09-03-2025 01:48 PM | |
| 1 | 08-22-2025 11:12 AM |
| Online Status |
Offline
|
| Date Last Visited |
yesterday
|