Select to view content in your preferred language

ArcGIS Runtime .NET SDK demo sample apps now available

4661
8
10-08-2014 11:27 AM
Labels (1)
dotMorten_esri
Esri Notable Contributor
2 8 4,661

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 - Demonstrates fast reverse geocoding and routing during mouse-move on Windows Store and Windows Desktop.
  • Turn-by-Turn Routing - A universal turn-by-turn app that shows routing and navigation on Windows Phone, Windows Store and Windows Desktop.
  • Simple Portal Browser - A universal ArcGIS Portal Map Browser app on Windows Phone, Windows Store and Windows Desktop.
  • Using an External GPS Device - A Windows Desktop app showing how to use data from an external GPS or NMEA log file to power the MapView's LocationDisplay.

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.

8 Comments
SimonFisher
Frequent Contributor

Was there a reason why the External GPS Sample was not done for Windows Store?  Is there limitations there?

Thanks

Simon

dotMorten_esri
Esri Notable Contributor

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.

KeithMacIntyre
Deactivated User

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? 

dotMorten_esri
Esri Notable Contributor

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.

JohnSelkirk
Regular Contributor

Related tables including all the different scenarios (Role + Cardinality) would be good to see.

MattHanson
Deactivated User

Is there sample code or an example showing how one is to properly override the default mapview control template?

AnttiKajanus1
Deactivated User

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}">

dotMorten_esri
Esri Notable Contributor

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.