Html 我可以重新设计谷歌地图的信息窗口以使其看起来不那么糟糕吗?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/4747660/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-29 06:15:34  来源:igfitidea点击:

Can I re-style google map's infowindows to look less crappy?

htmlgoogle-mapsgoogle-maps-api-3

提问by Haroldo

The chunky speech bubble things look pretty crap in my opinion, i'd like something much tidier and more minimal.

在我看来,厚实的讲话泡泡看起来很垃圾,我想要更整洁、更简约的东西。

Are there any native ways to change the info box style without manually replacing the elements with js each time an infowindow is shown (clumsy)?

是否有任何本地方法可以更改信息框样式,而无需在每次显示信息窗口时手动用 js 替换元素(笨拙)?

I'm using google maps api v3.

我正在使用谷歌地图 api v3。

回答by Brett

I'm currently working on a project and had a similar requirement. I used this:

我目前正在做一个项目并且有类似的要求。我用过这个:

Infobox from: http://google-maps-utility-library-v3.googlecode.com/svn/trunk/infobox/docs/examples.html

信息框来自:http: //google-maps-utility-library-v3.googlecode.com/svn/trunk/infobox/docs/examples.html

It did exactly what I needed it to. I does require minor JS changes, but works pretty well.

它完全符合我的需要。我确实需要对 JS 进行细微的更改,但效果很好。

Good luck!

祝你好运!