Code Samples

Select platform: Android iOS JavaScript

Sample apps demonstrating the features of the Maps JavaScript API are listed below for quick reference. For samples that include step-by-step walkthoughs, please see our tutorials.

Basics

Events

Controls and Interaction

Customize a Map

Data-driven styling for boundaries

Web Components

Add markers to the Map

Advanced Markers

Markers (Legacy)

Draw on the Map

Layers

Vector Map Features

3D Maps (Experimental)

MapTypes

Services

Libraries: Drawing

Libraries: Geometry

Places

React Google Maps Library

Fun