ZoomControlStyle - 大“小”按钮 [英] ZoomControlStyle - Large 'small' buttons
问题描述
我正在制作自定义的Google地图,并试图让 ZoomControl
看起来像一个
请参阅有关登录地图的文档以了解更多详情。
I am making a custom Google Map and trying to get the ZoomControl
to look like the one here, but if I use ZoomControlStyle.SMALL
I get very small zoom controls (see first screenshot) and if I use ZoomControlStyle.LARGE
I also get small zoom buttons but also the 'bar' (second screenshot).
I was wondering if there was a way to get the larger zoom control without the bar, I can't seem to find the option in the documentation and if you directly copy the code they supply, it shows up different than they display, oddly enough.
ZoomControlStyle.SMALL
ZoomControlStyle.LARGE
???
You need to set "signed_in=true" in the API include.
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&libraries=geometry&signed_in=true"></script>
See the documentation on signed in maps for more details.
这篇关于ZoomControlStyle - 大“小”按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!