Blog

How to access Arguments in UI Events

How to access Arguments in UI Events?

Introduction: In this tutorial we will learn how to access arguments in UI events. Below example helps to create a map that the user can click to create a marker at the clicked point. UI events in the Maps JavaScript API normally send an event parameter, which the event listener can use to determine...

Cooperative Gesture Handling in Maps

Introduction: In this tutorial, we will see about the Cooperative Gesture Handling. When a user scrolls down a page that contains a map, the map may zoom in unintentionally. The gestureHandling map option can be used to control this behavior. hestureHandling: cooperative The gestureHandling option i...

How to Create Simple Google Maps

Introduction: This tutorial will help you learn about the basics of Google Maps. The simple map is created using JavaScript mentioning the longitude and the latitude of the required area. Code: let map: google.maps.Map; function initMap(): void { map = new google.maps.Map(document.getElementById("ma...