Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我试过使用 map.SetView(LocationRect.CreateLocationRect(locations));
但问题是我还需要显示所有图钉。使用上述方法只考虑位置。一些图钉被裁剪,尤其是角落的图钉。
有一个更好的方法吗?谢谢。
You can increase the zoom level of map so that pushpins will be visible... try this. map1.ZoomLevel = 5;
LocationRect.CreateLocationRect(locations)为您提供位置的绑定框,因此您可以在将其传递给SetView
LocationRect.CreateLocationRect(locations)
SetView