On Sep 14, 1:27 pm, 3D-kreativ <
p...@telia.com> wrote:
> Hi, I just wonder if it's possible to show an infoWindow without a
> marker? And how that is done? Thanks!
Have you tried the documentation? (just be sure to specify a position,
and don't give it an anchor...)
except from .open()
Optionally, an InfoWindow can be associated with an anchor. In the
core API, the only anchor is the Marker class.
http://code.google.com/apis/maps/documentation/javascript/reference.html#InfoWindow
InfoWindow(opts?:InfoWindowOptions)
Creates an info window with the given options. An InfoWindow can be
placed on a map at a particular position or above a marker, depending
on what is specified in the options. Unless auto-pan is disabled, an
InfoWindow will pan the map to make itself visible when it is opened.
After constructing an InfoWindow, you must call open to display it on
the map. The user can click the close button on the InfoWindow to
remove it from the map, or the developer can call close() for the same
effect.
open(map:Map|StreetViewPanorama, anchor?:MVCObject)
None
Opens this InfoWindow on the given map. Optionally, an InfoWindow can
be associated with an anchor. In the core API, the only anchor is the
Marker class. However, an anchor can be any MVCObject that exposes the
position property and optionally pixelBounds for calculating the
pixelOffset (see InfoWindowOptions).