|
POST
|
Hello! What kind of wrong values are you seeing with the screenPoint? Can you provide some sample values of the inputs to "locationToScreen" and the incorrect output values you are getting? Where are the input points coming from? Also, what version of the Runtime SDK are you using? Thank you, Mark
... View more
04-06-2022
09:17 AM
|
0
|
0
|
828
|
|
POST
|
Hello. You can certainly use an AGSUniqueValueRenderer to accomplish what you want in a more performance-sensitive way. Another way would be to optimize the "for" loop where you are creating the graphics. Specifically: - create the two images outside of the loop. They don't need to be created each time - the same for the Symbols. Create the two symbols once, outside the "for" loop, then just use the appropriate symbol when creating the graphic - use one of the other AGSPoint initializers, such as AGSPointMakeWGS84, to eliminate creating an intermediate object (this was covered in a separate question) Finally, is there any way you could apply some optimizations to the "refreshData()" method? You are removing all graphics and recreating them each time. Is it possible to only remove/recreate a sub-set of them? If only the geometries are changing, you could possible simply update the geometries for the graphics, instead of recreating everything? Graphics have a "visible" property that allows you to hide/show them. You can also set a new geometry or symbol on the graphic without recreating it. Mark
... View more
04-05-2022
09:58 AM
|
2
|
1
|
1535
|
|
POST
|
Hello, thank you for your question! I suspect the problem lies with how you are creating the point geometry. You don't have to create an intermediate CLLocation, but instead you can create the point using your lat/long values directly. See the AGSPointMakeWGS84 method. The important thing is that the spatial reference of the coordinates you are using and the SpatialReference of the point created match. If they do, you shouldn't see the "movement" of your graphic in the overlay. Please let us know if that doesn't work for you. Good luck! Mark
... View more
04-05-2022
09:34 AM
|
1
|
1
|
1839
|
|
POST
|
Hello! I think your analysis is correct when you mention the locationTrackingMode == .initial as the culprit. In this line in ArcGISARView.swift you can see that the location data source is stopped if the tracking mode is anything other than .continuous. If you are depending on the location data source continuously providing location updates, use the ARLocationTrackingMode.continuous mode. Let us know if that doesn't solve your problem or you have other questions. Best of luck! Mark
... View more
03-24-2022
01:33 PM
|
1
|
0
|
937
|
|
POST
|
The Runtime will project points in a different SR than the scene to the correct SR. If it's working with what you have, then all is good. The important thing is to always specify a SpatialReference when creating geometries.
... View more
03-24-2022
12:56 PM
|
0
|
0
|
1121
|
|
POST
|
I misspoke in my earlier reply. The spatial reference of the Esri basemaps is `.webMercator`, not `.wgs84`. Sorry if there was any confusion.
... View more
03-24-2022
10:42 AM
|
0
|
1
|
1125
|
|
POST
|
If you are using one of the Esri basemaps, the spatial reference should be `.wgs84`, and the coordinate you sent should be fine as-is. Is there a vertical/altitude component in the data for each point? Those should be in meters if you are creating points for the polygon (the "z" value below): let point = AGSPoint(x: -116.5521466667, y: 33.824821666, z: 300.32, spatialReference: .wgs84()) I'm assuming you're creating AGSPoint s to add to the polygon; you should include a spatial reference for those (like above). So it's just the polygon and points that need the SR specified. As for calibration, you only need to calibrate the map/scene. You are correct, the objects are anchored in the map/scene, sorry for the confusion. For GraphicsOverlays, you don't need to do anything other than create one (or more) of them and add graphics to them. Because the graphics have a geometry, they know where to be drawn. You can add any graphics you want to an overlay, so you really only need one, unless you want to organize different graphics in different overlays to make them easy to manage; up to you. If you want, you can send me some representative data (and which basemap you're using) and I can try placing it in an overlay here. Are you using an elevation source in the scene? Thanks, Mark
... View more
03-18-2022
02:05 PM
|
1
|
0
|
1172
|
|
POST
|
Hello and thank you for your question! Are the object coordinates in the same spatial reference as the base map? Also, are you using an elevation source in your scene and do the coordinates have a `z` (elevation) component? Those are two common problems when displaying external data. Are you able to display the base map data OK? If you're using an elevation source, does the device show you are in the correct vertical position (meaning you're not showing up under the surface of the base data)? Esri has an open-source Toolkit for use with the iOS Runtime SDK. The Toolkit has an AR component you can look at for reference. From the Toolkit doc: The AR toolkit component is comprised of one class: `ArcGISARView`. This is a subclass of `UIView` that contains the functionality needed to display an AR experience in your application. It uses `ARKit`, Apple's augmented reality framework to display the live camera feed and handle real world tracking and synchronization with the Runtime SDK's `AGSSceneView`. The `ArcGISARView` is responsible for starting and managing an `ARKit` session. It uses a user-provided `AGSLocationDataSource` for getting an initial GPS location and when continuous GPS tracking is required. One final note: unless you're using an external, high-accuracy GPS, the device (iPhone/iPad) location/elevation can sometimes only be accurate to 40 meters, so your object and device location may not be where you think. In this case, a calibration step (which is also demonstrated in the Toolkit) may be warranted. Please let us know if you have more questions! Mark
... View more
03-18-2022
08:03 AM
|
1
|
2
|
1188
|
|
BLOG
|
This release includes: - The "Package.swift" file now has instructions on how to use a local installation ArcGIS Runtime SDK for iOS, if desired. - Fixed #156 - PopupController Example: initial size of added attachment images in incorrect. You can find the Toolkit here. See this blog post for information on the SDK release. We hope you enjoy the new release! Let us know what you're building with it.
... View more
12-15-2021
12:04 PM
|
2
|
0
|
622
|
|
POST
|
@bferrao - it appears to be an issue with the service. The fields below are causing the layer not to load: "typeIdField": "Subtype_Code", "subtypeFieldName": "Subtype_Code", "subtypeField": "Subtype_Code", There is no "Subtype_Code"; instead it should be "Service.Subtype_Code". The main problem wasn't the "Identify" operation, it was that the layer was unable to load (and therefore the Identify operation was never executed on the layer). I'll direct message you with more details. Mark
... View more
10-05-2021
01:22 PM
|
0
|
1
|
2533
|
|
POST
|
@bferrao Hello, I wanted to follow up and see if you've been able to resolve your issue.
... View more
09-14-2021
08:06 AM
|
0
|
3
|
2303
|
|
BLOG
|
This release includes: - Updated obsolete documentation links in the AR and Job components. - Updated SwiftLint to remove cocoapods directories from SwiftLint build phase. - Fixed an Xcode 13 Beta build error: `'shared' is unavailable in application extensions for iOS: Use view controller based solutions where appropriate instead.` See #150. You can find the Toolkit here. See this blog post for information on the SDK release. We hope you enjoy the new release! Let us know what you're building with it.
... View more
08-25-2021
03:16 PM
|
1
|
0
|
770
|
|
POST
|
@Selsoe The following is from a colleague who works with WMS Services: 499 errors are expected to happen over connections that suffer from a load interruption. These are just an internal server code that means that the client has closed the connection before processing the request and receiving the reply. I don’t think there is an authentication issue here. The errors might look worrying but I wouldn’t be alarmed especially that the user application is not affected. So nothing to worry about. Cheers, Mark
... View more
08-12-2021
12:06 PM
|
1
|
0
|
3695
|
|
POST
|
@Selsoe Thanks for the additional info. I will reach out to my colleagues and see what we can come up with. Mark
... View more
08-12-2021
08:44 AM
|
0
|
1
|
3701
|
|
POST
|
@Selsoe Take a look at this Esri Technical Support article and let me know if it matches your situation. If it doesn't, can you give some additional information about your service, the type of authentication it uses, etc? Mark
... View more
08-11-2021
06:47 AM
|
0
|
1
|
3717
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 07-30-2025 09:41 AM | |
| 2 | 11-25-2024 01:58 PM | |
| 2 | 08-19-2024 02:33 PM | |
| 1 | 05-31-2023 09:26 AM | |
| 1 | 04-19-2023 08:58 AM |
| Online Status |
Offline
|
| Date Last Visited |
08-18-2025
09:06 AM
|