|
POST
|
You would need some logic using use DOMElement remove https://developer.mozilla.org/en-US/docs/Web/API/Element/remove
... View more
12-06-2022
09:00 AM
|
0
|
0
|
1777
|
|
POST
|
Once you create the route layer, you need to call the solve method to get your route and features https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html#solve Then you can get the routeInfo and it will have a totalDistance value you can use https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteInfo.html#totalDistance
... View more
12-05-2022
10:41 AM
|
0
|
0
|
2322
|
|
POST
|
This is because the dynamic imports using in the API. We can't always determine what will be needed for rendering and loading portal items at build time, so dynamic imports allow JS to load modules as needed. Vite using esbuild, will output all files it thinks might be needed at runtime. There's some additional info in our github sample repo. https://github.com/Esri/jsapi-resources/tree/main/esm-samples#bundle-size-and-performance
... View more
12-05-2022
07:03 AM
|
0
|
3
|
4915
|
|
POST
|
You can use the geometry engine for this, no need to go to the service. https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html#distance Here's a sample where it's dynamically imported and used. https://github.com/odoe/nearby-app-vanilla/blob/main/src/app.ts#L50-L71
... View more
12-04-2022
04:12 PM
|
0
|
1
|
2354
|
|
POST
|
If you have a basic codepen or github sample with the error, could take a look. Can't tell much from the error.
... View more
11-29-2022
10:22 AM
|
0
|
0
|
1030
|
|
POST
|
Here is an example of using multiple FeatureTables for multiple layers. https://codepen.io/odoe/pen/YzaLVgJ?editors=0010 view.when(() => {
const layers = map.layers
.filter((layer) => {
return layer.type === "feature";
})
.toArray();
let count = 0;
for (const layer of layers) {
// nav
const title = document.createElement("calcite-tab-title");
title.innerText = layer.title;
if (count === 0) {
title.active = true;
count++;
}
tableNav.appendChild(title);
// content
const container = document.createElement("div");
container.classList.add("table");
const table = new FeatureTable({
view,
layer,
container
});
const tab = document.createElement("calcite-tab");
tab.appendChild(container);
tabDiv.appendChild(tab);
}
});
... View more
11-28-2022
01:04 PM
|
2
|
2
|
1802
|
|
POST
|
Ok, so here is what I can tell. 1. Works as expected 2. There is no highlight because the results are not related to the layer. As in, the MapImageLayer has no direct connection to the returned features. 3. Using sublayers works with popup highlight, because the sublayers are part of the MapImageLayer, and that's why it works. The extra export call may have to do with MapImageLayer Popup highlight functionality. We can look at that for next release. 4 and 5: Same as 3, because you are using sublayers from the MapImageLayer, that query highlight functionality is working as expected. Can look into the extra export request for next release. The couple of extra requests you see are related the MapImageLayer Popup Highlight functionality added at 4.25. We can look and see if that is expected for next release, but for now, I believe it is. Basically, if you only use layerIds, the results have no relation to a layer at all. When you use the sublayers, they do and you get some extra functionality. You can only use one or the other, I think sublayers takes precedence in that case.
... View more
11-23-2022
11:13 AM
|
0
|
1
|
3822
|
|
POST
|
Can you provide a codepen or GitHub sample of these issues? Identify is unrelated to Popup and highlight, so unsure how you're hooking them up.
... View more
11-23-2022
08:51 AM
|
0
|
5
|
3882
|
|
POST
|
I assume your web component is a separate build from your main app? In that case, the ArcGIS modules don't share the same prototype chain and that's why you see that error. The recommended workflow for something like this is to expose methods or props on your component that can take JSON strings to add graphics or similar and provide events you can listen for. But you can't mix like that. There was another post here I believe where this was covered, but that's the gist of it. Found the last conversation about it with a bit more info https://community.esri.com/t5/arcgis-api-for-javascript-questions/problem-using-es-modules-in-webpack-module/m-p/1129450/highlight/true#M75733
... View more
11-21-2022
06:27 AM
|
0
|
0
|
1376
|
|
POST
|
I am not familiar with ExB or using the jimu framework, but it looks like you can create connections between widgets. https://developers.arcgis.com/experience-builder/guide/add-widgets/#connect-widgets There a number of actions that you can use to communicate, but I'm not sure what the best pattern would be for your use case. https://developers.arcgis.com/experience-builder/guide/action-triggers/
... View more
11-18-2022
01:58 PM
|
0
|
0
|
1569
|
|
POST
|
Are you checking for the view or layerView updating property to be false before you query? Here is a sample watching for the extent to change and waiting for the view to stop updating. https://codepen.io/odoe/pen/mdKqVdM?editors=0010 It uses a debounce, but for client-side data, might not need it. If this isn't the issue you're seeing, if you have a repro to look at, could get a better idea of the issue.
... View more
11-17-2022
03:52 PM
|
0
|
0
|
1057
|
|
POST
|
Features in a FeatureLayer can only be symbolized by the renderer of the FeatureLayer. We have a guide on visualization that might help. https://developers.arcgis.com/javascript/latest/visualization/ From your description, it sounds like you might want to use a Unique Value Renderer. https://developers.arcgis.com/javascript/latest/visualization/data-driven-styles/unique-types/
... View more
11-17-2022
12:44 PM
|
0
|
0
|
568
|
|
POST
|
Can you verify that the fields you are trying to update are in the the layers fields array?
... View more
11-17-2022
12:42 PM
|
0
|
2
|
2168
|
|
POST
|
Do you have a sample showing this behavior? I wasn't able to repro here. I thought maybe it was the adding and removing layer simultaneously, but that didn't trigger an error. https://codepen.io/odoe/pen/BaVwdEg?editors=1000
... View more
11-16-2022
03:37 PM
|
0
|
1
|
1192
|
|
POST
|
Not all graphics are part of a FeatureLayer. When added to a GraphicsLayer, the visibility can be set directly on the Graphic.
... View more
11-15-2022
07:11 AM
|
0
|
0
|
1003
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 2 weeks ago | |
| 2 | 3 weeks ago | |
| 1 | 02-27-2026 06:31 AM | |
| 1 | 01-13-2026 02:15 PM | |
| 1 | 12-31-2025 09:05 AM |
| Online Status |
Offline
|
| Date Last Visited |
a week ago
|