Class InfoWindowOptions
The options for the markers' info window.
Inheritance
Inherited Members
Namespace:GoogleMaps.Markers
Assembly:GoogleMaps.dll
Syntax
public class InfoWindowOptions : IScriptDescriptorData
Properties
DisableAutoPan
Disable auto-pan on open. By default, the info window will pan the map so that it is fully visible when it opens.
Declaration
public bool ? DisableAutoPan { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> |
|
MaxWidth
Maximum width of the infowindow, regardless of content's width.
Declaration
public int ? MaxWidth { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> | The width of the max. |
PixelOffset
The offset, in pixels, of the tip of the info window from the point on the map at whose geographical coordinates the info window is anchored. If an InfoWindow is opened with an anchor, the pixelOffset will be calculated from the top-center of the anchor's bounds.
Declaration
[PersistenceMode(PersistenceMode.InnerProperty)]
public Size PixelOffset { get; set; }
Property Value
Type | Description |
---|---|
Size | The pixel offset. |
Position
The LatLng at which to display this InfoWindow. If the InfoWindow is opened with an anchor, the anchor's position will be used instead.
Declaration
[PersistenceMode(PersistenceMode.InnerProperty)]
public LatLng Position { get; set; }
Property Value
Type | Description |
---|---|
LatLng | The position. |
ZIndex
All InfoWindows are displayed on the map in order of their zIndex, with higher values displaying in front of InfoWindows with lower values. By default, InfoWinodws are displayed according to their latitude, with InfoWindows of lower latitudes appearing in front of InfoWindows at higher latitudes. InfoWindows are always displayed in front of markers.
Declaration
public int ? ZIndex { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> | The index of the Z. |
Methods
FromScriptData(Object)
Retrieves an instance from script data.
Declaration
public static InfoWindowOptions FromScriptData(object scriptObject)
Parameters
Type | Name | Description |
---|---|---|
System.Object | scriptObject | The script object. |
Returns
Type | Description |
---|---|
InfoWindowOptions |
ToScriptData()
Returns the instance as a script data.
Declaration
public IDictionary<string, object> ToScriptData()
Returns
Type | Description |
---|---|
System.Collections.Generic.IDictionary<System.String, System.Object> |