如何在谷歌街景中使标记变大

发布于 2025-01-01 17:54:26 字数 74 浏览 3 评论 0原文

我想知道如何/是否可以使标记图标在谷歌地图街景视图中显示得比默认值更大。 (它们目前看起来非常小/很难看到。)

谢谢。

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

南渊 2025-01-08 17:54:26

您需要使用更大的图标(按像素),并通过 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/or scaledSize via the MarkerImage 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文