如何在谷歌街景中使标记变大
我想知道如何/是否可以使标记图标在谷歌地图街景视图中显示得比默认值更大。 (它们目前看起来非常小/很难看到。)
谢谢。
I was wondering how/if it was possible to make marker icons appear larger than the default in google maps street view. (they currently show up really small/hard to see.)
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要使用更大的图标(按像素),并通过
MarkerImage
类设置图标的size
和/或scaledSize
。这是一个快速而肮脏的示例:
http://jsfiddle.net/AdnGH/
这是相关文档:
http://code.google.com/apis/maps/documentation/javascript/reference.html#MarkerImage
You need to use a larger icon (pixel-wise) and also set the
size
of the icon and/orscaledSize
via theMarkerImage
class.Here is a quick and dirty example:
http://jsfiddle.net/AdnGH/
Here is the relevant documentation:
http://code.google.com/apis/maps/documentation/javascript/reference.html#MarkerImage