windows phone 8 old map vs new map

二次信任 提交于 2019-12-02 06:40:35

问题


I have a two WP8 projects. This is projects with map. First project with new Nokia maps and second project with old Bing maps. I noticed inappropriate behavior of old maps. They consume large amounts of memory, and when I go away from the maps then the memory is not freed. In WP7 Bing maps behave differently, it spent as much RAM memory, but when I go away from the map, the memory is immediately freed. How can I return the memory, I have a big problem with old maps, I exceed the limit of 90 Mb in my project ..

Screenshots below.

Any help.

Thanks in advance!

Project 1 Nokia Maps

After go away from map

Project 2 Old Bing maps

After go away from map


回答1:


I dunno if this could be help you but I found this

FYI: For Windows Phone 8 map control you need to use the TileSource class from Microsoft.Phone.Maps.Controls. (i.e. Microsoft.Phone.Maps.Controls.TileSource)

here : http://social.msdn.microsoft.com/Forums/wpapps/en-US/66512153-06d0-4269-996a-b4b7e5f995de/windows-phone-8-api-for-open-street-map-osm




回答2:


You can display static maps, use Jeff Wilcox library for such purpose. Check it here http://www.jeff.wilcox.name/2012/01/jeffwilcox-maps/.



来源:https://stackoverflow.com/questions/15876001/windows-phone-8-old-map-vs-new-map

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!