|
POST
|
Hi, It looks like there are a few problems in the code. If you are using the default basemaps, the map's spatial reference will be WebMercator. Currently, the code is creating a new point with WebMercator coordinates while having a WGS84 spatial reference. var mapPoint = new MapPoint(point.X, point.Y, SpatialReferences.Wgs84); should change to var mapPoint = new MapPoint(point.X, point.Y, point.SpatialReference); But note that this step shouldn't be necessary at all. You could reference `point` directly without creating `mapPoint`. I also recommend a few other changes: Consider using `GeoViewTapped` instead of `MouseLeftButtonUp`, as that will save you from needing to call `ScreenToLocation` https://developers.arcgis.com/net/wpf/api-reference/html/E_Esri_ArcGISRuntime_UI_Controls_GeoView_GeoViewTapped.htm GeoViewInputEventArgs has a Location property. You should be able to add an overlay to the overlay collection rather than re-creating the collection each time. You can also add multiple graphics to a single overlay. If you just want to be able to draw graphics on the map, you should only need to set up the overlay once at startup. The ViewModel is being re-created every time the user clicks, and it isn't clear that the view is ever being re-configured to reference that ViewModel. The ViewModel would typically be created for the view only once. As written, I don't think you would ever see points, because a new ViewModel is created without the view being updated. Creating the symbol for the graphics each time is perfectly valid code, but there is a simpler way. You can define a renderer on the overlay and any graphics you add will be drawn with the defined symbol. There is an example here: https://github.com/Esri/arcgis-runtime-samples-dotnet/tree/main/src/WPF/ArcGISRuntime.WPF.Viewer/Samples/GraphicsOverlay/AddGraphicsRenderer I hope that helps. Let me know if you have any other questions.
... View more
06-21-2021
03:54 PM
|
1
|
6
|
6604
|
|
POST
|
Hi Jason, A previous version of our developer guide has a section dedicated to the migration from 10.2.x to 100.x versions of Runtime. The last version of the guide with that section was released with 100.9. You can access the developer guide download through the dashboard. I can't link to the 100.9 guide download directly, so be sure to scroll down to select that version. https://developers.arcgis.com/downloads/#net That document covers various conceptual differences, and also provides a table that maps the old namespaces and API names to the new names. For graphics specifically, that functionality has moved to GraphicsOverlay. GrahicsOverlays are added to MapView and SceneView, rather than Map and Scenes; the guide section on migration goes into more detail about those concepts. One more thing: the preferred approach for referencing the Runtime API is via the nuget package, ideally using the PackageReference format (rather than the old packages.config format). I understand that the nuget package includes some compatibility checks as well as other aspects of build configuration that may be missed with a manual direct reference to the contained DLL. This is a change from the documented process for referencing the ArcGIS Runtime API since 10.2.7. Good luck with the migration and please do let us know if you have any more questions.
... View more
04-02-2021
07:29 PM
|
0
|
3
|
2273
|
|
BLOG
|
This release introduces a totally new design inspired by common navigation app design patterns.
Designed for All Screen Sizes
This updated design uses a floating panel, consistent with popular iOS apps. This design is familiar and works well on both phones and tablets.
Phone
Tablet
Looks Great in Both Light and Dark Mode
The updated design makes use of the latest iOS 13 features, while retaining support for iOS 12. Where available, system materials and colors are used to support light and dark mode.
Light
Dark
Easy to Customize to Fit Your Brand
With the 2.0.0 release, font settings, margins, colors, and sizes are stored centrally in a single class, making it easier for developers to customize the app's appearance.
Default
Re-themed
Now Localization-Ready
With this release, all UI-related strings are stored centrally, enabling translation.
Updated to Latest ArcGIS Technology
Indoor Routing now uses ArcGIS Runtime 100.8, the latest release.
Next Steps
You can find the 2.0.0 release of Indoor Routing for Xamarin on GitHub.
... View more
06-26-2020
04:15 PM
|
0
|
0
|
847
|
|
POST
|
I recommend taking a look at ShapefileFeatureTable Class and GeometryEngine.MoveGeodetic Method. Together, you should be able to use GeometryEngine to determine where to place the points, and use the feature table to edit the shapefile. You can also use GeometryEngine to determine if a point is contained by a polygon.
... View more
06-10-2020
12:18 PM
|
0
|
0
|
1010
|
|
POST
|
I'm not sure I completely understand what you're trying to do. Could you please share some additional details about your app? In particular, I'm wondering what kinds of local files you're trying to access, how they are meant to be included in the project (what is the 'Build action' in Visual Studio?). How are you determining the expected path to the file? Have you included error handling/checked for any exceptions when attempting to load the local files?
... View more
06-10-2020
12:07 PM
|
0
|
0
|
943
|
|
POST
|
Sorry to hear you're having trouble with taking basemaps offline. I recommend taking a look at Export tiles | ArcGIS for Developers , which doesn't require publishing the map to ArcGIS Online. It sounds like you'll want something like the following process for your app: Define the map you need in code - basemap, KML layers, etc. Define the map area you want to take offline Use the export tiles task to take the basemap offline Save any additional content you need to the local device. And then when loading the offline map, you'll want to Create the map and create a basemap from the tile cache. Edit and sync features | ArcGIS for Developers happens to show loading a basemap from a tile cache. Open the saved KML and any additional content Note that you'll want to pay attention to the performance characteristics of the exported tiles; the performance differences can be counterintuitive when comparing vector and raster tiles, especially when dealing with small export extents.
... View more
06-10-2020
12:04 PM
|
0
|
0
|
1214
|
|
POST
|
Also want to add that navigation requires the Basic (or greater) license level.
... View more
06-04-2020
04:50 PM
|
0
|
0
|
1093
|
|
POST
|
The responsive form container is used to position content appropriately based on device type. It is a part of the sample viewer, and not a component of the Runtime API. Implementation is at arcgis-runtime-samples-dotnet/ResponsiveFormContainer.xaml at master · Esri/arcgis-runtime-samples-dotnet · GitHub Regarding navigation problems, there may be a licensing issue here. Does it work if you don't set the license and leave Runtime in the development mode?
... View more
06-04-2020
03:24 PM
|
0
|
1
|
1093
|
|
BLOG
|
New Mapping Features This release introduces mapping features that empower your users to work how they want to. This gives you flexibility to author more advanced web maps while being confident that users can access, refine, and understand them. Access key areas of the map with bookmarks. Refine the visibility of map content with the table of contents. Understand map content with the legend. Bookmarks Table of Contents Legend Design Updates In addition to mapping features, this release includes design updates to improve ease of use: Refreshed icons based on Esri's Calcite design system. Redesigned UWP interface makes better use of modern Windows 10 design. Updated WPF design now keeps buttons in a consistent location. Calcite Icons Updated UWP design Updated WPF design Next Steps You can find the 1.2 release of Data Collection for .NET on GitHub.
... View more
04-17-2020
11:00 AM
|
1
|
0
|
765
|
|
POST
|
Hi, Have you considered using AR Toolkit? It will handle control of the scene view camera using the device's sensors and AR Core. .NET Toolkit If you need to support devices that aren't capable of using AR Core, you should consider using the AR Toolkit as a reference. AR Toolkit is open source and includes a lot of code you may be able to repurpose. Please let me know if you have any questions. Thank you, Nathan C.
... View more
04-02-2020
02:11 PM
|
0
|
2
|
1237
|
|
POST
|
There is a sample for WPF demonstrating how to open and display a Shapefile: Feature layer (shapefile) | ArcGIS for Developers
... View more
10-09-2019
08:43 AM
|
0
|
0
|
853
|
|
POST
|
You should be able to accomplish this by setting the following properties: On the scene, set the base surface opacity to 0 to prevent rendering the ground: sceneView.Scene.BaseSurface.Opacity = 0; On the scene view, set the atmosphere effect to none - this will prevent rendering of the blue/gray sky: myScene.BaseSurface.Opacity = 0; If you're not interested in showing the attribution bar, you can disable that with sceneView.IsAttributionTextVisible. (note: be sure to follow the terms listed: https://developers.arcgis.com/terms/attribution/) In a future release, Runtime will support specifying options for the space effect (black background with stars). With that change, you'll be able to disable rendering the background so that the view behind the scene view is visible. That should enable you to display a model directly on top of your views without anything else visible.
... View more
07-26-2019
10:16 AM
|
1
|
1
|
1046
|
|
POST
|
Yes, we do support live viewshed analysis on Xamarin (iOS, Android, Forms iOS, and Forms Android). You can see our samples on GitHub iOS: https://github.com/Esri/arcgis-runtime-samples-dotnet/tree/master/src/iOS/Xamarin.iOS/Samples/Analysis Android: https://github.com/Esri/arcgis-runtime-samples-dotnet/tree/master/src/Android/Xamarin.Android/Samples/Analysis Forms: https://github.com/Esri/arcgis-runtime-samples-dotnet/tree/master/src/Forms/Shared/Samples/Analysis
... View more
07-17-2019
04:23 PM
|
0
|
1
|
845
|
|
POST
|
For Cordova development, a JavaScript/web technology may be the easier option. Have you considered the ArcGIS JavaScript API? You can find a demo of using the JavaScript API with PhonGap/Cordova on GitHub: https://github.com/Esri/quickstart-map-phonegap
... View more
06-24-2019
09:12 AM
|
0
|
1
|
966
|
|
POST
|
I'm sorry for the confusion. I see that the samples documentation is not up to date. FeatureLayer.SelectionWidth was deprecated at version 100.4 and has no effect at version 100.5. At version 100.5, only the selection color can be configured, and it is set on the MapView or SceneView rather than individual feature layers. MyMapView.SelectionProperties.Color = Color.Cyan; That sample has been updated to use the new selection API, but the changes are currently reflected on GitHub only. I've logged an issue internally to update the samples documentation. Edit: I did some more investigation and found this blog post which explains the reasoning behind the selection changes: https://www.esri.com/arcgis-blog/products/developers/announcements/selection-behavior-changes-in-runtime-100-5/
... View more
06-03-2019
08:53 AM
|
0
|
0
|
968
|
| Title | Kudos | Posted |
|---|---|---|
| 3 | 08-26-2022 03:48 PM | |
| 1 | 04-28-2022 02:31 PM | |
| 2 | 01-25-2022 03:12 PM | |
| 1 | 09-21-2021 02:26 PM | |
| 1 | 06-22-2021 12:22 PM |
| Online Status |
Offline
|
| Date Last Visited |
03-13-2024
01:51 AM
|