Windows Phone Map控件显示所有位置(放大以包括所有图钉) [英] windows phone map control show all locations (zoom to include all pushpins)

查看:85
本文介绍了Windows Phone Map控件显示所有位置(放大以包括所有图钉)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用 map.SetView(LocationRect.CreateLocationRect(locations));

I've tried using map.SetView(LocationRect.CreateLocationRect(locations));

但是问题是我也需要显示所有图钉.使用上述方法仅考虑位置.一些图钉会被裁剪,尤其是角落的图钉.

But the thing is I need the all the pushpins to be shown as well. Using the above method only takes the location into account. Some pushpins gets cropped especially corner ones.

是否有更好的方法可以做到这一点?谢谢.

Is there a better way to do this? Thanks.

推荐答案

You can increase the zoom level of map so that pushpins will be visible...
try this.
map1.ZoomLevel = 5;

这篇关于Windows Phone Map控件显示所有位置(放大以包括所有图钉)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆