简体   繁体   English

Javascript v3 Google Maps旋转地图

[英]Javascript v3 Google maps rotate map

I cant seem to find anything about this anywhere. 我似乎在任何地方都找不到任何有关此的信息。 Its because i am trying to make the map rotate around the user. 这是因为我试图使地图围绕用户旋转。 google maps javascript v3 doesnt seem to be doing this. 谷歌地图的JavaScript V3似乎没有这样做。 wanting to ask google personally, their homepage directed me to stackoverflow. 想亲自问一下Google,他们的首页将我定向到了stackoverflow。 Is this at all possible? 这是可能吗? If not, have anyone heard the developers talk about implementing this feature in the future, or will it simple never be possible? 如果不是这样,有没有人听说过开发人员谈论将来实现此功能,或者说永远不可能做到这一点?

Compass datas aren't available in the JS API V3 Don't hesitate to refer to the documentation to see your possibilities using it https://developers.google.com/maps/documentation/javascript/reference 指南针数据在JS API V3中不可用。请随时参考文档以查看使用它的可能性https://developers.google.com/maps/documentation/javascript/reference

Google also update frequently the experimental version of its API, you can follow the changes https://developers.google.com/maps/documentation/javascript/3.exp/reference Google还经常更新其API的实验版本,您可以按照以下更改进行操作:https://developers.google.com/maps/documentation/javascript/3.exp/reference

Could be a fun project to work out with css3 options. 使用css3选项可能是一个有趣的项目。

Just rotate the whole map container. 只需旋转整个地图容器。

What about setHeading? setHeading呢? I believe that rotates the entire frame relative to the cardinal directions. 我相信这会相对于基本方向旋转整个框架。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM