Bug 57270 - UWP map custom renderer ignores custom icon and mapspan
Summary: UWP map custom renderer ignores custom icon and mapspan
Status: CONFIRMED
Alias: None
Product: Forms
Classification: Xamarin
Component: Windows ()
Version: 2.3.4
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-06-08 10:59 UTC by NMackay
Modified: 2017-06-21 13:25 UTC (History)
2 users (show)

Tags: ac, uwp, map, mapspan, pins
Is this bug a regression?: ---
Last known good build:


Attachments
PCL UWP demo project (109.76 KB, application/x-rar)
2017-06-08 10:59 UTC, NMackay
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report for Bug 57270 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
CONFIRMED

Description NMackay 2017-06-08 10:59:15 UTC
Created attachment 22773 [details]
PCL UWP demo project

Hi,

This bug repo highlights three issues that exist in the UWP map renderer

1) If you change the map marker icon in the renderer the existing marker icon remains although the new asset is shown also, intermittent since 2.3.3 when we 1st wrote this renderer.

2) The mapspan is been ignored (appeared in 2.3.4)

3) If you rotate the map the app crashes, comment out the following line in the renderer:

_nativeMap.RotateInteractionMode = MapInteractionMode.Disabled;

Tested on Nokia Lumia 650, OS build 10.0.15063.297
Windows SDK: 10.0.14393.0
Forms 2.3.4.247

As it stands the map control is pretty unusable for us in UWP at present.

Thanks.
Comment 1 Jimmy [MSFT] 2017-06-08 18:52:06 UTC
Hey Norman, thanks for filing this! I was able to reproduce all three issues with 2.3.4.247.

Fortunately I did notice some improvements when testing with 2.3.5-pre3:

- The rotation crash seems to be resolved
- The MapSpan seems to now work intermittently 

As for the map marker issue, I think what is happening is that unlike on iOS or Android, if multiple markers are placed at the same coordinates in the UWP they will all be visible instead of only the topmost.

However I'm not sure if this is a platform issue or something we can fix on our end. But in the meantime, a quick workaround for this is to only add the pin to your custom pin collection and _not_ the Forms Map collection on UWP. This will prevent the default pin from being added to the control.

I'll confirm this report so we can look further into the map span and marker issues. Thanks!
Comment 2 NMackay 2017-06-08 19:16:19 UTC
Thanks Jimmy
Comment 3 NMackay 2017-06-12 09:27:08 UTC
Hi Jimmy,

Thanks for the custom pins tip, I can confirm that resolves the duplicate marker issue.

The mapspan is the main blocking issue now.

Thanks.
Comment 4 NMackay 2017-06-14 12:18:17 UTC
I can confirm I'm seeing better results with mapspan in 2.3.5 pre3.