|
POST
|
Hi there, Thanks for letting us know. This sample is using deprecated service that is not longer being updated. We will update the sample to use the latest service. Please use the first layer in this feature layer portal item in your app instead - https://jsapi.maps.arcgis.com/home/item.html?id=f42ecc08a3634182b8678514af35fac3 Here is the direct link to the first layer - https://services2.arcgis.com/FiaPA4ga0iQKduv3/ArcGIS/rest/services/Transportation_v1/FeatureServer/0
... View more
2 weeks ago
|
1
|
1
|
125
|
|
POST
|
Hi there, I apologize for taking a long time to reply. Just looked at your app. I do indeed say the issue. We just created an issue to fix this and I will update you once we have a fix. Thanks
... View more
3 weeks ago
|
0
|
0
|
83
|
|
POST
|
Hi there, The behavior you’re seeing is expected. You’re creating your polylines in WGS84 and adding them directly to a FeatureLayer that’s also set to use the WGS84 spatial reference. However, the features need to be projected to EPSG:3031 on the fly to display on the map. When features are projected, the feature tile extent is also projected into the data’s spatial reference (in this case, from 3031 to WGS84). As a result, the extent doesn’t intersect with the geometry, leading to the behavior you’re observing. To resolve this, you can: Set the layer’s spatial reference to match the view’s spatial reference. Provide geometries in the same spatial reference as the view. Or densify the geometry so that points will intersect with the tile extent. Here is your codepen updated - https://codepen.io/U_B_U/pen/MYKGBgp?editors=1001 In this code, I am setting the layer's spatialReference to 3031 so that it matches the view's spatialRefrence. Hope this helps, -Undral
... View more
10-24-2025
08:51 AM
|
0
|
1
|
165
|
|
POST
|
Hi there, This was a breaking change introduced in version 4.33, as noted in the release notes here: https://developers.arcgis.com/javascript/latest/release-notes/#core-api-breaking-changes To summarize: Cloning a Graphic no longer populates the layer property of the cloned graphic. This is because the cloned graphic is not associated with any layer. If you need to clone a graphic and associate it with a specific layer, set the layer property manually after cloning. This affects any workflows that result in cloned graphics, such as search result graphics. To help address this, we’re introducing a new origin property on Graphic which will be cloned automatically. This can be used to indicate where the graphic originally came from, offering a more appropriate way to track its source. I will update you once this property is Let me know if you have any questions or need further clarification.
... View more
09-10-2025
08:02 AM
|
0
|
1
|
613
|
|
POST
|
Hi there, This issue is addressed at version 4.34. You can test the fix using our next version. Here is your codepen updated to point to the next version: https://codepen.io/U_B_U/pen/EaVePpv?editors=1000 Thanks
... View more
08-27-2025
04:20 PM
|
0
|
0
|
157
|
|
POST
|
Hi there, Thank you for sharing the codepen. However, I’m already very familiar with this behavior, so a basic example won’t help us investigate the issue you originally described. To properly assess and address the performance concerns, we need access to your actual webmap. Starting with version 4.19, the ArcGIS Maps SDK for JavaScript began supporting the fetching of all features from point feature services at initialization, provided certain conditions are met. As of version 4.33, this behavior has been extended to AGOL-hosted feature services with polygon, polyline, and multipoint geometries, again assuming the appropriate conditions are satisfied. This enhancement improves app responsiveness by loading all features at once and eliminating repeated server requests as users interact with the map. We need to examine your webmap directly to determine how your data aligns with these conditions. This will help us assess performance and potentially fine-tune the behavior further. Would you be able to share the webmap with us?
... View more
07-10-2025
08:01 AM
|
0
|
4
|
742
|
|
POST
|
Hi there, Is it possible for you to share your webmap url with me? You can direct message me if you dont want to share publicly.
... View more
07-09-2025
08:48 AM
|
1
|
0
|
778
|
|
POST
|
https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMSLayer.html#fetchImage - should work in this case. Have you looked at it? You can do something like const image = await layer.fetchImage(view.extent, view.width, view.height);
console.log(image.src);
... View more
07-08-2025
08:09 AM
|
2
|
1
|
246
|
|
POST
|
Hi there, I wasn't able to locate any public documentation for esri.TileUtils.getCandidateTileInfo(). That said, could you clarify how much detail you're looking for? Are you calculating the tiles without considering rotation and the tilemap, or do you need those factors included as well?
... View more
07-07-2025
03:57 PM
|
2
|
1
|
254
|
|
POST
|
Hi there, You need to load all sublayers from the MapImageLayer by calling loadAll() on the MapImageLayer instance as shown below: layer.loadAll().then(() => {
layer.sublayers.map((sublayer) => {
sublayer.popupTemplate = sublayer.createPopupTemplate();
});
}); This codepen shows how to setup popupTemplate for sublayers - https://codepen.io/U_B_U/pen/QwbrLXO?editors=100 Hope this helps, -Undral
... View more
06-11-2025
03:25 PM
|
1
|
1
|
826
|
|
POST
|
Hi there, This sample shows how to do hitTest on a map component - https://developers.arcgis.com/javascript/latest/sample-code/map-component-hittest/
... View more
05-14-2025
09:38 AM
|
0
|
1
|
409
|
|
POST
|
That should not happen. Repro case would be useful in this case. Which version of the API are you using?
... View more
05-08-2025
04:23 PM
|
0
|
1
|
681
|
|
POST
|
I am not able to reproduce the issue in this simple test app - https://codepen.io/U_B_U/pen/MYYqErz?editors=1000
... View more
05-08-2025
02:49 PM
|
0
|
1
|
708
|
|
POST
|
Can you please post the geometry (json representation) that is in question here?
... View more
05-08-2025
02:44 PM
|
0
|
0
|
708
|
|
POST
|
Hey there, It seems like you are overwriting highlight handle each time a new feature is highlighted. As a result, when you call remove on the handle, it only removes the highlight from the most recently highlighted feature. To fix this, you should store each highlight handle so they can all be removed later. You can do this by adding each handle to an array whenever a feature is highlighted, like this: highlight = layerView.highlight(result.features, {name: "temporary"});
hightlights.push(highlight); Then, when you want to remove all highlights, loop through the array and call remove() on each handle: hightlights.forEach((h) =>{
h.remove();
}); This codepen shows how this works: https://codepen.io/U_B_U/pen/OPPojdN?editors=1000 Hope this helps, -Undral
... View more
05-08-2025
02:09 PM
|
1
|
1
|
916
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 2 weeks ago | |
| 1 | 07-09-2025 08:48 AM | |
| 2 | 07-08-2025 08:09 AM | |
| 2 | 07-07-2025 03:57 PM | |
| 1 | 06-11-2025 03:25 PM |
| Online Status |
Offline
|
| Date Last Visited |
a week ago
|