android – 旋转谷歌地图而不是MapView

android – 旋转谷歌地图而不是MapView,第1张

概述我正在使用谷歌地图编写一个应用程序.这个应用程序的主要目的是在他移动时显示用户在地图上的位置.在这里,我想显示一个箭头图标作为用户,箭头必须指向用户移动方向,如图所示. 所以,在这里我必须旋转地图,以便在用户转动时箭头始终向上显示.我尝试了一些例子来旋转地图,但整个MapView正在旋转,我没有在整个屏幕上获取地图.某些区域为黑暗,某些区域为地图. 有没有办法旋转地图.如果你知道请回复我. 谢谢 我正在使用谷歌地图编写一个应用程序.这个应用程序的主要目的是在他移动时显示用户在地图上的位置.在这里,我想显示一个箭头图标作为用户,箭头必须指向用户移动方向,如图所示.

所以,在这里我必须旋转地图,以便在用户转动时箭头始终向上显示.我尝试了一些例子来旋转地图,但整个MapVIEw正在旋转,我没有在整个屏幕上获取地图.某些区域为黑暗,某些区域为地图.

有没有办法旋转地图.如果你知道请回复我.

谢谢

解决方法 确保您没有违反Google地图服务条款;
10.2子c:

10.2 Restrictions on the Types of Applications that You are Permitted to Build with the Maps API(s). Except as explicitly
permitted in Section 8 (licenses from Google to You) or the Maps APIs
documentation,you must not (nor may you permit anyone else to) do any
of the following:

(a) No “WrapPing.” You must not create or offer a “wrapper” for the
Service,unless you obtain Google’s written consent to do so. For
example,you are not permitted to: (i) use or provIDe any part of the
Service or Content (such as map imagery,geoCoding,directions,
places,or terrain data) in an API that you offer to others; or (ii)
create a Maps API Implementation that reimplements or duplicates
Google Maps. For clarity,you are not “wrapPing” the Service if your
Maps API Implementation provIDes substantial additional features or
content beyond Google Maps/Google Earth,and those additional features
or content constitute the primary defining characteristic of your Maps
API Implementation.

(b) No Business,ResIDential,or Telephone Listings Services. You must
not display business Listings Content in any Maps API Implementation
that has the primary purpose of making available business,resIDential
address,or telephone directory Listings.

(c) No Navigation,autonomous Vehicle Control,or Enterprise
Applications. You must not use the Service or Content with any
products,systems,or applications for or in connection with any of
the following:

(i) real time navigation or route guIDance,including but not limited
to turn-by-turn route guIDance that is synchronized to the position of
a user’s sensor-enabled device.

(ii) any systems or functions for automatic or autonomous control of
vehicle behavior; or

(iii) enterprise dispatch,fleet management,business asset tracking or similar applications. If you want to engage in enterprise dispatch,business asset tracking,or similar applications,please contact the Google Maps API PremIEr sales team to obtain a Google enterprise license. (If you are offering a non-enterprise implementation,you may use the Google Maps API(s) to track assets such as cars,buses or other vehicles,as long as your tracking application is made available to the public without charge. For example,you may offer a free,public Maps API Implementation that displays real-time public transit or other transportation status information.)

总结

以上是内存溢出为你收集整理的android – 旋转谷歌地图而不是MapView全部内容,希望文章能够帮你解决android – 旋转谷歌地图而不是MapView所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1126461.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-30
下一篇 2022-05-30

发表评论

登录后才能评论

评论列表(0条)

保存