|
POST
|
The map and scene components have methods to add layers, addLayer and add layers. https://developers.arcgis.com/javascript/latest/references/map-components/?path=/docs/component-reference-map--docs So you can create a layer like you normally would and add it to the component. Here's a sample adding a graphics layer and using sketch https://codepen.io/odoe/pen/eYwzRER
... View more
09-02-2024
01:20 PM
|
1
|
0
|
2840
|
|
POST
|
The components emit CustomEvents that wrap the native view mouse events, like CustomEvent<ViewDragEvent>. Try to `event.detail.stopPropagation()`.
... View more
08-29-2024
09:17 AM
|
0
|
0
|
1287
|
|
POST
|
Replace the entire symbol to get it to update in real-time. const symbol = graphic.symbol.clone();
symbol.color = event.srcElement.value;
graphic.symbol = symbol;
... View more
08-22-2024
09:35 AM
|
1
|
0
|
1632
|
|
POST
|
You can listen the layers "edit" event and call the featureTable refresh method. https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#events-summary https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#refresh Demo: https://codepen.io/odoe/pen/mdOJeYm?editors=0010
... View more
08-20-2024
08:30 AM
|
0
|
1
|
1796
|
|
POST
|
Tough to tell from snippet, if you have a git repo or stackblitz, might be able to tell. You probably don't want to assign the BasemapGallery container directly, do it in a useEffect with a useRef with some guards against nulls and stuff. Does this happen in dev mode and prod? HMR can do this sometimes.
... View more
08-19-2024
01:00 PM
|
0
|
1
|
1715
|
|
POST
|
This depends on your version of Enterprise. queryDataElements is in 10.6+ https://developers.arcgis.com/rest/services-reference/enterprise/query-data-elements-feature-service/
... View more
08-19-2024
07:24 AM
|
0
|
1
|
989
|
|
POST
|
Ok, that's a little different. That's not a popup selection, that is the sketch selection because you are interacting with the sketch graphics layer. You can call cancel() on sketch to clear it when you close the popup. https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#cancel
... View more
08-14-2024
01:19 PM
|
0
|
1
|
1789
|
|
POST
|
Looking at this sample here, if you call view.closePopup() the highlight is cleared. https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=popup-editaction
... View more
08-13-2024
03:38 PM
|
0
|
3
|
1829
|
|
POST
|
All the TS Typings are defined by the public documentation. debounce for example depends on the function being debounced, it just takes a generic function https://developers.arcgis.com/javascript/latest/api-reference/esri-core-promiseUtils.html#debounce
... View more
08-12-2024
09:32 AM
|
0
|
1
|
1141
|
|
POST
|
Not specific to it, but you could do something like that manually. Views have a toScreen() method that converts map coordinates to screen coordinates. https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#toScreen And a toMap to turn screen coords to map coords. https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#methods-summary You can then use reactiveUtils to watch some view property like interacting, maybe navigating to know when the map is being panned/zoomed and update the elements location. https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#interacting
... View more
08-07-2024
08:16 AM
|
1
|
1
|
1194
|
|
POST
|
You can, but you need to convert it to a client-side FeatureLayer. https://developers.arcgis.com/javascript/latest/sample-code/layers-featurelayer-collection/ Here is that above sample with the FeatureTable https://codepen.io/odoe/pen/mdOJeYm?editors=0010
... View more
08-05-2024
01:13 PM
|
0
|
1
|
1030
|
|
POST
|
Absolutely, yes you can! Here is a video from DevSummit https://mediaspace.esri.com/playlist/dedicated/325483122/1_zbjbuth8/1_bygljauy Here is a codepen changing the webmap manually: https://codepen.io/odoe/pen/ExzyNPd?editors=0010 React/Next app: https://github.com/odoe/arcgis-map-comps-nextjs/blob/main/app/map/%5Bslug%5D/page.tsx
... View more
07-31-2024
08:35 AM
|
0
|
0
|
852
|
|
POST
|
I think you have a typo. It's findLayerById. You need to either wait for view.when() or call the webmap.loadAll(), both are promises so you can await them or use promise.then().
... View more
07-29-2024
07:15 PM
|
3
|
1
|
1605
|
|
POST
|
Thanks, we'll be taking a look at this for the next release. Oversight.
... View more
07-26-2024
07:11 AM
|
1
|
0
|
967
|
| Title | Kudos | Posted |
|---|---|---|
| 2 | 05-19-2026 02:12 PM | |
| 1 | 04-24-2026 11:01 AM | |
| 2 | 04-21-2026 07:06 AM | |
| 1 | 02-27-2026 06:31 AM | |
| 1 | 01-13-2026 02:15 PM |
| Online Status |
Offline
|
| Date Last Visited |
Wednesday
|