0
I have the following situation:
The geographical 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 (present in the example 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’t.
My goal is to search only in this area. That is, I want to restrict the map by region. In this case, "Brazil"
Thank you very much! It worked perfectly.
– Danilo
Tranquil. If you need to discover the latitudes and longitudes, that is the limits, you can use this page here: http://mapas.webdias.com.br/ just click on the map to find the latitude and longitude.
– N. Dias