function popUpMapError(msg, only) {
    msg += '<p>We recommend using a device that can access GPS satellites, Wi-Fi networks, and mobile networks. However you are free to use most of the features. Close this dialogue to start.</p>'+
            '<p>Works best with Chrome, Firefox, Opera or Edge.</p>';

    //users didnt have shared their locations
    if (fitWorld == false) {
        map.fitWorld();
        L.popup().setLatLng(map.getCenter()).setContent(msg).openOn(map);
        fitWorld = true;
    }
}
//Prompt an error message and advise the user
Prompt an error message and advise the user
Prompt an error message and advise the user
function popUpMapError(msg, only) {
    msg += '<p>We recommend using a device that can access GPS satellites, Wi-Fi networks, and mobile networks. However you are free to use most of the features. Close this dialogue to start.</p>'+
            '<p>Works best with Chrome, Firefox, Opera or Edge.</p>';
    if (fitWorld == false) {
        map.fitWorld();
        L.popup().setLatLng(map.getCenter()).setContent(msg).openOn(map);
        fitWorld = true;
    }
}
function popUpMapError ( msg , only ) { msg += '<p>We recommend using a device that can access GPS satellites, Wi-Fi networks, and mobile networks. However you are free to use most of the features. Close this dialogue to start.</p>' + '<p>Works best with Chrome, Firefox, Opera or Edge.</p>' ; if ( fitWorld == false ) { map . fitWorld ( ) ; L . popup ( ) . setLatLng ( map . getCenter ( ) ) . setContent ( msg ) . openOn ( map ) ; fitWorld = true ; } }
Prompt an error message and advise the user
Prompt an error message and advise the user
//users didnt have shared their locations