Blog

How to Use Simple Click Events in Maps?

Introduction: This tutorial shows how to use event listeners with simple click events. When a marker is clicked, this function listens for the click event and zooms the map. After 3 seconds, it listens for the center changed event and pans the map back to the marker. User events (such as mouse click...

How to Listen DOM Events in Maps?

Introduction: In this tutorial, we will learn how to listen to DOM Events. Custom events are created and managed through the Maps JavaScript API event model. The DOM (Document Object Model) within the browser, on the other hand, develops and dispatches its own events based on the browser event model...