- Configuration
- API
- Main
- Events
- Overlays
- Layers
- Mixed
- Tools
on
on allows to attach events on the Google Maps objects.
It silently uses addListener or addDomListener depending on the object type (see
This function can be used on two ways:
Keys are the event names to bind. Values are either a handler or an array of handlers
Handler
In most case, the attached function takes two parameters:
In clustering case, the attached function takes four parameters: