开发者

How to get the latest version of Google Maps InfoWindow?

开发者 https://www.devze.com 2023-03-17 09:06 出处:网络
Trying to make infoWindows a little less uglier I found out that the infoWindows on Google Maps and the infoWindows created through API are different开发者_运维技巧.

Trying to make infoWindows a little less uglier I found out that the infoWindows on Google Maps and the infoWindows created through API are different开发者_运维技巧.

Illustration

Do I have to style infoWindows manually or it's possible to get those stylish ones through API?


The API does not provide for easy, direct, robust styling of the InfoWindow objects (or, if it does, it is not documented) except for a few small things. You can see what options are available at http://code.google.com/apis/maps/documentation/javascript/reference.html#InfoWindowOptions. As you can see, right now, there's nothing for things like rounded corners vs. not-rounded corners, etc. (Side question: What do you call corners that aren't rounded?)

So, sorry to say, it would seem like you are stuck messing with stylesheets, at least at the current time. Or you could use http://code.google.com/p/google-maps-utility-library-v3/source/browse/trunk/infobubble/src/infobubble.js as a starting point but that may be a lot of code for a small effect.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号