var ibizaMarkers = new Array(); var oahuMarkers = new Array(); var allItems = { wreck: true, dealer: true, paint: true, tuner: true, photo: true, carwash: true, clothing: true, casino: true, house: true, houseseller: true, hair: true, clinic: true, airport: true, club: true, community: true, license: true, unknown : true }; var visibleItems = { wreck: true, dealer: true, paint: true, tuner: true, photo: true, carwash: true, clothing: true, casino: true, house: true, houseseller: true, hair: true, clinic: true, airport: true, club: true, community: true, license: true, unknown : true }; var map, infowindow; var ibizaMapType = new google.maps.ImageMapType({ getTileUrl: function(coord, zoom) { var normalizedCoord = getNormalizedCoord(coord, zoom); if (!normalizedCoord) { return null; } var bound = Math.pow(2, zoom); return "ibiza-tiles" + "/" + zoom + "/" + normalizedCoord.x + "/" + (bound - normalizedCoord.y - 1) + ".png"; }, tileSize: new google.maps.Size(256, 256), isPng: true, maxZoom: 5, minZoom: 2, name: "Ibiza" }); var oahuMapType = new google.maps.ImageMapType({ getTileUrl: function(coord, zoom) { var normalizedCoord = getNormalizedCoord(coord, zoom); if (!normalizedCoord) { return null; } var bound = Math.pow(2, zoom); return "oahu-tiles" + "/" + zoom + "/" + normalizedCoord.x + "/" + (bound - normalizedCoord.y - 1) + ".png"; }, tileSize: new google.maps.Size(256, 256), isPng: true, maxZoom: 4, minZoom: 2, name: "Oahu" }); // Normalizes the coords that tiles repeat across the x axis (horizontally) // like the standard Google map tiles. function getNormalizedCoord(coord, zoom) { var y = coord.y; var x = coord.x; // tile range in one direction range is dependent on zoom level // 0 = 1 tile, 1 = 2 tiles, 2 = 4 tiles, 3 = 8 tiles, etc var tileRange = 1 << zoom; // don't repeat across y-axis (vertically) if (y < 0 || y >= tileRange) { return null; } // don't repeat across x-axis if (x < 0 || x >= tileRange) { // x = (x % tileRange + tileRange) % tileRange; return null; } return { x: x, y: y }; } function initialize() { var myLatlng = new google.maps.LatLng(-40, -6.8); var myOptions = { backgroundColor: '#142139', center: myLatlng, zoom: 2, streetViewControl: false, mapTypeControlOptions: { //mapTypeIds: ["ibiza", "oahu"] mapTypeIds: ["ibiza"] }, mapTypeId: "ibiza" }; map = new google.maps.Map(document.getElementById("map_canvas"), myOptions); infowindow = new google.maps.InfoWindow({}); var mapBounds = new google.maps.LatLngBounds( new google.maps.LatLng(-83,-115), // bottom left new google.maps.LatLng(40,75) // top right ); var mapBoundsZoom = new google.maps.LatLngBounds( new google.maps.LatLng(-85,-130), // bottom left new google.maps.LatLng(60,100) // top right ); map.mapTypes.set("ibiza", ibizaMapType); map.mapTypes.set("oahu", oahuMapType); google.maps.event.addListener(map, 'drag', drag_event); google.maps.event.addListener(map, 'maptypeid_changed', function() { createMapMarkers(map); }); function drag_event() { if(map.getZoom() >= 3) { var bounds = mapBoundsZoom; } else { var bounds = mapBounds } // Perform the check and return if OK if (bounds.contains(map.getCenter())) { return; } // It's not OK, so find the nearest allowed point and move there var C = map.getCenter(); var X = C.lng(); var Y = C.lat(); var AmaxX = bounds.getNorthEast().lng(); var AmaxY = bounds.getNorthEast().lat(); var AminX = bounds.getSouthWest().lng(); var AminY = bounds.getSouthWest().lat(); if (X < AminX) {X = AminX;} if (X > AmaxX) {X = AmaxX;} if (Y < AminY) {Y = AminY;} if (Y > AmaxY) {Y = AmaxY;} map.setCenter(new google.maps.LatLng(Y,X)); } var marker1 = new google.maps.Marker({ position: new google.maps.LatLng(5.277997685673121,-76.67968750000001), title: 'Wrack', icon: 'images/icons/cog.png', marker_id: '1', marker_type: 'wreck', marker_desc: 'Am Ende der Straße über den Parkplatz zur Küste fahren.', marker_imagecount: 2 }); google.maps.event.addListener(marker1,'click', function() { populate_marker(marker1); }); ibizaMarkers.push(marker1); var marker2 = new google.maps.Marker({ position: new google.maps.LatLng(-80.35497827846662,-117.548828125), title: 'Wrack', icon: 'images/icons/cog.png', marker_id: '2', marker_type: 'wreck', marker_desc: 'Hinter dem Leuchtturm', marker_imagecount: 1 }); google.maps.event.addListener(marker2,'click', function() { populate_marker(marker2); }); ibizaMarkers.push(marker2); var marker3 = new google.maps.Marker({ position: new google.maps.LatLng(-75.4721105639806,-115.703125), title: 'Wrack', icon: 'images/icons/cog.png', marker_id: '3', marker_type: 'wreck', marker_desc: 'In den Ruinen am Kartenrand', marker_imagecount: 1 }); google.maps.event.addListener(marker3,'click', function() { populate_marker(marker3); }); ibizaMarkers.push(marker3); var marker4 = new google.maps.Marker({ position: new google.maps.LatLng(-69.42245893092453,-135.69824218749997), title: 'Wrack', icon: 'images/icons/cog.png', marker_id: '4', marker_type: 'wreck', marker_desc: '', marker_imagecount: 1 }); google.maps.event.addListener(marker4,'click', function() { populate_marker(marker4); }); ibizaMarkers.push(marker4); var marker5 = new google.maps.Marker({ position: new google.maps.LatLng(-54.43748957885483,-130.1611328125), title: 'Wrack', icon: 'images/icons/cog.png', marker_id: '5', marker_type: 'wreck', marker_desc: '', marker_imagecount: 2 }); google.maps.event.addListener(marker5,'click', function() { populate_marker(marker5); }); ibizaMarkers.push(marker5); var marker6 = new google.maps.Marker({ position: new google.maps.LatLng(-14.167511931660725,-85.90820312499999), title: 'Wreck', icon: 'images/icons/cog.png', marker_id: '6', marker_type: 'wreck', marker_desc: '', marker_imagecount: 2 }); google.maps.event.addListener(marker6,'click', function() { populate_marker(marker6); }); ibizaMarkers.push(marker6); var marker7 = new google.maps.Marker({ position: new google.maps.LatLng(48.32043519033921,50.76171875000001), title: 'Wrack', icon: 'images/icons/cog.png', marker_id: '7', marker_type: 'wreck', marker_desc: 'Im Feld auf der linken Straßenseite', marker_imagecount: 2 }); google.maps.event.addListener(marker7,'click', function() { populate_marker(marker7); }); ibizaMarkers.push(marker7); var marker8 = new google.maps.Marker({ position: new google.maps.LatLng(38.07487150195134,94.091796875), title: 'Wrack', icon: 'images/icons/cog.png', marker_id: '8', marker_type: 'wreck', marker_desc: 'Etwas abseits der Kurve in der Straße', marker_imagecount: 2 }); google.maps.event.addListener(marker8,'click', function() { populate_marker(marker8); }); ibizaMarkers.push(marker8); var marker9 = new google.maps.Marker({ position: new google.maps.LatLng(19.819382050634456,79.501953125), title: 'Wrack', icon: 'images/icons/cog.png', marker_id: '9', marker_type: 'wreck', marker_desc: 'An der Turmruine', marker_imagecount: 2 }); google.maps.event.addListener(marker9,'click', function() { populate_marker(marker9); }); ibizaMarkers.push(marker9); var marker10 = new google.maps.Marker({ position: new google.maps.LatLng(-30.589729359501035,57.35351562500001), title: 'Wrack', icon: 'images/icons/cog.png', marker_id: '10', marker_type: 'wreck', marker_desc: 'Auf dem Hügel an der linken Straßenseite', marker_imagecount: 2 }); google.maps.event.addListener(marker10,'click', function() { populate_marker(marker10); }); ibizaMarkers.push(marker10); var marker11 = new google.maps.Marker({ position: new google.maps.LatLng(-46.003860856615255,29.931640625000007), title: 'Wrack', icon: 'images/icons/cog.png', marker_id: '11', marker_type: 'wreck', marker_desc: 'An der Außenseite der Kurve', marker_imagecount: 2 }); google.maps.event.addListener(marker11,'click', function() { populate_marker(marker11); }); ibizaMarkers.push(marker11); var marker12 = new google.maps.Marker({ position: new google.maps.LatLng(-57.65071541934296,55.24414062500001), title: 'Wrack', icon: 'images/icons/cog.png', marker_id: '12', marker_type: 'wreck', marker_desc: 'Südlicher Straßenrand', marker_imagecount: 2 }); google.maps.event.addListener(marker12,'click', function() { populate_marker(marker12); }); ibizaMarkers.push(marker12); var marker13 = new google.maps.Marker({ position: new google.maps.LatLng(-79.94916434222297,-29.65820312499999), title: 'Wrack', icon: 'images/icons/cog.png', marker_id: '13', marker_type: 'wreck', marker_desc: 'Im Schotterbereich', marker_imagecount: 1 }); google.maps.event.addListener(marker13,'click', function() { populate_marker(marker13); }); ibizaMarkers.push(marker13); var marker14 = new google.maps.Marker({ position: new google.maps.LatLng(-78.13201717106352,-39.37011718749999), title: 'Wrack', icon: 'images/icons/cog.png', marker_id: '14', marker_type: 'wreck', marker_desc: 'Auf dem Flughafenparkplatz', marker_imagecount: 2 }); google.maps.event.addListener(marker14,'click', function() { populate_marker(marker14); }); ibizaMarkers.push(marker14); var marker15 = new google.maps.Marker({ position: new google.maps.LatLng(-58.30316290497968,-20.78124999999999), title: 'Wrack', icon: 'images/icons/cog.png', marker_id: '15', marker_type: 'wreck', marker_desc: 'Auf dem Hügel am Felsen', marker_imagecount: 2 }); google.maps.event.addListener(marker15,'click', function() { populate_marker(marker15); }); ibizaMarkers.push(marker15); var marker16 = new google.maps.Marker({ position: new google.maps.LatLng(-50.72883407348607,-37.48046874999999), title: 'Wrack', icon: 'images/icons/cog.png', marker_id: '16', marker_type: 'wreck', marker_desc: 'An der Fahrschule (B)', marker_imagecount: 2 }); google.maps.event.addListener(marker16,'click', function() { populate_marker(marker16); }); ibizaMarkers.push(marker16); var marker17 = new google.maps.Marker({ position: new google.maps.LatLng(-44.76793852136417,-69.72968749999995), title: 'Wrack', icon: 'images/icons/cog.png', marker_id: '17', marker_type: 'wreck', marker_desc: '', marker_imagecount: 0 }); google.maps.event.addListener(marker17,'click', function() { populate_marker(marker17); }); ibizaMarkers.push(marker17); var marker18 = new google.maps.Marker({ position: new google.maps.LatLng(-28.21636064668891,-2.499999999999991), title: 'Wrack', icon: 'images/icons/cog.png', marker_id: '18', marker_type: 'wreck', marker_desc: 'Beim Tuner für britische Fahrzeuge', marker_imagecount: 2 }); google.maps.event.addListener(marker18,'click', function() { populate_marker(marker18); }); ibizaMarkers.push(marker18); var marker19 = new google.maps.Marker({ position: new google.maps.LatLng(4.665080870095439,23.779296875000007), title: 'Wrack', icon: 'images/icons/cog.png', marker_id: '19', marker_type: 'wreck', marker_desc: 'In der südlichen S-Kurve', marker_imagecount: 2 }); google.maps.event.addListener(marker19,'click', function() { populate_marker(marker19); }); ibizaMarkers.push(marker19); var marker20 = new google.maps.Marker({ position: new google.maps.LatLng(20.808457214771188,-13.618164062499991), title: 'Wrack', icon: 'images/icons/cog.png', marker_id: '20', marker_type: 'wreck', marker_desc: 'Am südlichen Ende des Tunnels auf der westlichen Seite der Einfahrt', marker_imagecount: 2 }); google.maps.event.addListener(marker20,'click', function() { populate_marker(marker20); }); ibizaMarkers.push(marker20); var marker21 = new google.maps.Marker({ position: new google.maps.LatLng(-43.76239845606188,-78.04199218749999), title: 'B-Miami', icon: 'images/icons/money.png', marker_id: '21', marker_type: 'clothing', marker_desc: '', marker_imagecount: 0 }); google.maps.event.addListener(marker21,'click', function() { populate_marker(marker21); }); ibizaMarkers.push(marker21); var marker22 = new google.maps.Marker({ position: new google.maps.LatLng(-72.39206372476521,12.529296875000009), title: 'Casino', icon: 'images/icons/controller.png', marker_id: '22', marker_type: 'casino', marker_desc: '', marker_imagecount: 0 }); google.maps.event.addListener(marker22,'click', function() { populate_marker(marker22); }); ibizaMarkers.push(marker22); var marker23 = new google.maps.Marker({ position: new google.maps.LatLng(-70.195915016158,-4.257812499999991), title: 'Hiro Hisaishi', icon: 'images/icons/money.png', marker_id: '23', marker_type: 'clothing', marker_desc: '', marker_imagecount: 0 }); google.maps.event.addListener(marker23,'click', function() { populate_marker(marker23); }); ibizaMarkers.push(marker23); var marker24 = new google.maps.Marker({ position: new google.maps.LatLng(-41.46663820388722,60.56152343750001), title: 'MYW Paris', icon: 'images/icons/money.png', marker_id: '24', marker_type: 'clothing', marker_desc: '', marker_imagecount: 0 }); google.maps.event.addListener(marker24,'click', function() { populate_marker(marker24); }); ibizaMarkers.push(marker24); var marker25 = new google.maps.Marker({ position: new google.maps.LatLng(30.231505577804395,4.355468750000009), title: 'Practice Sportswear', icon: 'images/icons/money.png', marker_id: '25', marker_type: 'clothing', marker_desc: '', marker_imagecount: 0 }); google.maps.event.addListener(marker25,'click', function() { populate_marker(marker25); }); ibizaMarkers.push(marker25); var marker26 = new google.maps.Marker({ position: new google.maps.LatLng(-78.14105145689757,-41.30371093749999), title: 'Flughafen nach Oahu', icon: 'images/icons/plane.png', marker_id: '26', marker_type: 'airport', marker_desc: 'Zugang ab Stufe 10', marker_imagecount: 0 }); google.maps.event.addListener(marker26,'click', function() { populate_marker(marker26); }); ibizaMarkers.push(marker26); var marker27 = new google.maps.Marker({ position: new google.maps.LatLng(-55.1719916110458,-130.6884765625), title: 'Schönheitsklinik', icon: 'images/icons/pill.png', marker_id: '27', marker_type: 'clinic', marker_desc: '', marker_imagecount: 0 }); google.maps.event.addListener(marker27,'click', function() { populate_marker(marker27); }); ibizaMarkers.push(marker27); var marker28 = new google.maps.Marker({ position: new google.maps.LatLng(-46.09535961528248,-93.37890625), title: 'Frisör', icon: 'images/icons/cut_red.png', marker_id: '28', marker_type: 'hair', marker_desc: '', marker_imagecount: 0 }); google.maps.event.addListener(marker28,'click', function() { populate_marker(marker28); }); ibizaMarkers.push(marker28); var marker29 = new google.maps.Marker({ position: new google.maps.LatLng(-73.29916434899553,-9.531249999999991), title: 'Frisör', icon: 'images/icons/cut_red.png', marker_id: '29', marker_type: 'hair', marker_desc: '', marker_imagecount: 0 }); google.maps.event.addListener(marker29,'click', function() { populate_marker(marker29); }); ibizaMarkers.push(marker29); var marker30 = new google.maps.Marker({ position: new google.maps.LatLng(-77.05641913578489,-132.6220703125), title: 'Klubhaus', icon: 'images/icons/drink.png', marker_id: '30', marker_type: 'club', marker_desc: '', marker_imagecount: 0 }); google.maps.event.addListener(marker30,'click', function() { populate_marker(marker30); }); ibizaMarkers.push(marker30); var marker31 = new google.maps.Marker({ position: new google.maps.LatLng(-33.494718437710375,-89.86328124999999), title: 'Klubhaus', icon: 'images/icons/drink.png', marker_id: '31', marker_type: 'club', marker_desc: '', marker_imagecount: 0 }); google.maps.event.addListener(marker31,'click', function() { populate_marker(marker31); }); ibizaMarkers.push(marker31); var marker32 = new google.maps.Marker({ position: new google.maps.LatLng(35.39886544314473,11.079101562500009), title: 'Klubhaus', icon: 'images/icons/drink.png', marker_id: '32', marker_type: 'club', marker_desc: '', marker_imagecount: 0 }); google.maps.event.addListener(marker32,'click', function() { populate_marker(marker32); }); ibizaMarkers.push(marker32); var marker33 = new google.maps.Marker({ position: new google.maps.LatLng(-31.75529969291224,90.224609375), title: 'Klubhaus', icon: 'images/icons/drink.png', marker_id: '33', marker_type: 'club', marker_desc: '', marker_imagecount: 0 }); google.maps.event.addListener(marker33,'click', function() { populate_marker(marker33); }); ibizaMarkers.push(marker33); var marker34 = new google.maps.Marker({ position: new google.maps.LatLng(-59.79457709447054,-6.850585937499991), title: 'Klubhaus', icon: 'images/icons/drink.png', marker_id: '34', marker_type: 'club', marker_desc: '', marker_imagecount: 0 }); google.maps.event.addListener(marker34,'click', function() { populate_marker(marker34); }); ibizaMarkers.push(marker34); var marker35 = new google.maps.Marker({ position: new google.maps.LatLng(-40.4377833486632,-82.21679687499999), title: 'Immobilienhändler', icon: 'images/icons/home-share.png', marker_id: '35', marker_type: 'houseseller', marker_desc: '', marker_imagecount: 0 }); google.maps.event.addListener(marker35,'click', function() { populate_marker(marker35); }); ibizaMarkers.push(marker35); var marker36 = new google.maps.Marker({ position: new google.maps.LatLng(-70.01647278607098,-8.740234374999991), title: 'Immobilienhändler', icon: 'images/icons/home-share.png', marker_id: '36', marker_type: 'houseseller', marker_desc: '', marker_imagecount: 0 }); google.maps.event.addListener(marker36,'click', function() { populate_marker(marker36); }); ibizaMarkers.push(marker36); var marker37 = new google.maps.Marker({ position: new google.maps.LatLng(31.557786931364824,4.018554687499996), title: 'Mercedes-Benz', icon: 'images/icons/car.png', marker_id: '37', marker_type: 'dealer', marker_desc: '', marker_imagecount: 0 }); google.maps.event.addListener(marker37,'click', function() { populate_marker(marker37); }); ibizaMarkers.push(marker37); var marker38 = new google.maps.Marker({ position: new google.maps.LatLng(4.45357823633463,86.10839843749999), title: 'Britische Wagen (Osten)', icon: 'images/icons/car.png', marker_id: '38', marker_type: 'dealer', marker_desc: '', marker_imagecount: 0 }); google.maps.event.addListener(marker38,'click', function() { populate_marker(marker38); }); ibizaMarkers.push(marker38); var marker39 = new google.maps.Marker({ position: new google.maps.LatLng(-36.47622016262905,66.640625), title: 'Britische Wagen', icon: 'images/icons/car.png', marker_id: '39', marker_type: 'dealer', marker_desc: '', marker_imagecount: 0 }); google.maps.event.addListener(marker39,'click', function() { populate_marker(marker39); }); ibizaMarkers.push(marker39); var marker40 = new google.maps.Marker({ position: new google.maps.LatLng(0.8105817167610452,-31.357421875000004), title: 'Welt-Klassiker', icon: 'images/icons/car.png', marker_id: '40', marker_type: 'dealer', marker_desc: '', marker_imagecount: 0 }); google.maps.event.addListener(marker40,'click', function() { populate_marker(marker40); }); ibizaMarkers.push(marker40); var marker41 = new google.maps.Marker({ position: new google.maps.LatLng(-42.37653621480793,-11.845703125000004), title: 'U.S.-Wagen (Norden)', icon: 'images/icons/car.png', marker_id: '41', marker_type: 'dealer', marker_desc: '', marker_imagecount: 0 }); google.maps.event.addListener(marker41,'click', function() { populate_marker(marker41); }); ibizaMarkers.push(marker41); var marker42 = new google.maps.Marker({ position: new google.maps.LatLng(-55.913606538939725,6.040039062499996), title: 'Asiatische Wagen', icon: 'images/icons/car.png', marker_id: '42', marker_type: 'dealer', marker_desc: '', marker_imagecount: 0 }); google.maps.event.addListener(marker42,'click', function() { populate_marker(marker42); }); ibizaMarkers.push(marker42); var marker43 = new google.maps.Marker({ position: new google.maps.LatLng(-65.83075487593777,12.236328124999996), title: 'U.S.-Wagen (Süden)', icon: 'images/icons/car.png', marker_id: '43', marker_type: 'dealer', marker_desc: '', marker_imagecount: 0 }); google.maps.event.addListener(marker43,'click', function() { populate_marker(marker43); }); ibizaMarkers.push(marker43); var marker44 = new google.maps.Marker({ position: new google.maps.LatLng(-66.32964011779984,-1.5625000000000044), title: 'Italienische Klassiker', icon: 'images/icons/car.png', marker_id: '44', marker_type: 'dealer', marker_desc: '', marker_imagecount: 0 }); google.maps.event.addListener(marker44,'click', function() { populate_marker(marker44); }); ibizaMarkers.push(marker44); var marker45 = new google.maps.Marker({ position: new google.maps.LatLng(-71.57433992109578,-3.803710937500005), title: 'Ferrari', icon: 'images/icons/car.png', marker_id: '45', marker_type: 'dealer', marker_desc: '', marker_imagecount: 0 }); google.maps.event.addListener(marker45,'click', function() { populate_marker(marker45); }); ibizaMarkers.push(marker45); var marker46 = new google.maps.Marker({ position: new google.maps.LatLng(-74.60824576967335,-45.68359375), title: 'Europäische Wagen (Süden)', icon: 'images/icons/car.png', marker_id: '46', marker_type: 'dealer', marker_desc: '', marker_imagecount: 0 }); google.maps.event.addListener(marker46,'click', function() { populate_marker(marker46); }); ibizaMarkers.push(marker46); var marker47 = new google.maps.Marker({ position: new google.maps.LatLng(-49.42681487235181,-110.634765625), title: 'Italienische Wagen', icon: 'images/icons/car.png', marker_id: '47', marker_type: 'dealer', marker_desc: '', marker_imagecount: 0 }); google.maps.event.addListener(marker47,'click', function() { populate_marker(marker47); }); ibizaMarkers.push(marker47); var marker48 = new google.maps.Marker({ position: new google.maps.LatLng(-59.56892856006662,-91.3427734375), title: 'Europäische Klassiker', icon: 'images/icons/car.png', marker_id: '48', marker_type: 'dealer', marker_desc: '', marker_imagecount: 0 }); google.maps.event.addListener(marker48,'click', function() { populate_marker(marker48); }); ibizaMarkers.push(marker48); var marker49 = new google.maps.Marker({ position: new google.maps.LatLng(-59.79077725559815,-66.953125), title: 'Europäische Wagen (Norden)', icon: 'images/icons/car.png', marker_id: '49', marker_type: 'dealer', marker_desc: '', marker_imagecount: 0 }); google.maps.event.addListener(marker49,'click', function() { populate_marker(marker49); }); ibizaMarkers.push(marker49); var marker50 = new google.maps.Marker({ position: new google.maps.LatLng(-47.740923577875,-77.412109375), title: 'Audi', icon: 'images/icons/car.png', marker_id: '50', marker_type: 'dealer', marker_desc: '', marker_imagecount: 0 }); google.maps.event.addListener(marker50,'click', function() { populate_marker(marker50); }); ibizaMarkers.push(marker50); var marker51 = new google.maps.Marker({ position: new google.maps.LatLng(-43.310922566081416,-73.1494140625), title: 'Gebrauchtwagenhändler', icon: 'images/icons/car.png', marker_id: '51', marker_type: 'dealer', marker_desc: '', marker_imagecount: 0 }); google.maps.event.addListener(marker51,'click', function() { populate_marker(marker51); }); ibizaMarkers.push(marker51); var marker52 = new google.maps.Marker({ position: new google.maps.LatLng(-44.79521950988799,-70.6884765625), title: 'U.S.-Muscle-Cars', icon: 'images/icons/wrench.png', marker_id: '52', marker_type: 'tuner', marker_desc: '', marker_imagecount: 0 }); google.maps.event.addListener(marker52,'click', function() { populate_marker(marker52); }); ibizaMarkers.push(marker52); var marker53 = new google.maps.Marker({ position: new google.maps.LatLng(-75.28160100302648,-42.9150390625), title: 'Deutsche Fahrzeuge', icon: 'images/icons/wrench.png', marker_id: '53', marker_type: 'tuner', marker_desc: '', marker_imagecount: 0 }); google.maps.event.addListener(marker53,'click', function() { populate_marker(marker53); }); ibizaMarkers.push(marker53); var marker54 = new google.maps.Marker({ position: new google.maps.LatLng(-56.18357818650845,53.06152343749999), title: 'Asiatische Wagen', icon: 'images/icons/wrench.png', marker_id: '54', marker_type: 'tuner', marker_desc: '', marker_imagecount: 0 }); google.maps.event.addListener(marker54,'click', function() { populate_marker(marker54); }); ibizaMarkers.push(marker54); var marker55 = new google.maps.Marker({ position: new google.maps.LatLng(-28.2484241232194,-2.2216796875000044), title: 'Britische Wagen', icon: 'images/icons/wrench.png', marker_id: '55', marker_type: 'tuner', marker_desc: '', marker_imagecount: 0 }); google.maps.event.addListener(marker55,'click', function() { populate_marker(marker55); }); ibizaMarkers.push(marker55); var marker56 = new google.maps.Marker({ position: new google.maps.LatLng(26.919948258068786,46.29394531249999), title: 'Italienische Wagen', icon: 'images/icons/wrench.png', marker_id: '56', marker_type: 'tuner', marker_desc: '', marker_imagecount: 0 }); google.maps.event.addListener(marker56,'click', function() { populate_marker(marker56); }); ibizaMarkers.push(marker56); var marker57 = new google.maps.Marker({ position: new google.maps.LatLng(-13.220872416377471,34.07714843749999), title: 'Waschanlage', icon: 'images/icons/water.png', marker_id: '57', marker_type: 'carwash', marker_desc: '', marker_imagecount: 0 }); google.maps.event.addListener(marker57,'click', function() { populate_marker(marker57); }); ibizaMarkers.push(marker57); var marker58 = new google.maps.Marker({ position: new google.maps.LatLng(-51.74210959431985,-23.535156250000004), title: 'Waschanlage', icon: 'images/icons/water.png', marker_id: '58', marker_type: 'carwash', marker_desc: '', marker_imagecount: 0 }); google.maps.event.addListener(marker58,'click', function() { populate_marker(marker58); }); ibizaMarkers.push(marker58); var marker59 = new google.maps.Marker({ position: new google.maps.LatLng(-75.7865259065316,-105.09765625), title: 'Waschanlage', icon: 'images/icons/water.png', marker_id: '59', marker_type: 'carwash', marker_desc: '', marker_imagecount: 0 }); google.maps.event.addListener(marker59,'click', function() { populate_marker(marker59); }); ibizaMarkers.push(marker59); var marker60 = new google.maps.Marker({ position: new google.maps.LatLng(-76.7661171263354,-24.765625000000004), title: 'Autoaufklebergeschäft', icon: 'images/icons/color.png', marker_id: '60', marker_type: 'paint', marker_desc: '', marker_imagecount: 0 }); google.maps.event.addListener(marker60,'click', function() { populate_marker(marker60); }); ibizaMarkers.push(marker60); var marker61 = new google.maps.Marker({ position: new google.maps.LatLng(9.164829593292426,2.700195312499996), title: 'Autoaufklebergeschäft', icon: 'images/icons/color.png', marker_id: '61', marker_type: 'paint', marker_desc: '', marker_imagecount: 0 }); google.maps.event.addListener(marker61,'click', function() { populate_marker(marker61); }); ibizaMarkers.push(marker61); var marker62 = new google.maps.Marker({ position: new google.maps.LatLng(26.684603454001863,102.2802734375), title: 'Sa Cala-Haus', icon: 'images/icons/house.png', marker_id: '62', marker_type: 'house', marker_desc: 'Plätze: 6, Sterne: 3', marker_imagecount: 0 }); google.maps.event.addListener(marker62,'click', function() { populate_marker(marker62); }); ibizaMarkers.push(marker62); var marker63 = new google.maps.Marker({ position: new google.maps.LatLng(37.59493862455495,90.546875), title: 'Caletes-Haus', icon: 'images/icons/house.png', marker_id: '63', marker_type: 'house', marker_desc: 'Plätze: 4, Sterne: 2', marker_imagecount: 0 }); google.maps.event.addListener(marker63,'click', function() { populate_marker(marker63); }); ibizaMarkers.push(marker63); var marker64 = new google.maps.Marker({ position: new google.maps.LatLng(47.14327903572705,54.77539062499999), title: 'Portinatx-Anwesen', icon: 'images/icons/house.png', marker_id: '64', marker_type: 'house', marker_desc: 'Plätze: 4, Sterne: 2', marker_imagecount: 0 }); google.maps.event.addListener(marker64,'click', function() { populate_marker(marker64); }); ibizaMarkers.push(marker64); var marker65 = new google.maps.Marker({ position: new google.maps.LatLng(35.97608054531543,4.194335937499996), title: 'Strand-Apartment', icon: 'images/icons/house.png', marker_id: '65', marker_type: 'house', marker_desc: 'Plätze: 2, Sterne: 1', marker_imagecount: 0 }); google.maps.event.addListener(marker65,'click', function() { populate_marker(marker65); }); ibizaMarkers.push(marker65); var marker66 = new google.maps.Marker({ position: new google.maps.LatLng(-4.502133929185729,27.792968749999996), title: 'Sant Llorenc-Hacienda', icon: 'images/icons/house.png', marker_id: '66', marker_type: 'house', marker_desc: 'Plätze: 6, Sterne: 3', marker_imagecount: 0 }); google.maps.event.addListener(marker66,'click', function() { populate_marker(marker66); }); ibizaMarkers.push(marker66); var marker67 = new google.maps.Marker({ position: new google.maps.LatLng(7.03311403911093,-69.23828125), title: 'Zenith-Loft', icon: 'images/icons/house.png', marker_id: '67', marker_type: 'house', marker_desc: 'Plätze: 6, Sterne: 3', marker_imagecount: 0 }); google.maps.event.addListener(marker67,'click', function() { populate_marker(marker67); }); ibizaMarkers.push(marker67); var marker68 = new google.maps.Marker({ position: new google.maps.LatLng(-16.9960310649466,-58.0322265625), title: 'Fujinoki-Anwesen', icon: 'images/icons/house.png', marker_id: '68', marker_type: 'house', marker_desc: 'Plätze: 6, Sterne: 3', marker_imagecount: 0 }); google.maps.event.addListener(marker68,'click', function() { populate_marker(marker68); }); ibizaMarkers.push(marker68); var marker69 = new google.maps.Marker({ position: new google.maps.LatLng(-39.7934831818152,-85.9375), title: 'Wohnwagen', icon: 'images/icons/house.png', marker_id: '69', marker_type: 'house', marker_desc: 'Preis: Geschenkt, Plätze: 2, Sterne: 0', marker_imagecount: 0 }); google.maps.event.addListener(marker69,'click', function() { populate_marker(marker69); }); ibizaMarkers.push(marker69); var marker70 = new google.maps.Marker({ position: new google.maps.LatLng(-46.51515310490806,-108.3056640625), title: 'Fontanelles-Haus', icon: 'images/icons/house.png', marker_id: '70', marker_type: 'house', marker_desc: 'Plätze: 2, Sterne: 1', marker_imagecount: 0 }); google.maps.event.addListener(marker70,'click', function() { populate_marker(marker70); }); ibizaMarkers.push(marker70); var marker71 = new google.maps.Marker({ position: new google.maps.LatLng(-60.62049096148903,-125.2685546875), title: 'Yacht', icon: 'images/icons/house.png', marker_id: '71', marker_type: 'house', marker_desc: 'Plätze: 6, Sterne: 5', marker_imagecount: 0 }); google.maps.event.addListener(marker71,'click', function() { populate_marker(marker71); }); ibizaMarkers.push(marker71); var marker72 = new google.maps.Marker({ position: new google.maps.LatLng(-68.4404632571992,-136.9580078125), title: 'Cala Moli-Anwesen', icon: 'images/icons/house.png', marker_id: '72', marker_type: 'house', marker_desc: 'Plätze: 4, Sterne: 2', marker_imagecount: 0 }); google.maps.event.addListener(marker72,'click', function() { populate_marker(marker72); }); ibizaMarkers.push(marker72); var marker73 = new google.maps.Marker({ position: new google.maps.LatLng(-79.95551371705623,-86.11328125), title: 'Porroig-Haus', icon: 'images/icons/house.png', marker_id: '73', marker_type: 'house', marker_desc: 'Plätze: 2, Sterne: 1', marker_imagecount: 0 }); google.maps.event.addListener(marker73,'click', function() { populate_marker(marker73); }); ibizaMarkers.push(marker73); var marker74 = new google.maps.Marker({ position: new google.maps.LatLng(-81.90188259360106,-25.600585937500004), title: 'Salines-Villa', icon: 'images/icons/house.png', marker_id: '74', marker_type: 'house', marker_desc: 'Plätze: 4, Sterne: 2', marker_imagecount: 0 }); google.maps.event.addListener(marker74,'click', function() { populate_marker(marker74); }); ibizaMarkers.push(marker74); var marker75 = new google.maps.Marker({ position: new google.maps.LatLng(-78.83227125654669,-30.039062500000004), title: 'Sant Jordi-Anwesen', icon: 'images/icons/house.png', marker_id: '75', marker_type: 'house', marker_desc: 'Plätze: 2, Sterne: 1', marker_imagecount: 0 }); google.maps.event.addListener(marker75,'click', function() { populate_marker(marker75); }); ibizaMarkers.push(marker75); var marker76 = new google.maps.Marker({ position: new google.maps.LatLng(-73.08093194005835,-54.6923828125), title: 'Lumberjack-Haus', icon: 'images/icons/house.png', marker_id: '76', marker_type: 'house', marker_desc: 'Plätze: 4, Sterne: 2', marker_imagecount: 0 }); google.maps.event.addListener(marker76,'click', function() { populate_marker(marker76); }); ibizaMarkers.push(marker76); var marker77 = new google.maps.Marker({ position: new google.maps.LatLng(-70.17845995668192,-0.7714843750000044), title: 'Eivissa-Haus', icon: 'images/icons/house.png', marker_id: '77', marker_type: 'house', marker_desc: 'Plätze: 6, Sterne: 3', marker_imagecount: 0 }); google.maps.event.addListener(marker77,'click', function() { populate_marker(marker77); }); ibizaMarkers.push(marker77); var marker78 = new google.maps.Marker({ position: new google.maps.LatLng(-56.45166407280923,-20.678710937500004), title: 'Sant Rafael-Hacienda', icon: 'images/icons/house.png', marker_id: '78', marker_type: 'house', marker_desc: 'Plätze: 2, Sterne: 1', marker_imagecount: 0 }); google.maps.event.addListener(marker78,'click', function() { populate_marker(marker78); }); ibizaMarkers.push(marker78); var marker79 = new google.maps.Marker({ position: new google.maps.LatLng(-43.24693601003392,59.69726562499999), title: 'Santa Eulària-Anwesen', icon: 'images/icons/house.png', marker_id: '79', marker_type: 'house', marker_desc: 'Plätze: 2, Sterne: 1', marker_imagecount: 0 }); google.maps.event.addListener(marker79,'click', function() { populate_marker(marker79); }); ibizaMarkers.push(marker79); var marker80 = new google.maps.Marker({ position: new google.maps.LatLng(-29.01982881861528,55.83007812499999), title: 'Refuge-Haus', icon: 'images/icons/house.png', marker_id: '80', marker_type: 'house', marker_desc: 'Plätze: 4, Sterne: 2', marker_imagecount: 0 }); google.maps.event.addListener(marker80,'click', function() { populate_marker(marker80); }); ibizaMarkers.push(marker80); var marker81 = new google.maps.Marker({ position: new google.maps.LatLng(-38.63589519327437,64.267578125), title: 'Community-Rennzentrum', icon: 'images/icons/diamond.png', marker_id: '81', marker_type: 'community', marker_desc: '', marker_imagecount: 0 }); google.maps.event.addListener(marker81,'click', function() { populate_marker(marker81); }); ibizaMarkers.push(marker81); var marker82 = new google.maps.Marker({ position: new google.maps.LatLng(-37.35458430110612,-82.5537109375), title: 'Community-Rennzentrum', icon: 'images/icons/diamond.png', marker_id: '82', marker_type: 'community', marker_desc: '', marker_imagecount: 0 }); google.maps.event.addListener(marker82,'click', function() { populate_marker(marker82); }); ibizaMarkers.push(marker82); var marker83 = new google.maps.Marker({ position: new google.maps.LatLng(-20.454995023400038,15.040820312499976), title: 'Steinbrücke und Ruine', icon: 'images/icons/camera.png', marker_id: '83', marker_type: 'photo', marker_desc: 'Nördliches Zentrum von Ibiza (Bild 9)
Tageszeit: 10:00 - 20:00h
Fahrzeug: keines

', marker_imagecount: 3 }); google.maps.event.addListener(marker83,'click', function() { populate_marker(marker83); }); ibizaMarkers.push(marker83); var marker84 = new google.maps.Marker({ position: new google.maps.LatLng(-46.798671355275445,-123.056640625), title: 'Bauernhof und Lavendelfeld', icon: 'images/icons/camera.png', marker_id: '84', marker_type: 'photo', marker_desc: 'Südwestlich von Sant Antoni
keine Anforderungen', marker_imagecount: 3 }); google.maps.event.addListener(marker84,'click', function() { populate_marker(marker84); }); ibizaMarkers.push(marker84); var marker85 = new google.maps.Marker({ position: new google.maps.LatLng(26.28634116987251,99.19609374999996), title: 'Bienvenidos', icon: 'images/icons/camera.png', marker_id: '85', marker_type: 'photo', marker_desc: 'Der Eingang zur Stadt und deren herzlicher, spanischer Empfang (Bild 1)
Tageszeit: 12:00 - 19:00h

', marker_imagecount: 2 }); google.maps.event.addListener(marker85,'click', function() { populate_marker(marker85); }); ibizaMarkers.push(marker85); var marker86 = new google.maps.Marker({ position: new google.maps.LatLng(-57.72009903698645,-22.620312500000026), title: 'Felsbogen über der Straße', icon: 'images/icons/camera.png', marker_id: '86', marker_type: 'photo', marker_desc: 'Süden der Insel (Bild 17)

', marker_imagecount: 3 }); google.maps.event.addListener(marker86,'click', function() { populate_marker(marker86); }); ibizaMarkers.push(marker86); var marker87 = new google.maps.Marker({ position: new google.maps.LatLng(-39.59483729396371,64.52324218749997), title: 'Hafeneinfahrt', icon: 'images/icons/camera.png', marker_id: '87', marker_type: 'photo', marker_desc: 'In Santa Eulària (Bild 7)
', marker_imagecount: 3 }); google.maps.event.addListener(marker87,'click', function() { populate_marker(marker87); }); ibizaMarkers.push(marker87); var marker88 = new google.maps.Marker({ position: new google.maps.LatLng(44.63177674236085,20.40214843749997), title: 'Hölzerne Fischerhütten', icon: 'images/icons/camera.png', marker_id: '88', marker_type: 'photo', marker_desc: 'Nahe dem Wasser, bei Sonnenuntergang, auf einer Halbinsel im Norden (Bild 14)
Tageszeit: 18:00 - 21:00
', marker_imagecount: 3 }); google.maps.event.addListener(marker88,'click', function() { populate_marker(marker88); }); ibizaMarkers.push(marker88); var marker89 = new google.maps.Marker({ position: new google.maps.LatLng(-69.3632971058799,3.746874999999976), title: 'Ibizas Docks', icon: 'images/icons/camera.png', marker_id: '89', marker_type: 'photo', marker_desc: 'Nahe dem Frachthafen (Bild 2)', marker_imagecount: 3 }); google.maps.event.addListener(marker89,'click', function() { populate_marker(marker89); }); ibizaMarkers.push(marker89); var marker90 = new google.maps.Marker({ position: new google.maps.LatLng(4.667116087982181,-70.30097656250003), title: 'Klippen über dem Meer', icon: 'images/icons/camera.png', marker_id: '90', marker_type: 'photo', marker_desc: 'Bereich West-Nordwest (Bild 18)
Wetter: Bewölkt
Tageszeit: 10:00 - 18:00

', marker_imagecount: 3 }); google.maps.event.addListener(marker90,'click', function() { populate_marker(marker90); }); ibizaMarkers.push(marker90); var marker91 = new google.maps.Marker({ position: new google.maps.LatLng(48.72925129964953,56.04179687499997), title: 'Leuchtturm von Portinatx', icon: 'images/icons/camera.png', marker_id: '91', marker_type: 'photo', marker_desc: 'Ferner Nordosten (Bild 13)
Tageszeit: 14:00 - 20:00
', marker_imagecount: 3 }); google.maps.event.addListener(marker91,'click', function() { populate_marker(marker91); }); ibizaMarkers.push(marker91); var marker92 = new google.maps.Marker({ position: new google.maps.LatLng(-60.821372155159175,-125.32050781250004), title: 'Yachthafen Cala Tarida', icon: 'images/icons/camera.png', marker_id: '92', marker_type: 'photo', marker_desc: 'Südwesten von Ibiza (Bild 19)
Tageszeit: 06:00 - 14:00

', marker_imagecount: 2 }); google.maps.event.addListener(marker92,'click', function() { populate_marker(marker92); }); ibizaMarkers.push(marker92); var marker93 = new google.maps.Marker({ position: new google.maps.LatLng(38.8335618523795,14.733203124999976), title: 'Windräder', icon: 'images/icons/camera.png', marker_id: '93', marker_type: 'photo', marker_desc: 'Nördlich von Ibiza, auf einer Off-Road-Strecke (Bild 10) ', marker_imagecount: 3 }); google.maps.event.addListener(marker93,'click', function() { populate_marker(marker93); }); ibizaMarkers.push(marker93); var marker94 = new google.maps.Marker({ position: new google.maps.LatLng(-68.61941023399103,-135.0537109375), title: 'Segelboot in der Bucht', icon: 'images/icons/camera.png', marker_id: '94', marker_type: 'photo', marker_desc: 'In Cala Moli (Bild 20)

', marker_imagecount: 3 }); google.maps.event.addListener(marker94,'click', function() { populate_marker(marker94); }); ibizaMarkers.push(marker94); var marker95 = new google.maps.Marker({ position: new google.maps.LatLng(-81.56413736957097,-32.288281250000004), title: 'Salzlager', icon: 'images/icons/camera.png', marker_id: '95', marker_type: 'photo', marker_desc: 'Ferner Süden von Ibiza (Bild 4)
Tageszeit: 23:00 - 0:45', marker_imagecount: 3 }); google.maps.event.addListener(marker95,'click', function() { populate_marker(marker95); }); ibizaMarkers.push(marker95); var marker96 = new google.maps.Marker({ position: new google.maps.LatLng(-46.85056065391436,-81.85859375), title: 'Palast von Sant Antoni bei Nacht', icon: 'images/icons/camera.png', marker_id: '96', marker_type: 'photo', marker_desc: 'Südlich von Cala de Sant Antoni (Bild 15)
Tageszeit: 22:00 - 05:00h', marker_imagecount: 3 }); google.maps.event.addListener(marker96,'click', function() { populate_marker(marker96); }); ibizaMarkers.push(marker96); var marker97 = new google.maps.Marker({ position: new google.maps.LatLng(-71.62346235017235,0.4070312499999762), title: 'Stadtmauern von Evissa', icon: 'images/icons/camera.png', marker_id: '97', marker_type: 'photo', marker_desc: 'Südwesten von Ibiza (Bild 16)
Tageszeit: 06:00 - 18:00', marker_imagecount: 3 }); google.maps.event.addListener(marker97,'click', function() { populate_marker(marker97); }); ibizaMarkers.push(marker97); var marker98 = new google.maps.Marker({ position: new google.maps.LatLng(-16.748982910141137,-59.9298828125), title: 'Mittelalterlicher Turm', icon: 'images/icons/camera.png', marker_id: '98', marker_type: 'photo', marker_desc: 'Mittlerer Westen der Insel (Bild 8)
Wetter: Bewölkt
Tageszeit: 06:00 - 20:00', marker_imagecount: 3 }); google.maps.event.addListener(marker98,'click', function() { populate_marker(marker98); }); ibizaMarkers.push(marker98); var marker99 = new google.maps.Marker({ position: new google.maps.LatLng(-43.410779363794056,-85.462109375), title: 'Luxuswagen und Leuchtturm', icon: 'images/icons/camera.png', marker_id: '99', marker_type: 'photo', marker_desc: 'F430 Scuderia am Pier (Bild 3)
Tageszeit: 08:00 - 17:00
Fahrzeug: Ferrari 430 Scuderia', marker_imagecount: 3 }); google.maps.event.addListener(marker99,'click', function() { populate_marker(marker99); }); ibizaMarkers.push(marker99); var marker100 = new google.maps.Marker({ position: new google.maps.LatLng(-78.82482466471383,-124.221875), title: 'Auto unter Felsbogen', icon: 'images/icons/camera.png', marker_id: '100', marker_type: 'photo', marker_desc: 'Süden der Insel (Bild 11)
Fahrzeug: Mercedes-Benz ML63 AMG', marker_imagecount: 3 }); google.maps.event.addListener(marker100,'click', function() { populate_marker(marker100); }); ibizaMarkers.push(marker100); var marker101 = new google.maps.Marker({ position: new google.maps.LatLng(-71.97463061111584,0.5388671874999762), title: 'Klassischer Wagen in der Altstadt', icon: 'images/icons/camera.png', marker_id: '101', marker_type: 'photo', marker_desc: 'Innerhalb der Stadtmauern von Ibiza (Bild 12)
Fahrzeug: Chevrolet Corvette C1 1957', marker_imagecount: 3 }); google.maps.event.addListener(marker101,'click', function() { populate_marker(marker101); }); ibizaMarkers.push(marker101); var marker102 = new google.maps.Marker({ position: new google.maps.LatLng(23.536611805644394,76.16874999999997), title: 'Mittelalterlicher Wachturm', icon: 'images/icons/camera.png', marker_id: '102', marker_type: 'photo', marker_desc: 'Nordosten von Ibiza. Auf einem Hügel zwischen zwei Felstürmen. (Bild 5)', marker_imagecount: 3 }); google.maps.event.addListener(marker102,'click', function() { populate_marker(marker102); }); ibizaMarkers.push(marker102); map.setMapTypeId('ibiza'); } // end initialize() function populate_marker(m) { var i = m.marker_imagecount; var itxt, iurl, letter; if(i > 0) { itxt = ''; for(var j = 1; j <= i; j++) { iurl = 'images/'+ m.marker_type +'/img_' + m.marker_id + '_' + j + '.jpg'; itxt += '
'; } itxt += '
(Bilder anklicken zum Vergrößern)
'; } else { itxt = ''; } infowindow.setContent("
" + m.title + " [" + m.marker_id + "]
" + m.marker_desc + "
" + itxt + "
"); infowindow.open(map,m); } function createMapMarkers(map) { var setMarkerList = {}; var removeMarkerList = {}; var m; if(map.mapTypeId == 'ibiza') { setMarkerList = ibizaMarkers; removeMarkerList = oahuMarkers; } if(map.mapTypeId == 'oahu') { setMarkerList = oahuMarkers; removeMarkerList = ibizaMarkers; } for(var i = 0; i < setMarkerList.length; i++) { // > m = setMarkerList[i]; if(m.marker_type in visibleItems) { m.setMap(map); } else { m.setMap(null); } } for(var i = 0; i < removeMarkerList.length; i++) { // > m = removeMarkerList[i]; m.setMap(null); } } $(document).ready(function() { $('#filters li input').change( function() { var id = $(this).attr('id').replace('c-',''); var checked = false; if($(this).attr('checked')) checked = true; if(id != 'all') { if(checked) visibleItems[id] = true; else delete visibleItems[id]; } else { for(var i in allItems) { if(checked) visibleItems[i] = true; else delete visibleItems[i]; } $('#filters li input').not('#c-all').attr('checked',checked); } }); });