Code Samples

Select platform: Android iOS JavaScript

All of the examples contained in the Maps JavaScript API documentation set are listed below for quick reference.

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

MapTypes

Services

Libraries: Drawing

Libraries: Geometry

Places

Fun