POST
|
Hello, I have a WPF application that uses ArcGIS Runtime for .NET 10.2.7. I have few WMS layers added to my map. My goal is to be able to handle exceptions that might be thrown when user is navigating in the map. (Those exceptions can be thrown when eg. internet connection went down, WMS service stopped working for a while, etc.) I am not able to catch those exceptions at all. What is the best approach to handle such cases? The thing that I am able to do is to catch exceptions thrown when layers are initializing. However, layers could still initialize correctly but later map navigation might fail. Thanks for any ideas. Jan
... View more
11-16-2017
06:57 AM
|
1
|
0
|
401
|
POST
|
Is it possible to set (working) binding on Layer.IsVisible property? As far as I tried, I could not manage to make it work. <esri:MapView> <esri:Map> <esri:WmtsLayer ServiceUri="http://geoportal.cuzk.cz/WMTS_ZM/WMTService.aspx" TileMatrixSet="jtsk:epsg:5514" IsVisible="{Binding ShowBaseLayer}"/> </esri:Map> </esri:MapView> On my view model, PropertyChanged event is raised properly whenever the ShowBaseLayer property changes. However, the layer is always visible, no matter what the value of ShowBaseLayer property is. Am I missing something here? Is my approach correct? (Binding works properly on the rest of my page, thus there is no problem with setting DataContext/wrong DataContext/etc. here) I am using ArcGIS Runtime 10.2.7 for Desktop. Thanks for any tips, Jan
... View more
08-22-2017
04:49 AM
|
0
|
1
|
630
|
POST
|
I am using ArcGIS Runtime 10.2.7 and I am trying hard to bind GraphicsLayer.GraphicsSource to my view model. However, whatever I do, GraphicsSource of the GraphicsLayer is always null. Is it possible to set binding on this property? Is there some kind of bug with binding on this property you forgot to mention in Docs? Am I doing something wrong or missing something? If take following code and inspect GraphicsLayer (eg. somewhere in codebehind), you will see that GraphicsSource is null. My view: <Window x:Class="EsriWpfApp1.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:EsriWpfApp1"
xmlns:esri="http://schemas.esri.com/arcgis/runtime/2013"
mc:Ignorable="d"
Title="MainWindow" Height="350" Width="525">
<Window.DataContext>
<local:MainViewModel/>
</Window.DataContext>
<Grid>
<esri:MapView>
<esri:Map>
<esri:GraphicsLayer GraphicsSource="{Binding Shapes}" />
</esri:Map>
</esri:MapView>
</Grid>
</Window> My ViewModel: public class MainViewModel
{
public GraphicCollection Shapes { get; set; } = new GraphicCollection();
}
... View more
08-18-2017
12:08 AM
|
0
|
0
|
487
|
Title | Kudos | Posted |
---|---|---|
1 | 11-16-2017 06:57 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|