|
POST
|
It looks like you have a point in the web mercator spatial reference (which is what the Esri basemaps tend to use) and want to get that point in WGS84, which is what GPS and most consumer services use. CoordinateFormatter should work. There is an example in the Format Coordinates sample: https://developers.arcgis.com/net/wpf/sample-code/format-coordinates/. Can you please share your code so I can understand what might be happening? Until then, you can use GeometryEngine to project from web mercator to WGS84: using Esri.ArcGISRuntime.Geometry;
//....
MapPoint inputPoint = new MapPoint(-10503190, 5653794, SpatialReferences.WebMercator);
var outputPoint = (MapPoint)GeometryEngine.Project(inputPoint, SpatialReferences.Wgs84);
System.Diagnostics.Debug.WriteLine($"{outputPoint.Y}, {outputPoint.X}");
// output: 45.20462984270032, -94.35176109011317
... View more
06-22-2021
07:02 PM
|
0
|
2
|
5827
|
|
POST
|
When a graphic is added to a graphics overlay that is already in a mapview or sceneview, the graphic will be shown automatically, assuming there is a renderer or the graphic is configured with a symbol. Based on the code you shared, it looks like you're following the pattern set in the template projects and the developer tutorials. If that is the case, you will see something like the following in your MainWindow.xaml file: <Window.Resources>
<local:MapViewModel x:Key="MapViewModel" />
</Window.Resources> That code will create an instance of your viewmodel when InitializeComponent is called. The MapView's Map and GraphicsOverlays properties are set via binding: <esri:MapView x:Name="MainMapView"
Map="{Binding Map, Source={StaticResource MapViewModel}}"
GraphicsOverlays="{Binding GraphicsOverlays, Source={StaticResource MapViewModel}}" /> The view is bound to the specific instance of the viewmodel that is added to the `Window.Resources` dictionary. Your code is creating another instance of viewmodel, but that instance is never connected to the view in any way, so the view won't update to reflect changes in viewmodel state. You could fix this by re-setting up bindings when you create the viewmodel, or by using the existing viewmodel instance created in XAML. I recommend updating your code to reference the copy of the ViewModel created in XAML: You could use something like the following to get a reference to the viewmodel: mvm = FindResource("MapViewModel") as MapViewModel;
... View more
06-22-2021
12:22 PM
|
1
|
1
|
8229
|
|
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
|
8264
|
|
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
|
3029
|
|
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
|
988
|
|
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
|
1382
|
|
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
|
1283
|
|
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
|
1516
|
|
POST
|
Also want to add that navigation requires the Basic (or greater) license level.
... View more
06-04-2020
04:50 PM
|
0
|
0
|
1523
|
|
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
|
1523
|
|
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
|
1044
|
|
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
|
1767
|
|
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
|
1114
|
|
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
|
1544
|
|
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
|
1146
|
| 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-18-2026
05:34 PM
|