POST
|
Hi @ToddRunstein - The information you found on the ArcGIS Pro documentation page is also documented in our ArcGIS Maps SDK for JavaScript GeoJSONLayer class: https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#limits Each GeoJSONLayer will only accept one geometry type. If there are multiple types of geometries, only the type specified in geometryType will be loaded. If geometryType is not specified, it will default to the geometry type of the first geometry. This limitation will be the same for Map Viewer since it uses this GeoJSONLayer class to create GeoJSON layers. If you want to have multiple geometry types using GeoJSON, you would have to create separate layers for each geometry type.
... View more
03-14-2024
02:17 PM
|
0
|
0
|
1393
|
POST
|
Hi @ABREZN-CBreznicky - Unfortunately, you cannot update the access of a portal item using the PortalItem.update() method. We will get the documentation updated to outline the PortalItem properties that are read-only (including access). When changing the sharing level of an item, you will have to use the /share endpoint since we don't have a method to update the sharing level of an item: https://developers.arcgis.com/rest/users-groups-and-items/share-item-as-item-owner-.htm I made a small example showing how esriRequest can be used to update the sharing level of an item: https://codepen.io/laurenb14/pen/qBwaYpO?editors=1000 Only the query string in the PortalQueryParameters should need to be changed to the get the items you are looking for. Hope this helps!
... View more
03-14-2024
02:11 PM
|
0
|
0
|
188
|
POST
|
Hi @vijaybadugu - There is an example of a zoom out action in the Popup.actions property example snippets that you could modify to be a zoom in action: https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#actions And I created an example "Get directions" action for a previous User Conference demo. You can find the source code for that here: https://github.com/lboyd93/User-Conference-Presentations/blob/main/2023/improving-ux-popups/update-popup/final/js/main.js Hope this helps to get you started!
... View more
03-06-2024
01:34 PM
|
2
|
0
|
247
|
POST
|
The downloads are typically available about 3-4 weeks after the release date: https://developers.arcgis.com/javascript/latest/release-notes/#how-to-access-the-sdk
... View more
03-06-2024
10:03 AM
|
2
|
1
|
612
|
POST
|
Hi @orahlagi - This issue should be fixed for 4.29. Could you please check that this issue is fixed on your end with your application and let us know ASAP if it's still occurring for you? Thanks!
... View more
03-06-2024
09:18 AM
|
0
|
0
|
445
|
POST
|
Version 4.29 just released today! https://developers.arcgis.com/javascript/latest/release-notes/
... View more
02-26-2024
03:03 PM
|
0
|
3
|
643
|
POST
|
I think the issue might be that the outFields are being passed as a parameter into the Layer.fromPortalItem method - this method only takes a portalItem as an option. Can you try setting the outFields property on the layer returned from the promise of that method between line 52 and 53 like this? Layer.fromPortalItem({
portalItem: {
id: "cfeb916a04a841e093786e3195a69231"
}
}).then((layer) => {
layer.outFields = ['*'];
...
}); Here's a smaller example app that does this and prints out the attributes of the clicked feature in the console: https://codepen.io/laurenb14/pen/zYbVPdm?editors=1000
... View more
02-23-2024
04:38 PM
|
0
|
1
|
425
|
POST
|
Hi @JasonWood - If the user of the web application is not an ArcGIS user and does not have an ArcGIS named user account, then the data needs to be publicly shared. This is outlined in the Master Agreement in section 2.6 Value-Added Applications: https://www.esri.com/content/dam/esrisites/en-us/media/legal/ma-translations/english.pdf API keys are an exception because they are used with Developer accounts (not an ArcGIS Online account with named user licenses).
... View more
02-23-2024
02:28 PM
|
0
|
0
|
276
|
POST
|
Hi @Med-Karim-Rouissi - Does the layer have the Name field included in the outFields property? You may need to make sure the layer has those needed attributes when you create it. Setting those fields in the popup template content does not automatically include those attributes for each feature in the layer.
... View more
02-23-2024
02:18 PM
|
0
|
3
|
463
|
POST
|
Hi @DavinShokes1 - Here's an example on how this could be implemented with a button in the view (based off the Intro to popups sample ) :https://codepen.io/laurenb14/pen/QWoRRpj?editors=1000 The workflow goes something like this: Watch when the MapView click event occurs. Check if the right button was clicked and add a graphic to the map where the user clicked. Display a button or tooltip to open the popup with the information from the reverse geocoding using the MapView.openPopup() method. You can always implement some sort of clickable tooltip to display at the clicked location as well. Hope this helps!
... View more
02-22-2024
01:51 PM
|
2
|
0
|
317
|
POST
|
Hi @DavinShokes1 - You could try passing in the graphic that is added to the feature layer to the features property in the MapView's openPopup() method after the query/external API call completes. Here's a simple example showing how to use that property: https://codepen.io/laurenb14/pen/ZEPNpXG?editors=1000 You'll have to make sure the MapView popupEnabled property is set to false to manually open the popup as well. Hope this helps!
... View more
02-21-2024
12:09 PM
|
1
|
0
|
510
|
POST
|
Hi @EmilyGoldsmith - The logic for the sample just needs to be slightly modified. Instead of setting the Feature widget graphic to null if the hitTest doesn't return a graphic, you can just return and not do anything which will keep the highlight and Feature widget populated with the last viewed feature. Here's the Feature widget sample with that modification on lines 95-97: https://codepen.io/laurenb14/pen/eYXbMXg?editors=1000 Hope this helps!
... View more
02-14-2024
01:37 PM
|
1
|
1
|
272
|
POST
|
Hi @MichelleStuart - Instead of using the query property, have you tried using the PortalQueryParams categories property? This takes a string or an array of strings that can be formatted like so: let queryParams = {
categories: [
["/Categories/Trending/New and noteworthy", "/Categories/Basemaps/Reference maps/Test category"]
]
}; If attempting to get items in a subcategory, be sure to add those category folders the to full path. Here's an example CodePen that queries two different categories that contain sub categories: https://codepen.io/laurenb14/pen/wvOYvWv?editors=1000 Hope this helps!
... View more
02-09-2024
03:49 PM
|
1
|
1
|
217
|
POST
|
Hi @MatthewDriscoll - You can try to set the featuresPerPage property on the PopupViewModel: https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#featuresPerPage By default this is 20, but you could try overriding it to the featureCount value when the popup opens: https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#featureCount
... View more
02-08-2024
12:03 PM
|
1
|
0
|
358
|
POST
|
@VenkataSrikanth_Dasari - good news! We have updated the MapView.hitTest() method's tolerance for desktop (activity with a mouse) to a 1px radius for most symbols at version 4.29. Hope this helps!
... View more
02-02-2024
01:25 PM
|
0
|
0
|
206
|
Title | Kudos | Posted |
---|---|---|
2 | 03-06-2024 01:34 PM | |
2 | 03-06-2024 10:03 AM | |
2 | 02-22-2024 01:51 PM | |
1 | 02-21-2024 12:09 PM | |
1 | 02-14-2024 01:37 PM |
Online Status |
Offline
|
Date Last Visited |
04-16-2024
12:43 AM
|