|
POST
|
Hi Erwin, this worked without issue. FileDialog opens to assets-library directory without crashing the app when building our custom Player app using Cloud Make 4.4, instead of Local Make. Thank you for your help!
... View more
04-08-2021
07:56 AM
|
0
|
0
|
1863
|
|
POST
|
Thank you for the response, Erwin. We've built a version using Cloud Make and are about to test this to see if issues persist. I will update the status here once it's ready.
... View more
03-26-2021
01:42 PM
|
0
|
0
|
1893
|
|
POST
|
I have a custom-built Player app (started from scratch using sample Player app in AppStudio) which is meant to download and load other AppStudio apps (referred to as child apps here) I've built. I built the app for iOS devices and I'm testing it on an iPad Mini 5th Gen. I run into issues when implementing an "Upload Photo" feature into one of my child apps. Around 50% of the time, the app crashes and becomes unresponsive when opening the FileDialog. I've narrowed the issue down to the folder property of FileDialog which is pointing to Qt.platform.os == "ios" ? "file:assets-library://" : shortcuts.pictures I'm running on iOS, so it gets file:assets-library as its value. If I change this value to StandardPaths.standardLocations(StandardPaths.PicturesLocation)[2] this works without crashing perfectly. But I want to point the user to the Pictures directory, so this isn't useful. Also worth mentioning is that all this works perfectly as expected, in Esri's original AppStudio player app. I can upload my child app that contains "Upload Photo" functionality to AppStudio Player and it works. It's only when I upload to my custom-built app and run my child app in there that it crashes. This is similar to the issue @Anonymous User was having in this thread: https://community.esri.com/t5/arcgis-appstudio-questions/file-dialog-shortcuts-pictures-crashes-a-built-app-although-not/m-p/768939 Any idea why this is crashing and what I can do to fix it? Thanks!
... View more
03-16-2021
02:43 PM
|
0
|
3
|
2194
|
|
POST
|
I have a webmap in ArcGIS Enterprise Portal with 20 or so layers that I am accessing in my app. Some of these layers have complex and custom symbology. I am able to access this webmap in the app without any issues whatsoever, as long as the device is connected online. But I would like to access this webmap with all its layers, attributes, symbology, etc. offline. For taking the data offline and making it accessible, I know I have a couple of options: Geodatabase and Mobile Map Packages. I decided to try out Geodatabase. But for Geodatabase, it looks like I will have to create a dictionary renderer with all details for my complex symbology from scratch. See this toolkit. I do not have the means to create a .stylx file for this symbology from scratch since I didn't create the original symbology. Is there a way to create this symbology from say, a .lyr file on-the-fly? Should I not be using Geodatabase but .mmpk instead? Appreciate the help.
... View more
12-22-2020
10:30 AM
|
0
|
1
|
1225
|
|
POST
|
Hi Xander, Thank you for links to the docs on Create DB Sequence. I don't think I can use this tool for my dataset though since my existing values for "Unique_ID" field are not always incrementing by 1. Nevertheless, thanks for this useful resource. On using Max() in Arcade, the code snippet you provided with the change of referring to the field as "ORIG_ID" instead of $feature.ORIG_ID worked! If this is the correct way to refer to a field, whether it be for calculating max, mean or other field-related stats, does this mean that the documentation provided here: Mathematical Functions | ArcGIS for Developers under Max is wrong? Thank you
... View more
07-29-2020
12:24 PM
|
0
|
1
|
7946
|
|
POST
|
I'm working with a feature class within an Enterprise GeoDB in ArcGIS Pro. I have a field called "Unique_ID" that I want to attach an attribute rule to. Here's the rule: whenever a new feature is inserted, I want this field to calculate the maximum value from a field called "ORIG_ID" values in the same layer, add 1 to it, and update "Unique_ID" with this number. I have a rule within Expression Builder with the following Arcade expression. This max method being used is more or less, the same example given here: Mathematical Functions | ArcGIS for Developers under Max. var competitors = FeatureSetByName($datastore,"route.to.FeatureClass");
var uuid = Number($feature.ORIG_ID);
Max(competitors,uuid) + 1 The expression is validated correctly. I set the triggers to be Insert and Update and save the process. But when I try to add a new row to the attribute table or create a feature on the map, the Unique_ID field is populated with the ORIG_ID value for that row + 1. Essentially, the maximum value of the entire field is not calculated. Any ideas on how to solve this? Thanks.
... View more
07-27-2020
03:04 PM
|
0
|
6
|
8072
|
|
POST
|
Awesome. I can't test it right now. But this is good to know for my next time working with this!
... View more
05-28-2020
05:16 AM
|
0
|
0
|
1178
|
|
POST
|
Thanks, Rene! Wish I'd given it a try before I switched my entire application to render Feature Layer instead. Now I'm facing a problem where client-side graphics added to the feature layer cannot recognize click events for hitTest() or popupTemplate. I believe this is a bug that was recognized in the API a couple of years ago, but still hasn't been fixed. See view.hitTest returning 0 results and PopupTemplate from Client Side Graphics Not Working
... View more
05-04-2020
08:31 AM
|
0
|
1
|
4661
|
|
POST
|
Looks like this is still an issue with ArcGIS API for JavaScript 4.15. Still can't return results with hitTest on client-side graphics in a Feature Layer, or view popups.
... View more
05-04-2020
06:50 AM
|
0
|
4
|
2839
|
|
POST
|
Looks like this is still an issue with ArcGIS API for JavaScript 4.x. Feature Layer with a source of client side graphics cannot be interacted with on the webmap. PopupTemplate doesn't work in that you can't get a popup to appear. And also, hitTest() doesn't work, since the mapPoint doesn't recognize the features that are clicked on. See other post here from someone else a while back: https://community.esri.com/thread/189210-viewhittest-returning-0-results
... View more
05-04-2020
05:21 AM
|
0
|
2
|
2020
|
|
POST
|
Hi everyone, I have a GeoJSON layer that I have added to my webmap. I want to be able to click on the layer features and populate a sidepanel with elements based on the feature's properties (make request to db from app with Express query, populate sidepanel with returned array). How can I access the GeoJSON layer's properties for the feature that is being clicked? I looked at hitTest(), a MapView method. But surprised to see that GeoJSON is not a supported type of layer for the method. Does anyone have any ideas on how I could achieve this? I'm able to access the properties on the popupTemplate fine. But I need more features than what the popupTemplate is giving me. TLDR: Need to access GeoJSON properties from clicking element on map. Thanks!
... View more
05-03-2020
10:06 AM
|
0
|
3
|
4817
|
|
POST
|
Thank you for your reply, Egge-Jan. The data is not in GeoJSON. However, I think converting it to GeoJSON may be my best option, since a simple graphics layer may not scale well up to 3000 points. What I'm really doing here is fetching data from a Postgres database, returned as a .json object. To use GeoJSON, looks like I'll need to convert the .json to a GeoJSON file and then use it. Also, what are the limitations of a GeoJSON? Can it hold 3,000 individual records (keys) with 50 values each? So one individual element would have 50 values. I'll be doing some research on this... Thanks!
... View more
04-29-2020
05:48 PM
|
1
|
1
|
3138
|
|
POST
|
I have a .json objects array with data that I want to use in my webmap. What is the best option to add this data (<3000 points) to the map? Should I use a GraphicsLayer object inside which I'll be adding each point as a Graphic with point geometry to? Should I use a FeatureLayer? Are there any examples in the ArcGIS JS docs that someone could point me to? As it is now, I can add point graphics individually to a Graphic object and then add to a GraphicsLayer using layer.graphics.add(newGraphic). But how can I do this on the fly as the map is receiving data from the json? Thanks in advance!
... View more
04-28-2020
10:47 PM
|
0
|
3
|
3256
|
|
POST
|
I found this example from the esri team on github. You solve this issue by calling identifyGraphicsOverlay on the MapView.
... View more
10-11-2019
10:12 AM
|
0
|
0
|
1485
|
|
POST
|
I'm trying to create a feature for my app in AppStudio 4 where if the user clicks on one of the points on the given map, the map extent and zoom will change to center the selected point. I can't figure out how to do this. Here's my code and explanations: I'm pulling the coordinates with a http request remotely. As the data gets updated, the points will update themselves. I was able to get this working fine. Inside my http request, for each data record, I use PointBuilder to create points and graphics on the map. See below: var sr = ArcGISRuntimeEnvironment.createObject("SpatialReference", { wkid: 4326 });
var pointBuilder = ArcGISRuntimeEnvironment.createObject("PointBuilder");
pointBuilder.spatialReference = sr;
pointBuilder.setXY(record.long, record.lat);
var geom = pointBuilder.geometry;
if (geom) {
var graphic = ArcGISRuntimeEnvironment.createObject("Graphic", { geometry: geom });
graphicsOverlay.graphics.append(graphic);
}
record refers to each data point I'm pulling with the http request. This works fine and I'm able to view my points on the map. But now, I want to click or tap on the point graphic and have it respond, for instance by centering the map on the selected point. Seems like pretty basic map-component interaction behavior. But I can't find much documentation on this. How can I go about doing this? Any ideas appreciated. Thanks!
... View more
10-10-2019
11:10 AM
|
0
|
2
|
1615
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 12-22-2021 09:40 AM | |
| 1 | 12-12-2024 08:04 AM | |
| 2 | 12-06-2024 05:09 PM | |
| 2 | 12-06-2024 03:17 PM | |
| 2 | 12-05-2024 09:57 AM |
| Online Status |
Offline
|
| Date Last Visited |
03-27-2026
11:53 AM
|