function initMap() {
    // Initial map settings
    let zoomLevel = 17; 
    if (window.innerWidth < 740) {
        zoomLevel = 18;
    }
    let options = {
        center: {
            lat: 28.493408,
            lng: -14.019035
        }, // Map center coordinates

        zoom: zoomLevel,
        tilt: 0,
        mapTypeId: 'satellite',
        styles: [
            // Hide museums, monuments, etc.
            {
                featureType: 'poi',
                stylers: [{
                    visibility: 'off'
                }]
            },

            // Hide stations, bus stops, etc.
            {
                featureType: 'transit',
                stylers: [{
                    visibility: 'off'
                }]
            }
        ],
        rotateControl: false,
        mapTypeControl: false,
        fullscreenControl: false,
        streetViewControl: false
    };

    // The map, centered at options
    let map = new google.maps.Map(document.getElementById('map'), options);

    // The polygons, around the markers
    drawTerrain(map);

    // Refresh/update graph
    refreshGraphScript();
}
// It initializes a google maps instance and draws all user fields(plots).

It initializes a google maps instance and draws all user fields(plots).
It initializes a google maps instance and draws all user fields ( plots ) .
function initMap() {
    let zoomLevel = 17; 
    if (window.innerWidth < 740) {
        zoomLevel = 18;
    }
    let options = {
        center: {
            lat: 28.493408,
            lng: -14.019035
        }, 
        zoom: zoomLevel,
        tilt: 0,
        mapTypeId: 'satellite',
        styles: [
            {
                featureType: 'poi',
                stylers: [{
                    visibility: 'off'
                }]
            },
            {
                featureType: 'transit',
                stylers: [{
                    visibility: 'off'
                }]
            }
        ],
        rotateControl: false,
        mapTypeControl: false,
        fullscreenControl: false,
        streetViewControl: false
    };
    let map = new google.maps.Map(document.getElementById('map'), options);
    drawTerrain(map);
    refreshGraphScript();
}
function initMap ( ) { let zoomLevel = 17 ; if ( window . innerWidth < 740 ) { zoomLevel = 18 ; } let options = { center : { lat : 28.493408 , lng : - 14.019035 } , zoom : zoomLevel , tilt : 0 , mapTypeId : 'satellite' , styles : [ { featureType : 'poi' , stylers : [ { visibility : 'off' } ] } , { featureType : 'transit' , stylers : [ { visibility : 'off' } ] } ] , rotateControl : false , mapTypeControl : false , fullscreenControl : false , streetViewControl : false } ; let map = new google . maps . Map ( document . getElementById ( 'map' ) , options ) ; drawTerrain ( map ) ; refreshGraphScript ( ) ; }
It initializes a google maps instance and draws all user fields(plots).
It initializes a google maps instance and draws all user fields ( plots ) .
// Initial map settings
 // Map center coordinates
 // Hide museums, monuments, etc.
 // Hide stations, bus stops, etc.
 // The map, centered at options
 // The polygons, around the markers
 // Refresh/update graph
