Class DrawingMarkerOptions
Options to apply to any new markers created with this DrawingManager.
Inheritance
Inherited Members
Namespace:GoogleMaps.Drawing
Assembly:GoogleMaps.dll
Syntax
public class DrawingMarkerOptions
Properties
Clickable
Indicates whether this Marker handles mouse events. Defaults to
true
.
Declaration
public bool Clickable { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
CrossOnDrag
If false, disables cross that appears beneath the marker when dragging. This option is true by default.
Declaration
public bool CrossOnDrag { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Cursor
Mouse cursor to show on hover.
Declaration
public string Cursor { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Draggable
If set to true, the user can drag this shape over the map. The geodesic
property defines the mode of dragging. Defaults to false
.
Declaration
public bool Draggable { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Icon
Icon for the foreground. If a string is provided, it is treated as though it were an Icon with the string as url.
Declaration
public string Icon { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Label
Adds a label to the marker. The label can either be a string, or a MarkerLabel object.
Declaration
public string Label { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Opacity
The marker's opacity between 0.0 and 1.0.
Declaration
public float Opacity { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
Optimized
Optimization renders many markers as a single static element. Optimized rendering is enabled by default. Disable optimized rendering for animated GIFs or PNGs, or when each marker must be rendered as a separate DOM element (advanced usage only).
Declaration
public bool Optimized { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Title
Rollover text
Declaration
public string Title { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Visible
Whether this marker is visible on the map. Defaults to
true
.
Declaration
public bool Visible { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
ZIndex
All markers are displayed on the map in order of their zIndex, with higher values displaying in front of markers with lower values. By default, markers are displayed according to their vertical position on screen, with lower markers appearing in front of markers further up the screen.
Declaration
public int ZIndex { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |