(style) #map { height: 100%; } html, body { height: 100%; margin: 0; padding: 0; } .gm-style-mtc > div, .gmnoprint > div, .gm-svpc { display: none; } .background { background: url(../img/gusbg.svg) center no-repeat; height: 100%; width: 100%; background-size: cover; background-position: center; z-index: 500; position: absolute; top:0%; pointer-events: none; } .reg-link { position: absolute; top: 61%; right: 38%; width: 25%; height: 15%; z-index: 5000; }
function initMap() { var map = new google.maps.Map(document.getElementById('map'), { zoom: 3, center: { lat: 42.787441, lng: -2.955366 } }); var markerImage = new google.maps.MarkerImage( 'img/milla.png', new google.maps.Size(150, 150), new google.maps.Point(0, 0), new google.maps.Point(50, 50), new google.maps.Size(150, 150) ); var markerImageH = new google.maps.MarkerImage( 'img/milla.png', new google.maps.Size(50, 50), new google.maps.Point(0, 0), new google.maps.Point(20, 20), new google.maps.Size(50, 50) ); var markerImageHb = new google.maps.MarkerImage( 'img/ca.png', new google.maps.Size(50, 50), new google.maps.Point(0, 0), new google.maps.Point(110, 0), new google.maps.Size(50, 50) ); var markerImageHb1 = new google.maps.MarkerImage( 'img/fr.png', new google.maps.Size(50, 50), new google.maps.Point(0, 0), new google.maps.Point(90, 60), new google.maps.Size(50, 50) ); var markerImageHb11 = new google.maps.MarkerImage( 'img/ru.png', new google.maps.Size(50, 50), new google.maps.Point(0, 0), new google.maps.Point(40, 100), new google.maps.Size(50, 50) ); var markeri5 = new google.maps.MarkerImage( 'img/3.png', new google.maps.Size(150, 150), new google.maps.Point(0, 0), new google.maps.Point(50, 50), new google.maps.Size(150, 150) ); var markerImage5 = new google.maps.MarkerImage( 'img/3.png', new google.maps.Size(50, 50), new google.maps.Point(0, 0), new google.maps.Point(20, 20), new google.maps.Size(50, 50) ); var markeri6 = new google.maps.MarkerImage( 'img/1.png', new google.maps.Size(150, 150), new google.maps.Point(0, 0), new google.maps.Point(50, 50), new google.maps.Size(150, 150) ); var markerImage6 = new google.maps.MarkerImage( 'img/1.png', new google.maps.Size(50, 50), new google.maps.Point(0, 0), new google.maps.Point(20, 20), new google.maps.Size(50, 50) ); var markeri7 = new google.maps.MarkerImage( 'img/2.png', new google.maps.Size(150, 150), new google.maps.Point(0, 0), new google.maps.Point(50, 50), new google.maps.Size(150, 150) ); var markerImage7 = new google.maps.MarkerImage( 'img/2.png', new google.maps.Size(50, 50), new google.maps.Point(0, 0), new google.maps.Point(20, 20), new google.maps.Size(50, 50) ); var marker = new google.maps.Marker({ icon: markerImageH, position: { lat: 51.216648, lng: -114.462712 }, map: map }); var marker1 = new google.maps.Marker({ icon: markerImageHb, position: { lat: 51.216648, lng: -114.462712 }, visible: false, map: map }); var marker2 = new google.maps.Marker({ icon: markerImageHb1, position: { lat: 51.216648, lng: -114.462712 }, visible: false, map: map }); var marker21 = new google.maps.Marker({ icon: markerImageHb11, position: { lat: 51.216648, lng: -114.462712 }, visible: false, map: map }); var marker5 = new google.maps.Marker({ icon: markerImage5, position: { lat: 25.194260, lng: 55.259029 }, map: map }); var marker6 = new google.maps.Marker({ icon: markerImage6, position: { lat: 29.760867, lng: -95.372485 }, map: map }); var marker7 = new google.maps.Marker({ icon: markerImage7, position: { lat: 43.664266, lng: -79.430313 }, map: map }); marker.addListener('mouseover', function() { marker.setIcon(markerImage); marker1.setVisible(true); marker2.setVisible(true); marker21.setVisible(true); }); marker.addListener('mouseout', function() { marker.setIcon(markerImageH); marker1.setVisible(false); marker2.setVisible(false); marker21.setVisible(false); }); marker5.addListener('mouseover', function() { marker5.setIcon(markeri5); }); marker5.addListener('mouseout', function() { marker5.setIcon(markerImage5); }); marker6.addListener('mouseover', function() { marker6.setIcon(markeri6); }); marker6.addListener('mouseout', function() { marker6.setIcon(markerImage6); }); marker7.addListener('mouseover', function() { marker7.setIcon(markeri7); }); marker7.addListener('mouseout', function() { marker7.setIcon(markerImage7); }); }