I would like to know if it's possible to add by default this block, mapped on the address found with google.maps.goecoder ?
This is my code , in a Marionette view
var address = _this.model.get('address') + ' ' + _this.model.get('city');
var geocoder = new google.maps.Geocoder();
geocoder.geocode({'address': address}, function(results, status) {
if (status === google.maps.GeocoderStatus.OK) {
var map = new google.maps.Map(_this.ui.map[0], {
center: results[0].geometry.location,
zoomControl: true,
mapTypeControl: true,
scaleControl: true,
streetViewControl: true,
rotateControl: true
});
map.setCenter(results[0].geometry.location);
map.setZoom(14);
new google.maps.Marker({
map: map,
position: results[0].geometry.location,
title : results[0].formatted_address
});
} else {
alert('Geocode was not successful for the following reason: ' + status);
}
});
This would be nice, if, when the map is showing, the default block use by the google maps app, appeared on my map. Is that possible ?
EDIT : Basically, it's the same requirement as this post. But do you know if it's included in the maps API ? I found nothing on it… and I would prefer to be sure before doin something a bit custom
Thanks in advance,