Fork me on GitHub
Show:

GoogleEvents

Summary

Helper for binding events to google maps objects.

Constructor

aeris.maps.gmaps.GoogleEvents

Syntax

aeris.maps.gmaps.GoogleEvents

()

Summary

Item Index

Properties

Methods

listenTo

Syntax

listenTo

(
  • obj
  • event
  • opt_handler
  • opt_ctx
)

Summary

Listen to events triggered by a google maps object.

Parameters:

  • obj Object

    Google maps object.

  • event Object.<string,Function>|string

    An events hash, or a topic.

  • opt_handler Function=

    If used with an event string, the handler for that topic. If using an event hash, this argument is the ctx.

  • opt_ctx Object=

    Context within which to call the handler.

stopListening

Syntax

stopListening

(
  • opt_obj
)

Summary

Stop listening to events which were bound using 'listenTo'.

If you pass in an object, only events tied to that object will be removed.

Parameters:

  • opt_obj Object

    A Google maps object.

Properties

listeners_

Syntax

listeners_

Array private

Summary

A cache of event bindings being managed by this object.