File GPS Layer

This sample demonstrates how to use the ArcGIS Runtime SDK for WPF to playback NMEA sentences from a log file to show a location on a map using the FileGpsCoordinateWatcher.

Download Sample Application
XAML C# VB.NET
<UserControl x:Class="ArcGISWPFSDK.FileGpsLayer"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:esri="http://schemas.esri.com/arcgis/client/2009">
    <UserControl.Resources>
        <esri:FileGpsCoordinateWatcher x:Key="fileGpsWatcher" Path = "..\Data\GPS\campus.txt" LoopPlayback="true" />
    </UserControl.Resources>
    <Grid>
        <esri:Map Extent="-13046586.9363318,4036013.64823107,-13045676.4100906,4036832.85611">
            <esri:ArcGISLocalTiledLayer ID="localTiledLayer" Path="..\Data\TPKs\Campus.tpk"/>
            <esri:GpsLayer GeoPositionWatcher="{StaticResource fileGpsWatcher}" />
        </esri:Map>
    </Grid>
</UserControl>

Sample code usage restrictions
5/16/2014