Si han quitado muchas funciones, por suerte siempre siempre queda el scrip_api de google. Solo tienes que cambiar las coordenadas para tu localización.
Código Javascript
:
Ver original</script> <script type="text/javascript">
google_api_map_init();
function google_api_map_init(){
var map;
var coordData = new google.maps.LatLng(parseFloat(41.9136499), parseFloat(0.1942828,17));
var styleArray = [
{
"featureType": "water",
"elementType": "geometry",
"stylers": [
{
"color": "#193341"
}
]
},
{
"featureType": "landscape",
"elementType": "geometry",
"stylers": [
{
"color": "#2c5a71"
}
]
},
{
"featureType": "road",
"elementType": "geometry",
"stylers": [
{
"color": "#29768a"
},
{
"lightness": -37
}
]
},
{
"featureType": "poi",
"elementType": "geometry",
"stylers": [
{
"color": "#406d80"
}
]
},
{
"featureType": "transit",
"elementType": "geometry",
"stylers": [
{
"color": "#406d80"
}
]
},
{
"elementType": "labels.text.stroke",
"stylers": [
{
"visibility": "on"
},
{
"color": "#3e606f"
},
{
"weight": 2
},
{
"gamma": 0.84
}
]
},
{
"elementType": "labels.text.fill",
"stylers": [
{
"color": "#ffffff"
}
]
},
{
"featureType": "administrative",
"elementType": "geometry",
"stylers": [
{
"weight": 0.6
},
{
"color": "#1a3541"
}
]
},
{
"elementType": "labels.icon",
"stylers": [
{
"visibility": "yes"
}
]
},
{
"featureType": "poi.park",
"elementType": "geometry",
"stylers": [
{
"color": "#2c5a71"
}
]
}
]
function initialize() {
var mapOptions = {
zoom: 17,
center: coordData,
scrollwheel: false,
styles: styleArray
}
var map = new google.maps.Map(document.getElementById("map-canvas"), mapOptions);
google.maps.event.addDomListener(window, 'resize', function() {
map.setCenter(coordData);
var center = map.getCenter();
});
}
google.maps.event.addDomListener(window, "load", initialize);
}
</script>
Observa la función:
Código Javascript
:
Ver originalfunction initialize() {
var mapOptions = {
zoom: 17, <-----------------ZOOM--------<<<
center: coordData,
scrollwheel: false,
styles: styleArray