I have the following situation:
The geographic location of my Country is:
longitude de 73°59’32 (A OESTE)
longitude 34°47’30 (A Leste)
latitude 5°16’20 (Ao Norte)
latitude 33°45’03 (Ao sul)
I'm using the example provided by Google called "Simple Markers".
In the script below (in the example quoted above), how do I display only the map of Brazil?
<!DOCTYPE html>
Simple markers / * Always set the map height explicitly to define the size of the div * element that contains the map. / #map { height: 100%; } / Optional: Makes the sample page fill the window. * / html, body { height: 100%; margin: 0; padding: 0; }
function initMap() {
var myLatLng = {lat: -16.461, lng: -130.012};
var map = new google.maps.Map(document.getElementById('map'), {
zoom: 4,
center: myLatLng
});
var marker = new google.maps.Marker({
position: myLatLng,
map: map,
title: 'Computacao Evolucionaria!'
});
}
</script>
<script async defer
I've tried everything, but I can not.
My goal is to search only in this area. That is, I want to restrict the map by region. In this case, "Brazil"