Skip to main content
100%

Remove an overlay

✓ Published0🌍 Public
EEssohanamKouyou
Last edited Jan 5, 2018
Created on Jan 5, 2018

This example shows a Google Map of Newark, New Jersey, with a historical ground overlay—a 1922 map image sourced from the University of Texas libraries—that can be toggled on and off. Two UI buttons trigger the `removeOverlay()` and `addOverlay()` functions, which call `historicalOverlay.setMap(null)` and `historicalOverlay.setMap(map)` respectively. The map is initialized with the Google Maps JavaScript API, and the overlay is defined by explicit latitude and longitude bounds.

AI-generated description

Built with blockbuilder.org

mit Licensed

Similar vizzes