|
POST
|
@Sage_Wall Are you suggesting to set the fetchFeatures to false and use the identify to collect the features from an mapimagelayer? If that's the case what is the use of the fetchFeatures? await arcgisFeatures.open({
location: mapPoint,
features: [graphics]
fetchFeatures: false
}) For featurelayers we can use this and we don't need fetchFeatures. arcgisFeatures.open({
location: mapPoint,
features: [graphics]
});
... View more
2 hours ago
|
0
|
0
|
22
|
|
POST
|
I use this script to display the popup in the arcgis-features. I need to determine if the arcgis-features after it runs if it is empty or found features. If i click on a featurelayer , then the console states that the component is not empty. However, if i click on a mapimagelayer it states that the component is empty even though there is a feature inside the arcgis-features. Why? const hitTestResult = await arcgisMap.view.hitTest(screenPoint);
const mapPoint = arcgisMap.view.toMap(screenPoint); await arcgisFeatures.open({
location: mapPoint,
features: results.map(r => r.graphic), // Include any client-side features found
fetchFeatures: true
}).then((response) => {
checkIfFeaturesEmpty()
})
function checkIfFeaturesEmpty() {
if (arcgisFeatures && arcgisFeatures.features) {
if (arcgisFeatures.features.length === 0) {
console.log('The <arcgis-features> component is empty.');
return true;
} else {
console.log('The <arcgis-features> component is not empty and contains ' + arcgisFeatures.features.length + ' features.');
return false;
}
} else {
console.log('The <arcgis-features> element or its features property is not available yet.');
return null;
}
}
... View more
yesterday
|
0
|
3
|
83
|
|
POST
|
@Sage_Wall If you have a mapimagelayer, then it will still show "No feature hit" in the console. hittest works for featurelayers. How can you modify the script to show hit featureLayer/no feature hit if you are using a feature layer and a mapimagelayer.
... View more
yesterday
|
0
|
1
|
22
|
|
POST
|
Yes, thank you—I’m aware of that. My question, however, is about changing the “No layer” text. Since the application may have multiple layers added dynamically by the user, I’d prefer the message to prompt the user to click the layer stack icon and select a layer in order to populate the table.
... View more
|
0
|
0
|
34
|
|
POST
|
When the layer-url property is not set at design time, <arcgis-feature-table> shows the layer list icon with the message “No layer”, even if users add layers later during runtime. Is there a way to replace this message with something like “Click the icon to display tables for available layers”? As it stands, users are not clearly informed that clicking the icon reveals the list of feature tables. @Sage_Wall @ReneRubalcava
... View more
|
1
|
2
|
112
|
|
POST
|
In the past, I stayed away from building custom widgets in Experience Builder because layer selection had to be done at design time. I was recently informed that widgets can now dynamically work with any layers currently on the map. Since it’s been a while, I need to refresh my React skills—specifically, which React 19 component concepts should I focus on?
... View more
|
0
|
1
|
148
|
|
POST
|
Thank you. I wasn’t aware of this, as it has been a while since I last reviewed ExB. It would be beneficial for application developers—especially those who are not familiar with React—to have a design-time option that allows layers to be added to the map at runtime.
... View more
a week ago
|
1
|
0
|
225
|
|
POST
|
One reason I was hesitant to adopt Experience Builder was its limited support for custom widgets that can work dynamically with whatever layers are currently on the map. The last time I evaluated it, a widget had to be configured at design time with specific layers, meaning you needed to know in advance which layers it would interact with. In the applications I work on, users can load any layers into the map at runtime and then use a custom widget to operate on some or all of those layers. So my question is: is this now possible in Experience Builder? I just use this to detect the layers during runtime arcgisMap.view.map.layers.map(async function (lyr) {
... View more
a week ago
|
0
|
2
|
270
|
|
POST
|
I am using the example as posted here to calculate the geodetic length and area of a location. Wanted to use imperial units (ft and miles). So, I changed const geodesicLength = geodeticLengthOperator.execute(line, { units: "kilometers" });
const planarLength = lengthOperator.execute(line, { units: "kilometers" });
const geodesicArea = geodeticAreaOperator.execute(polygon, { units: "square-kilometers" });
const planarArea = areaOperator.execute(polygon, { units: "square-kilometers" }); to: const geodesicLength = geodeticLengthOperator.execute(line, { units: "miles" });
const planarLength = lengthOperator.execute(line, { units: "feet" });
const geodesicArea = geodeticAreaOperator.execute(polygon, { units: "square-miles" });
const planarArea = areaOperator.execute(polygon, { units: "square-feet" });
Then I noticed that the geodetic measurements were way off incorrect Then I changed the "units" to "unit" for geodetic measurements const geodesicLength = geodeticLengthOperator.execute(line, { unit: "miles" });
const planarLength = lengthOperator.execute(line, { units: "feet" });
const geodesicArea = geodeticAreaOperator.execute(polygon, { unit: "square-miles" });
const planarArea = areaOperator.execute(polygon, { units: "square-feet" }); and now I get correct results!! I don't see anywhere in the documentation stating to use unit instead of units for geodetic measurements.
... View more
11-19-2025
10:28 AM
|
0
|
1
|
248
|
|
POST
|
I use the search component( arcgis js api 4.33), but the chrome dev tools flags it as depreciated! <arcgis-map basemap="streets-navigation-vector" id="my-map" center="-120.45, 37.183" zoom="6" popup-disabled>
<arcgis-search position="top-left"></arcgis-search>
<arcgis-zoom position="top-left"></arcgis-zoom>
<arcgis-compass auto-destroy-disabled position="top-left"></arcgis-compass>
<arcgis-scale-bar position="bottom-left" bar-style="line" unit="imperial"></arcgis-scale-bar>
</arcgis-map> Chrome Dev Tools
... View more
11-04-2025
12:43 PM
|
0
|
1
|
239
|
|
POST
|
@ReneRubalcava It isn’t immediately clear to users that they need to click the stacked layers icon to select which layer to display in the table. As a possible enhancement—and to avoid showing an empty table—you could make it so that clicking the table icon (in the action bar) automatically opens the table with the first visible layer from the map. For instance, developers could collect all currently displayed layers into an array, and when the table icon is clicked, open the table using layer[0] or whichever layer the developer sets using a table-layer property.
... View more
10-29-2025
05:49 PM
|
0
|
0
|
139
|
|
POST
|
The feature table is not slotted into the map. I realized that the issue was a css setting for the arcgis-features where I had position:absolute. All good now. Thank you.
... View more
10-23-2025
03:58 PM
|
0
|
0
|
185
|
|
POST
|
if both arcgis-feature-table and arcgis-features web components are open, they will be overlapped. One way to address it is by CSS, to monitor if arcgis-features is open then you adjust the width of the table. I am wondering if there is a another way to do it, or should it be an enhancement request? @ReneRubalcava
... View more
10-23-2025
01:00 PM
|
0
|
2
|
226
|
|
POST
|
I did use `await scaleBar.componentOnReady()` but is not working. Thank you for clarifying the reason behind the mismatch between the scale shown by the scale bar and the map view. It appears that I’ll need to find a way to access the value displayed on the scale bar, since that’s what users actually see.
... View more
10-22-2025
03:33 PM
|
1
|
0
|
715
|
|
POST
|
Thank you for your response. I implemented your solution but the shadowRoot was null. Then, I tried to access the view property of the arcgis-scale-bar and then sub-property viewpoint and I get the scale attribute. However, I noticed that displayed scale and the scalebar.view.viewpoint.scale do not match. For example, when the map scale on the map shows 20mi, the scale from the viewpoint is 2311162.2171545 which translates to 36.48 mil
... View more
10-22-2025
10:56 AM
|
0
|
2
|
730
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | Monday | |
| 1 | a week ago | |
| 1 | 10-22-2025 03:33 PM | |
| 1 | 06-27-2025 11:29 AM | |
| 1 | 06-16-2025 08:49 PM |
| Online Status |
Online
|
| Date Last Visited |
2 hours ago
|