Alternatives to infowindow

前端 未结 4 1143
深忆病人
深忆病人 2021-01-13 16:13

On of the drawbacks of google maps infowindows is that map will move to make room for the infowindow to display. ebubble( http://econym.org.uk/gmap/ebubble.html) overcomes t

相关标签:
4条回答
  • 2021-01-13 16:47

    Depending on your needs (which aren't totally clear from your description), you might consider MapTooltip, which lets you put arbitrary HTML into a tooltip. I haven't used it, but it's mentioned in this excellent presentation on Google Maps.

    Alternatively, you might be able to make the InfoWindow do what you want with some event handling code. movestart and the InfoWindow's onOpenFn might let you do this - try catching movestart and remembering the map's position, then in your onOpenFn restore the position. This might look ugly, though.

    0 讨论(0)
  • 2021-01-13 16:47

    Did you see the EWindow?

    0 讨论(0)
  • 2021-01-13 17:02

    If you are willing to use the Google Maps Flash API, there is a way of opening info windows without the map panning. The info window stays open until the user closes it. The user can move the map while the window remains open.

    Link to example here. Right click map to view source.

    0 讨论(0)
  • 2021-01-13 17:03

    Have you tried using InfoBubble? I like this implementation better than the default InfoWindow.

    http://google-maps-utility-library-v3.googlecode.com/svn/trunk/infobubble/examples/example.html

    0 讨论(0)
提交回复
热议问题