27.10.2014 Views

Google Maps API 3

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

Static Method Return Value Description<br />

addListener(instance:Object,<br />

eventName:string, handler:Function)<br />

addListenerOnce(instance:Object,<br />

eventName:string, handler:Function)<br />

clearInstanceListeners(<br />

instance:Object)<br />

clearListeners(instance:Object,<br />

eventName:string)<br />

removeListener(<br />

listener:<strong>Maps</strong>EventListener)<br />

trigger(instance:Object,<br />

eventName:string, var_args:*)<br />

<strong>Maps</strong>EventListener<br />

<strong>Maps</strong>EventListener<br />

None<br />

None<br />

None<br />

None<br />

Adds an event listener to a certain<br />

object and a certain event.<br />

Adds an event listener to a certain<br />

object and a certain event. Removes<br />

itself once it’s been triggered.<br />

Removes all event listeners that are<br />

bound to an object.<br />

Removes all event listeners of a<br />

certain type that are bound to an<br />

object.<br />

Removes a specific event listener.<br />

Triggers an event on a particular<br />

object. All the arguments passed<br />

after the eventName are passed as<br />

arguments to the event listener.<br />

MouseEvent Object<br />

The MouseEvent object is returned from almost all mouse events on almost all the different objects. The<br />

Marker object is the exception. It returns a MouseEvent object only on some of its mouse events.<br />

Properties<br />

Table A-43 gives the properties of the MouseEvent object.<br />

Table A-43. The Properties of the MouseEvent Object<br />

Property Type Description<br />

latLng LatLng The position of the mouse pointer at the time of the event<br />

273

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

Saved successfully!

Ooh no, something went wrong!