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 />

GeocoderLocationType Class<br />

This class contains the different types of locations that can be returned from a geocode request.<br />

Constants<br />

Table A-41 gives the constants in the GeocoderLocationType class.<br />

Table A-41. Constants in the GeocoderLocationType Class<br />

Constant<br />

APPROXIMATE<br />

GEOMETRIC_CENTER<br />

RANGE_INTERPOLATED<br />

ROOFTOP<br />

Description<br />

An approximate location<br />

A center of a result such as a line or a polygon<br />

An approximated location between two precise points<br />

A precise geocode<br />

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

This class does not have any methods and has no constructor. Its instance is returned from<br />

addListener() and addDomListener() and is passed back to removeListener().<br />

event Namespace<br />

The following sections relate to the event namespace.<br />

Static Methods<br />

Table A-42 gives the static methods of the event namespace.<br />

Table A-42. The Static Methods of the event Namespace<br />

Static Method Return Value Description<br />

addDomListener(instance:Object,<br />

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

addDomListenerOnce(instance:Object,<br />

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

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

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

Provides a cross-browser event<br />

handler registration.<br />

Provides a cross-browser event<br />

handler registration that is<br />

automatically removed once it has<br />

been triggered.<br />

272

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

Saved successfully!

Ooh no, something went wrong!