AnsweredAssumed Answered

Gray Map on .NET Runtime SDK WPF App on Getac E100

Question asked by pentex2008 on May 23, 2016
Latest reply on May 24, 2016 by pentex2008

Hi Everyone,

i'm struggling with this problem.

Have developed a simple base map application in WPF using .NET Runtime SDK 10.2.7 and VS2012.

Everything is working fine on my my developer PC (Win10); tested also on PCs with Win8 and Win7 and all it's OK.


Then I try to deploy the application on a GETAC E100 (which on paper fullfills all the ArcGIS runtime SDK requirements).

What happens is that the application runs without any error (I mean nowhere, MS event viewer, directX logs, nothing !!!) but the map remain simply GRAY !!! I can move the mouse on the map and I see the coordinates changing; I can even zoom pinching with my fingers: everything works but the map is gray; I don't even see the base grids.


The application loads a simple TPK package I prepared using the ESRI Samples (ExportTileCache sample).


Here is the loading code:


<esri:MapView x:Name="myMapView" WrapAround="True" Grid.Column="1" BorderBrush="#FF7F7F7F" Margin="0,0,5,5" Style="{StaticResource NoLogoStyle}">
            DefaultSymbol="{StaticResource NotMovingMarkerSym}" CourseSymbol="{StaticResource MovingMarkerSym}"
            IsEnabled="False" IsPingAnimationEnabled="False">
        <!--<esri:MessageLayer ID="MyMessageLayer"/>-->


VB.NET behind code

Public Sub New()
    ' This call is required by the designer.

    ' Force the spatial reference
    myMapView.Map.SpatialReference = SpatialReference.Create(3857)
End Sub

Private Async Sub MainWindow_Loaded(sender As Object, e As RoutedEventArgs) Handles Me.Loaded
    ' Load the mission map data
    Await LoadMissionMapData()
End Sub

Private Async Function LoadMissionMapData() As Task
        Dim misDataFile As String = System.AppDomain.CurrentDomain.BaseDirectory + My.Settings.MissionDataFolder + "\" + My.Settings.MissonDataFile
        Dim ltLayer = New ArcGISLocalTiledLayer(misDataFile)
        If ltLayer IsNot Nothing Then
            AddHandler myMapView.LayerLoaded, AddressOf MissionDataLoaded
        End If
    Catch ex As Exception
        MessageBox.Show("Error: Could not read file from disk. Original error: " + ex.Message)
    End Try
End Function

Private Async Sub MissionDataLoaded(sender As Object, e As LayerLoadedEventArgs)
    If e.LoadError IsNot Nothing Then
    End If
    If e.Layer IsNot Nothing AndAlso e.Layer.Status = LayerStatus.Initialized AndAlso e.Layer.DisplayName = "Mission Data" Then
        myMapView.MaximumExtent = e.Layer.FullExtent
        If myMapView.Map.SpatialReference Is Nothing Then
            Utils.WriteLog("WKID undefined")
        End If
    End If
End Sub


Please, any help ?