27.10.2014 Views

Google Maps API 3

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

APPENDIX ■ <strong>API</strong> REFERENCE<br />

Table A-19. The Properties of the MarkerOptions Object<br />

Property Type Description<br />

clickable boolean Enables and disables if the marker should respond to<br />

mouse and touch events. The default value is true.<br />

cursor string The name of a standard cursor or the URL to an image<br />

that will be used as a cursor when the user holds the<br />

mouse over the marker.<br />

draggable boolean Enable or disables the marker to be draggable. The<br />

default value is false.<br />

flat boolean Enables or disable the marker shadow. If set to true, the<br />

shadow will be disabled, and vice versa. The default<br />

value is false.<br />

icon string|MarkerImage The marker icon.<br />

map Map|StreetViewPanorama The map on which the marker will appear.<br />

position LatLng The position of the marker.<br />

shadow string|MarkerImage The marker’s shadow.<br />

shape MarkerShape The clickable area of the marker.<br />

title string The title of the marker. It will be displayed as a tooltip<br />

when the user holds the mouse over it.<br />

visible boolean Shows or hides the marker. The default value is true.<br />

zIndex number The order of the marker in the stack of markers.<br />

MarkerImage Class<br />

The following sections relate to the MarkerImage class.<br />

Constructor<br />

Table A-20 gives the constructor of the MarkerImage class.<br />

259

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!