This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const mapCenterPosition = {lat: 45.438759, lng: 12.327145} // venice | |
const SQUARE_SIZE = 970; // mt | |
// quick way to lock the drawing on the first bounds_changed event | |
let drawn = false; | |
// all of the drawn rectangles | |
let rectangles = [] | |
window.initMap = () => { | |
const map = new google.maps.Map(document.getElementById("map"), { | |
zoom: 14, | |
center: mapCenterPosition |