We just published several demo apps on GitHub: Esri/arcgis-runtime-demos-dotnet · GitHub
We'll be adding more demos over time, but currently these are the demos available today:
Geocode & Route on MouseMove
Turn-by-Turn Routing
Simple Portal Browser
Using an External GPS Device
If you have suggestions for other demo apps, please feel free to share in this thread and we might be able to add them as well.
Was there a reason why the External GPS Sample was not done for Windows Store? Is there limitations there?
Thanks
Simon
No reason in particular. You can do this with Windows Store and Windows Phone as well - however, note that you will have to use a Bluetooth device instead of a SerialPort (serial port not available in store/phone).
In fact the Wiki for the NmeaParser describes how to do this: Home · dotMorten/NmeaParser Wiki · GitHub
Also: The NmeaParser library has a different branch with an ArcGIS Runtime sample in it that works on both phone and store as well: dotMorten/NmeaParser at ArcGISLocationProvider · GitHub Note though that the sample hasn't been updated to 10.2.4 yet.
Thanks for the samples. I didn't notice a Navigation control in the Runtime or the ToolKit, is that still being worked on? Do you know if there are plans to add the IsLogoVisible property so the ESRI logo can be hidden?
Navigation control: It's not really much more than 4 buttons that pans the map. You can do that with 4 buttons too. We decided to not include it, since the map already does navigation just by dragging, clicking/pinching etc. Most apps are moving away from this - it was a carryover from earlier days. We don't have any plans at this point to create one.
Wrt to logo: You can remove the logo by overriding the default mapview control template. However, please note the terms of use before doing this.
Related tables including all the different scenarios (Role + Cardinality) would be good to see.
Is there sample code or an example showing how one is to properly override the default mapview control template?
Hey Matt,
In future, please use ArcGIS Runtime SDK for .NET for the questions.
You can override the template using Style or directly using ControlTemplate.
Using ControlTempalte it would be something like this
<Page.Resources>
<ControlTemplate x:Key="CustomMapTemplate" TargetType="esri:MapView">
<Border
Background="White"
BorderBrush="Black"
BorderThickness="1">
<Grid Margin="10">
<Border x:Name="MapSurface" />
<!-- Note: Before removing the following logo, please read the terms of use -->
<Image Source="/Esri.ArcGISRuntime/Logo.png"
HorizontalAlignment="Left"
VerticalAlignment="Bottom"
Stretch="Fill"
Margin="20"
IsHitTestVisible="False"
Width="56" Height="32" />
<Rectangle x:Name="ZoomBox" Fill="#55FFFFFF" Stroke="Red" StrokeThickness="2" Visibility="Collapsed" />
<Border x:Name="Overlay" />
</Grid>
</Border>
</ControlTemplate>
</Page.Resources>
And then setting it to the MapView
<esri:MapView Template="{StaticResource CustomMapTemplate}">
The simple way is to right-click your MapView control in the design view, select "Template -> create copy" from the context menu. Note though that there's a bug in Visual Studio preventing this from working right and creates an empty template in WinStore and WinPhone (we're working with Microsoft on resolving that), but it will work with WPF.
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.