ZoomControlStyle - 大“小”按钮 [英] ZoomControlStyle - Large 'small' buttons

查看:82
本文介绍了ZoomControlStyle - 大“小”按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在制作自定义的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>

fiddle demonstating that UI

See the documentation on signed in maps for more details.

这篇关于ZoomControlStyle - 大“小”按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆