]; function initialize() { var myOptions = { zoom: 5, center: new google.maps.LatLng(43.676516, -1.424986), mapTypeControl: true, mapTypeControlOptions: { style: google.maps.MapTypeControlStyle.DROPDOWN_MENU }, navigationControl: true, mapTypeId: google.maps.MapTypeId.ROADMAP } map = new google.maps.Map(document.getElementById("map_canvas"), myOptions); google.maps.event.addListener(map, 'click', function() { infowindow.close(); }); // Add markers to the map // Set up markers based on the number of elements within the myPoints array for (var i = 0; i < locations.length; i++) { createMarker(new google.maps.LatLng(locations[i][1], locations[i][2]),locations[i][0], locations[i][3], locations[i][4]); } mc.addMarkers(markerArray, true); } var infowindow = new google.maps.InfoWindow({ size: new google.maps.Size(150, 50) }); function createMarker(latlng, myTitle) { var contentString = myTitle; var marker = new google.maps.Marker({ position: latlng, map: map, icon: 'http://www.maxandjan.ma/wp-content/themes/mj/images/pin.png', zIndex: Math.round(latlng.lat() * -100000) << 5, title: myTitle }); google.maps.event.addListener(marker, 'click', function() { infowindow.setContent(contentString); infowindow.open(map, marker); }); markerArray.push(marker); //push local var marker into global array } window.onload = initialize; ['Samacha', 50.334888,4.994481],]; function initialize() { var myOptions = { zoom: 6, center: new google.maps.LatLng(50.334888,4.994481), mapTypeControl: true, mapTypeControlOptions: { style: google.maps.MapTypeControlStyle.DROPDOWN_MENU }, navigationControl: true, mapTypeId: google.maps.MapTypeId.ROADMAP } map = new google.maps.Map(document.getElementById("map_canvas"), myOptions); google.maps.event.addListener(map, 'click', function() { infowindow.close(); }); // Add markers to the map // Set up markers based on the number of elements within the myPoints array for (var i = 0; i < locations.length; i++) { createMarker(new google.maps.LatLng(locations[i][1], locations[i][2]),locations[i][0], locations[i][3], locations[i][4]); } mc.addMarkers(markerArray, true); } var infowindow = new google.maps.InfoWindow({ size: new google.maps.Size(150, 50) }); function createMarker(latlng, myTitle) { var contentString = myTitle; var marker = new google.maps.Marker({ position: latlng, map: map, icon: 'http://www.maxandjan.ma/wp-content/themes/mj/images/pin.png', zIndex: Math.round(latlng.lat() * -100000) << 5, title: myTitle }); google.maps.event.addListener(marker, 'click', function() { infowindow.setContent(contentString); infowindow.open(map, marker); }); markerArray.push(marker); //push local var marker into global array } window.onload = initialize; ['Miami', 25.705269, -80.28814], ['Thread Lounge', 41.918357,-87.651804],]; function initialize() { var myOptions = { zoom: 4, center: new google.maps.LatLng(35.85344,-84.689484), mapTypeControl: true, mapTypeControlOptions: { style: google.maps.MapTypeControlStyle.DROPDOWN_MENU }, navigationControl: true, mapTypeId: google.maps.MapTypeId.ROADMAP } map = new google.maps.Map(document.getElementById("map_canvas"), myOptions); google.maps.event.addListener(map, 'click', function() { infowindow.close(); }); // Add markers to the map // Set up markers based on the number of elements within the myPoints array for (var i = 0; i < locations.length; i++) { createMarker(new google.maps.LatLng(locations[i][1], locations[i][2]),locations[i][0], locations[i][3], locations[i][4]); } mc.addMarkers(markerArray, true); } var infowindow = new google.maps.InfoWindow({ size: new google.maps.Size(150, 50) }); function createMarker(latlng, myTitle) { var contentString = myTitle; var marker = new google.maps.Marker({ position: latlng, map: map, icon: 'http://www.maxandjan.ma/wp-content/themes/mj/images/pin.png', zIndex: Math.round(latlng.lat() * -100000) << 5, title: myTitle }); google.maps.event.addListener(marker, 'click', function() { infowindow.setContent(contentString); infowindow.open(map, marker); }); markerArray.push(marker); //push local var marker into global array } window.onload = initialize; ]; function initialize() { var myOptions = { zoom: 14, center: new google.maps.LatLng(), mapTypeControl: true, mapTypeControlOptions: { style: google.maps.MapTypeControlStyle.DROPDOWN_MENU }, navigationControl: true, mapTypeId: google.maps.MapTypeId.ROADMAP } map = new google.maps.Map(document.getElementById("map_canvas"), myOptions); google.maps.event.addListener(map, 'click', function() { infowindow.close(); }); // Add markers to the map // Set up markers based on the number of elements within the myPoints array for (var i = 0; i < locations.length; i++) { createMarker(new google.maps.LatLng(locations[i][1], locations[i][2]),locations[i][0], locations[i][3], locations[i][4]); } mc.addMarkers(markerArray, true); } var infowindow = new google.maps.InfoWindow({ size: new google.maps.Size(150, 50) }); function createMarker(latlng, myTitle) { var contentString = myTitle; var marker = new google.maps.Marker({ position: latlng, map: map, icon: 'http://www.maxandjan.ma/wp-content/themes/mj/images/pin.png', zIndex: Math.round(latlng.lat() * -100000) << 5, title: myTitle }); google.maps.event.addListener(marker, 'click', function() { infowindow.setContent(contentString); infowindow.open(map, marker); }); markerArray.push(marker); //push local var marker into global array } window.onload = initialize; ]; function initialize() { var myOptions = { zoom: 14, center: new google.maps.LatLng(), mapTypeControl: true, mapTypeControlOptions: { style: google.maps.MapTypeControlStyle.DROPDOWN_MENU }, navigationControl: true, mapTypeId: google.maps.MapTypeId.ROADMAP } map = new google.maps.Map(document.getElementById("map_canvas"), myOptions); google.maps.event.addListener(map, 'click', function() { infowindow.close(); }); // Add markers to the map // Set up markers based on the number of elements within the myPoints array for (var i = 0; i < locations.length; i++) { createMarker(new google.maps.LatLng(locations[i][1], locations[i][2]),locations[i][0], locations[i][3], locations[i][4]); } mc.addMarkers(markerArray, true); } var infowindow = new google.maps.InfoWindow({ size: new google.maps.Size(150, 50) }); function createMarker(latlng, myTitle) { var contentString = myTitle; var marker = new google.maps.Marker({ position: latlng, map: map, icon: 'http://www.maxandjan.ma/wp-content/themes/mj/images/pin.png', zIndex: Math.round(latlng.lat() * -100000) << 5, title: myTitle }); google.maps.event.addListener(marker, 'click', function() { infowindow.setContent(contentString); infowindow.open(map, marker); }); markerArray.push(marker); //push local var marker into global array } window.onload = initialize; ]; function initialize() { var myOptions = { zoom: 4, center: new google.maps.LatLng(), mapTypeControl: true, mapTypeControlOptions: { style: google.maps.MapTypeControlStyle.DROPDOWN_MENU }, navigationControl: true, mapTypeId: google.maps.MapTypeId.ROADMAP } map = new google.maps.Map(document.getElementById("map_canvas"), myOptions); google.maps.event.addListener(map, 'click', function() { infowindow.close(); }); // Add markers to the map // Set up markers based on the number of elements within the myPoints array for (var i = 0; i < locations.length; i++) { createMarker(new google.maps.LatLng(locations[i][1], locations[i][2]),locations[i][0], locations[i][3], locations[i][4]); } mc.addMarkers(markerArray, true); } var infowindow = new google.maps.InfoWindow({ size: new google.maps.Size(150, 50) }); function createMarker(latlng, myTitle) { var contentString = myTitle; var marker = new google.maps.Marker({ position: latlng, map: map, icon: 'http://www.maxandjan.ma/wp-content/themes/mj/images/pin.png', zIndex: Math.round(latlng.lat() * -100000) << 5, title: myTitle }); google.maps.event.addListener(marker, 'click', function() { infowindow.setContent(contentString); infowindow.open(map, marker); }); markerArray.push(marker); //push local var marker into global array } window.onload = initialize; ['Arabie saoudite', 24.713153, 46.724312],]; function initialize() { var myOptions = { zoom: 5, center: new google.maps.LatLng(24.713153, 46.724312), mapTypeControl: true, mapTypeControlOptions: { style: google.maps.MapTypeControlStyle.DROPDOWN_MENU }, navigationControl: true, mapTypeId: google.maps.MapTypeId.ROADMAP } map = new google.maps.Map(document.getElementById("map_canvas"), myOptions); google.maps.event.addListener(map, 'click', function() { infowindow.close(); }); // Add markers to the map // Set up markers based on the number of elements within the myPoints array for (var i = 0; i < locations.length; i++) { createMarker(new google.maps.LatLng(locations[i][1], locations[i][2]),locations[i][0], locations[i][3], locations[i][4]); } mc.addMarkers(markerArray, true); } var infowindow = new google.maps.InfoWindow({ size: new google.maps.Size(150, 50) }); function createMarker(latlng, myTitle) { var contentString = myTitle; var marker = new google.maps.Marker({ position: latlng, map: map, icon: 'http://www.maxandjan.ma/wp-content/themes/mj/images/pin.png', zIndex: Math.round(latlng.lat() * -100000) << 5, title: myTitle }); google.maps.event.addListener(marker, 'click', function() { infowindow.setContent(contentString); infowindow.open(map, marker); }); markerArray.push(marker); //push local var marker into global array } window.onload = initialize; ['Atlas medina & spa', 31.623617, -8.013846], ['Atlas Asni', 31.622676, -8.012934], ['Atlas Targa & Resort', 31.664212, -8.066371], ['Villa des orangers', 31.619899,-7.992099],]; function initialize() { var myOptions = { zoom: 12, center: new google.maps.LatLng(31.623448, -8.014002), mapTypeControl: true, mapTypeControlOptions: { style: google.maps.MapTypeControlStyle.DROPDOWN_MENU }, navigationControl: true, mapTypeId: google.maps.MapTypeId.ROADMAP } map = new google.maps.Map(document.getElementById("map_canvas"), myOptions); google.maps.event.addListener(map, 'click', function() { infowindow.close(); }); // Add markers to the map // Set up markers based on the number of elements within the myPoints array for (var i = 0; i < locations.length; i++) { createMarker(new google.maps.LatLng(locations[i][1], locations[i][2]),locations[i][0], locations[i][3], locations[i][4]); } mc.addMarkers(markerArray, true); } var infowindow = new google.maps.InfoWindow({ size: new google.maps.Size(150, 50) }); function createMarker(latlng, myTitle) { var contentString = myTitle; var marker = new google.maps.Marker({ position: latlng, map: map, icon: 'http://www.maxandjan.ma/wp-content/themes/mj/images/pin.png', zIndex: Math.round(latlng.lat() * -100000) << 5, title: myTitle }); google.maps.event.addListener(marker, 'click', function() { infowindow.setContent(contentString); infowindow.open(map, marker); }); markerArray.push(marker); //push local var marker into global array } window.onload = initialize; ['Ibiza',38.9745261,1.2773034,11]]; function initialize() { var myOptions = { zoom: 9, center: new google.maps.LatLng(), mapTypeControl: true, mapTypeControlOptions: { style: google.maps.MapTypeControlStyle.DROPDOWN_MENU }, navigationControl: true, mapTypeId: google.maps.MapTypeId.ROADMAP } map = new google.maps.Map(document.getElementById("map_canvas"), myOptions); google.maps.event.addListener(map, 'click', function() { infowindow.close(); }); // Add markers to the map // Set up markers based on the number of elements within the myPoints array for (var i = 0; i < locations.length; i++) { createMarker(new google.maps.LatLng(locations[i][1], locations[i][2]),locations[i][0], locations[i][3], locations[i][4]); } mc.addMarkers(markerArray, true); } var infowindow = new google.maps.InfoWindow({ size: new google.maps.Size(150, 50) }); function createMarker(latlng, myTitle) { var contentString = myTitle; var marker = new google.maps.Marker({ position: latlng, map: map, icon: 'http://www.maxandjan.ma/wp-content/themes/mj/images/pin.png', zIndex: Math.round(latlng.lat() * -100000) << 5, title: myTitle }); google.maps.event.addListener(marker, 'click', function() { infowindow.setContent(contentString); infowindow.open(map, marker); }); markerArray.push(marker); //push local var marker into global array } window.onload = initialize;