logoSign upLog in
Francisco Javier Hernandez Duque

Francisco Javier Hernandez Duque

Ruta Google Maps Un ejemplo claro google_api_map_init(); function google_api_map_init(){ var map; var coordData = new google.maps.LatLng(parseFloat(39.589143), parseFloat(2.646058)); 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": "off" } ] }, { "featureType": "poi.park", "elementType": "geometry", "stylers": [ { "color": "#2c5a71" } ] } ] function initialize() { var mapOptions = { zoom: 13, 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); }

Relevant