英文:
How do you get a .Net Maui Map Center Location?
问题
如果用户滚动地图,我想获取地图中心下方的位置。我知道有Map.Frame.Center,但那是地图控件渲染的中心,而不是地图位置。
如果该属性不可用,是否有关于用户将地图移动到何处的任何信息可用?
英文:
If a user scrolls the map I'd like to get the location under the center of the map. I know there's the Map.Frame.Center, but that's the center of the map control rendering, not the map location.
If that property is not available is there any information available as to where the user has moved the map to?
答案1
得分: 2
使用 mymap.VisibleRegion.Center
英文:
Use mymap.VisibleRegion.Center
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论