Android eclipse java 改变地图视图
我正在创建一个用于位置感知的移动应用程序。我创建了一个按钮,单击该按钮时我想在地图上的卫星视图和街景视图之间切换。我该怎么做呢?我创建了一个 if 语句,但当我在模拟器上运行它时它似乎不起作用。所以我创建了一个新类并改变了视图。有没有更简单的方法来执行此操作,因为它似乎仍然没有显示新类型的地图视图?
I am creating a mobile app for location awareness.. i created a button, for when the button is clicked i want to switch between Satellite and Street views on the map. How would i go about doing this? I have created an if statement but it doesn't seem to work when i run it on the emulator. So i created a new class and changed the view. Is there any easier way of doing this as it still doesnt seem to display the new type of map view?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
改变观点并不那么困难。
你必须有mapView。你可以使用
根据您的需要明智地。您可以使用单个按钮在两个视图之间切换。
changing view is not that difficult.
You must be having mapView. you can use
like wise as per your need. you can use single button to toggle between the two views.