[ Web Proxy ]
URL:
Viewing: https://developers.google.com/maps/documentation/javascript/examples [Back]  [Original]

Code Samples  |  Maps JavaScript API  |  Google for Developers Skip to main content
Send feedback

Code Samples Stay organized with collections Save and categorize content based on your preferences.

outlined_flag
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 walkthroughs, see our tutorials.

Basics

Events

Controls and Interaction

Customize a Map

Data-driven styling for boundaries

Data-driven styling for datasets

Web Components

Add markers to the Map

Advanced Markers

Markers (Legacy)

Draw on the Map

Layers

Vector Map Features

3D Maps

MapTypes

Services

Directions (Legacy)

Distance Matrix (Legacy)

Libraries: Drawing

Libraries: Geometry

Address Validation

Places (New)

Places UI Kit

Places Service (Legacy)

React Google Maps Library

Fun

Send feedback

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

Last updated 2026-08-19 UTC.

Need to tell us more? [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-08-19 UTC."],[],["This document provides a comprehensive collection of sample applications for the Maps JavaScript API. It covers a wide range of functionalities, including basic map displays, event handling, control customization, and map styling. Advanced features like data-driven styling, web components, and markers (both legacy and advanced) are detailed. Users can explore drawing tools, layers, 3D maps, various map types, and utilize services such as geocoding, directions, and places. Additionally, React Google Maps Library and some fun examples are also included.\n"]]

Web Proxy Viewer  |  New URL  |  Original Page