谷歌地图:如何创建自定义信息窗口? [英] Google Maps: How to create a custom InfoWindow?

查看:41
本文介绍了谷歌地图:如何创建自定义信息窗口?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

地图标记的默认 Google 地图信息窗口非常圆.如何创建带有方角的自定义信息窗口?

解决方案

EDIT 经过一番摸索,这似乎是最好的选择:

.但是,它们看起来肯定不如屏幕截图中的示例那么好.

The default Google Maps InfoWindow for a map marker is very round. How do I create a custom InfoWindow with square corners?

解决方案

EDIT After some hunting around, this seems to be the best option:

https://github.com/googlemaps/js-info-bubble/blob/gh-pages/examples/example.html

You can see a customised version of this InfoBubble that I used on Dive Seven, a website for online scuba dive logging. It looks like this:


There are some more examples here. They definitely don't look as nice as the example in your screenshot, however.

这篇关于谷歌地图:如何创建自定义信息窗口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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