back to the principle, now functions for events are identical to google maps v3 events