function get_map(){
var toronto = {lat: 43.6560531, lng: -79.3869317};
map = new google.maps.Map(document.getElementById('results_map'), {
zoom: 12,
center: toronto
});
geocoder = new google.maps.Geocoder();
}
JavaScript is a dynamic, object-based language commonly used for client-side scripting in web browsers. Recently, server side JavaScript frameworks have also emerged. JavaScript runs on nearly every operating system and in almost every mainstream web browser.
TRUSTED BY
Maybe you can display empty map then fill it based on the user search (select a city into the list and this city is related to lat/long that will be use for the center)...
or you can detect user lat / long (if the browser setting allow it) if not you may add fields so use can enter their lat/long
or you can display a map zoom out, so user can see the entire province or country...
You can use LatLngBounds https://developers.google.com/maps/documentation/javascript/reference?csw=1#LatLngBounds