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.
Unfortunately, activation email could not send to your email. Please try again.

SfMaps crashes on Windows Phone 8.1

Thread ID:

Created:

Updated:

Platform:

Replies:

124190 May 24,2016 04:13 AM May 25,2016 08:55 AM Xamarin.Forms 1
loading
Tags: SfMaps
Bastien
Asked On May 24, 2016 04:13 AM

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

Jaganprabu D [Syncfusion]
Replied On May 25, 2016 08:55 AM

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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;