View a markdown version of this page

Example: Style a map - Amazon Location Service

Example: Style a map

Side-by-side comparison of light and dark map themes showing Vancouver area.

This code example shows how to switch between a satellite map and a vector road map, using MapLibre in JavaScript. Uses MapLibre, the Amazon Location authentication helper, and JavaScript.

Geospatial GitHub link: Interactive map with style switching