none
XAML map control RRS feed

  • Question

  • Hello, I am working on a universal windows platform application and wanted to work with a custom map control as on the current Bing Map Control, the tiles take time to load in and while loading the map goes black. I found out a control named "XAML map control" on codeplex, Link: https://xamlmapcontrol.codeplex.com/ the control works great, but the issue is on zooming in the polyline tends to blur and almost go transparent at full zoom. Does anyone face the same issue? Does anyone has an alternate way past it or a different map control that I can use. I need help.
    My Original Question on Stack overflow:
    http://stackoverflow.com/questions/39911266/xaml-map-control-for-windows-rt

    All pictures are included in the above link.
    Wednesday, October 12, 2016 10:19 AM

Answers

  • If you're building a UWP app, you should probably be using the built-in XAML map control that shipped with Windows 10. There's no need to use any external SDK, and it doesn't have any of the issues your screenshots show.

    Get started here:

    https://msdn.microsoft.com/en-us/library/windows/apps/xaml/dn615001.aspx

    Wednesday, October 12, 2016 5:18 PM
    Moderator
  • I've never heard of an issue like that being reported. If you're attempting to completely replace the default map data with something else (not sure why you'd want to do that - the map data is usually much better than OSM), then you would normally set the map style to none, and then add a tile layer as described here:

    https://msdn.microsoft.com/en-us/library/windows/apps/xaml/dn632728.aspx

    Loading performance of tile layers is generally pretty good, usually much faster than a web control (but not as fast as the built-in maps which use vector data, not raster tiles).

    Wednesday, October 12, 2016 6:03 PM
    Moderator

All replies

  • If you're building a UWP app, you should probably be using the built-in XAML map control that shipped with Windows 10. There's no need to use any external SDK, and it doesn't have any of the issues your screenshots show.

    Get started here:

    https://msdn.microsoft.com/en-us/library/windows/apps/xaml/dn615001.aspx

    Wednesday, October 12, 2016 5:18 PM
    Moderator
  • @Duncan Lawler Hello, thank you for getting back to me, I was using the Map Control that came in with it, the issue is, when I apply a map tile to it, a slightly heavier one than the OSM one, the map control turns black till the tile is loaded. Also when zooming in and zooming out, the map control goes black and square by square loads the map tile which affects the application performance. If you say, it's not the issue now then Could you please help me out so solve as to why is that happening. PS: a white background may also be able work, but a black out in a light theme application simply gives a bad experience.
    Wednesday, October 12, 2016 5:35 PM
  • I've never heard of an issue like that being reported. If you're attempting to completely replace the default map data with something else (not sure why you'd want to do that - the map data is usually much better than OSM), then you would normally set the map style to none, and then add a tile layer as described here:

    https://msdn.microsoft.com/en-us/library/windows/apps/xaml/dn632728.aspx

    Loading performance of tile layers is generally pretty good, usually much faster than a web control (but not as fast as the built-in maps which use vector data, not raster tiles).

    Wednesday, October 12, 2016 6:03 PM
    Moderator
  • Yes, I am aware about the stock map control using vector data where as raster tiles and to be completely honest, I too have a sketchy idea as to why I must be using a map tile as my employer instructs me to use it. Thank you for all the links. I just have one query with the last reply, I don't completely understand setting map style to none. Did you mean clearing the stock bing map vector data so that I could replace it with the tile? Secondly, I would attach screenshots of the map control going black while loading tiles by tomorrow if needed. Again, thank you very much.
    Wednesday, October 12, 2016 6:20 PM
  • This issue should not be discussed here at all, because it is about an open source map control library, which is not related to Bing Maps for UWP.

    Please refer to my response on the library's home page: https://xamlmapcontrol.codeplex.com/discussions/658670

    Besides that, I wouldn't agree to the statement that Bing Maps "data is usually much better than OSM". This is definitely not true for large parts of Europe.




    • Edited by ClemensF Thursday, October 13, 2016 8:32 AM
    Thursday, October 13, 2016 8:30 AM
  • Setting map style to none tells the control to not load the base map vector data at all so that you don't waste time loading data just to cover it up with a raster tile.

    You can control the tile animation behavior with flags so that they smoothly fade in rather than just appearing.

    Thursday, October 13, 2016 10:32 PM
    Moderator
  • Hello, Thank you for the reply and I am sorry to get back this late. I researched on the flags as you mentioned. By flags did you mean 
    1. Layer,

    2. AllowOverstretch,

    3. IsRetryEnabled

    4. IsTransparencyEnabled

    if yes then, I used these and they didn't seem make any noticeable difference. If not could you please tell me more about the flags you mentioned. 

    Monday, October 24, 2016 5:10 AM
  • I think you want IsFadingEnabled

    https://msdn.microsoft.com/en-us/library/windows/apps/xaml/windows.ui.xaml.controls.maps.maptilesource.isfadingenabled.aspx

    Monday, October 24, 2016 11:02 PM
    Moderator
  • @Duncan Thank you for getting back to me. I forgot to mention, I have used IsFadingenabled, with no luck it doesn't work too. Also after your mention of it, I retried the same again and it has no effect on the tile getting black before they are loaded. Should I share my source code? it'll very kind of you to help me out with the blacking of the tiles while loading.
    Thursday, October 27, 2016 5:04 AM