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
yesterday
|
0
|
1
|
39
|
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
|
0
|
1
|
52
|
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
a week ago
|
1
|
1
|
96
|
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
a week ago
|
0
|
1
|
116
|
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
2 weeks ago
|
0
|
0
|
47
|
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
2 weeks ago
|
3
|
1
|
112
|
POST
|
Thanks, we'll be taking a look at this for the next release. Oversight.
... View more
3 weeks ago
|
1
|
0
|
117
|
POST
|
Deprecated means they will be going away, typically a few releases after announced. to give users time to transition. If you go to the property links, they are marked deprecated. https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html#multipleSelectionEnabled https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html#selectionEnabled Space issue, not enough room in the property list for details.
... View more
3 weeks ago
|
1
|
0
|
104
|
IDEA
|
Thanks for the feedback! Slots are on our roadmap, but we have some under-the-hood work to do first before that can happen. Some things such as the `childElem` you pointed out are not documented because they could change or go away in a future release. There is not set release for this work though, but when it is, we'll be talking about it!
... View more
4 weeks ago
|
0
|
0
|
142
|
POST
|
Maybe referenceScale will get you what you are looking for. https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-HeatmapRenderer.html#referenceScale Sample: https://developers.arcgis.com/javascript/latest/sample-code/visualization-heatmap-static/
... View more
a month ago
|
0
|
1
|
181
|
POST
|
I believe there was a support ticket opened for this. That would be best route to track it.
... View more
07-03-2024
08:29 AM
|
0
|
0
|
152
|
POST
|
If you wrap most of your code in a view.when, you can use the views spatial reference to create your point. const point = new Point({
x: -9810308.361037346,
y: 5136801.597252877,
spatialReference: view.spatialReference
}); The default spatial reference of geometries is WGS84, so you need to specify when using something else.
... View more
06-21-2024
08:03 AM
|
1
|
0
|
152
|
POST
|
If you are just using them for type annotations, you can use the `import type` syntax. import type Map from "@arcgis/core/Map"; It's safer, as this import won't be in the output JavaScript. Most bundlers "should" omit unused imports, but honestly, this can vary. I could have sworn the TS compiler was smart enough to do this anyway, but either way, the "import type" syntax would cover your bases.
... View more
06-20-2024
09:56 AM
|
1
|
0
|
294
|
POST
|
Ah. For stuff like this, you can use Layer.fromPortalItem. It's useful to load an entire FeatureService or any layer where you have the item, but don't know the layer type. You can do something like this. Layer.fromPortalItem({
portalItem: {
id: "4601abb43d564387a785aeaaba8d7486",
}
}).then(async (layer) => {
// Will be a GroupLayer
// await layer.load();
// layer.layers -> [a, b] has two layers in the group
// pull out layer you are interested in
// and add only that layer.
// map.add(layer.layers.at(1));
// add the whole GroupLayer
map.add(layer);
}); Here is a codepen.
... View more
06-20-2024
09:25 AM
|
0
|
0
|
208
|
Title | Kudos | Posted |
---|---|---|
1 | a week ago | |
3 | 2 weeks ago | |
1 | 3 weeks ago | |
1 | 3 weeks ago | |
1 | 04-11-2022 10:39 AM |
Online Status |
Offline
|
Date Last Visited |
2 hours ago
|