We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

SfMaps crashes on Windows Phone 8.1

Hi,

I'm trying to use the component SfMaps on Windows phone 8.1. It does Initialize and shows on Android and iOS, but it crashes on Windows phone

I've got 2 errors that are raised when I'm trying to access the screen where my map is:

Error: BindingExpression path error: 'ShowDistanceScale' property not found on 'Syncfusion.UI.Xaml.Maps.ShapeFileLayer'. BindingExpression: Path='ShowDistanceScale' DataItem='Syncfusion.UI.Xaml.Maps.ShapeFileLayer'; target element is 'Windows.UI.Xaml.Controls.Grid' (Name='PART_DistanceScaleGrid'); target property is 'Visibility' (type 'Visibility')

Error: BindingExpression path error: 'Distance' property not found on 'Syncfusion.UI.Xaml.Maps.ShapeFileLayer'. BindingExpression: Path='Distance' DataItem='Syncfusion.UI.Xaml.Maps.ShapeFileLayer'; target element is 'Windows.UI.Xaml.Controls.TextBlock' (Name='null'); target property is 'Text' (type 'String')

I'm not using those properties.

My Xaml: 

    <maps:SfMaps VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand" x:Name="map">
      <maps:SfMaps.Layers>
        <maps:ShapeFileLayer Uri="XXX.shp" EnableSelection="True" x:Name="layers" ShapeSelected="ItemSelected"/>
      </maps:SfMaps.Layers>
    </maps:SfMaps>

Am I missing something required for Windows Phone but optional for the other OS?
I did add the "new SfMapsRenderer();" on my MainPage.xaml.cs for my windows phone 8.1 projet.

Do you have any ideas why?

Sincerely,
Bastien

1 Reply

JD Jaganprabu D Syncfusion Team May 25, 2016 12:55 PM UTC

Hi Bastien,

We have logged issue report for "Map does not initialize and crashes occurring in windows phone". The fix for this issue will be available in our Essential studio Volume 2 release which is expected to be released on the mid of June 2016

Regards,
Jaganprabu.D

Loader.
Up arrow icon