开发者

With google maps, can you use google's own popup windows?

I've implemented a google map with points and stuff that uses an address that t开发者_运维问答he user inputs. When you click a point, the popup bubble appears with the name and address in.

Often this name and address is a prominent location, as it's used for meetings and things, such as a university. If you google the address yourself on maps.google.co.uk then you get google's own popup bubble, which often has a photo, information, opening hours, links to directions, reviews, etc. etc.

I am wondering if there's a way to use that popup dialog instead of my own, where it is available. I can't see anything in the API to do this.

I'm using V2 as we support IE6 in a lot of our users, but I've been told recently I can upgrade to V3 should I need functionality from it.

Any ideas?


If you've been told that you can upgrade to V3, I'd do so since the Maps V2 API is now deprecated. Unfortunately, the Maps V3 API removed support for FF 2, IE 6, and Safari 3

FWIW, I have an example of an InfoWindow (in V3) displaying an image here: http://jsfiddle.net/Kai/Unh2M/

An InfoWindow can contain HTML so you can fill it with whatever you want. The V2 API has a similar method, GInfoWindow -- there is an example of its usage here: http://code.google.com/apis/maps/documentation/javascript/v2/introduction.html#Info_Windows

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜