Places UI Kit: A ready-to-use library that provides room for customization and low-code development. Try it out, and share yourinput on your UI Kit experience.

Code Samples

  • This page provides a comprehensive list of sample applications showcasing the features of the Maps JavaScript API.

  • These samples cover a wide range of topics including basic map manipulation, event handling, customization, drawing tools, layers, services and more.

  • The samples are categorized for easy navigation and include links to detailed documentation and tutorials.

  • Users can explore examples for specific functionalities like adding markers, drawing shapes, using layers, and integrating with various Google Maps services.

  • The page also includes links to sample code for libraries such as Drawing and Geometry, and experimental features like 3D maps.

Select platform:AndroidiOSJavaScript

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

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

Address Validation

Places (New)

Places Service (Legacy)

React Google Maps Library

Fun

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-11-21 UTC.