Carte des excursions en Guadeloupe <script> function radiusFilter() { var e = new google.maps.Geocoder, a = document.getElementById("radiusSearchBox").value, r = parseInt(document.getElementById("radiusDistance").value); return r < 1 || isNaN(r) ? (alert("Please enter distance."), !1) : myLocation && a.length < 1 ? ( currentLocation = myLocation, doRadiusFilter()) : void e.geocode({ address: a }, function (e, a) { if (a == google.maps.GeocoderStatus.OK && a != google.maps.GeocoderStatus.ZERO_RESULTS) { var r = e[0].geometry.location.lat(), s = e[0].geometry.location.lng(); return currentLocation = new google.maps.LatLng(r, s), doRadiusFilter() } }) } function doRadiusFilter() { filtered = [], google.maps.event.addDomListenerOnce(window, "afterMapInit", function () { home_marker = new google.maps.Marker({ position: currentLocation, map: map, icon: getMarkerImage("mylocation.png"), zIndex: Math.round(currentLocation.lat() * -1e5) 0) { for (var a = 0; a < e.length; a++) filtered.push(e[a]); markers = [], initialize("filtered") } else alert("No results found.") } }) } function calcRoute() { var e = document.getElementById("radiusSearchBox").value; e.length < 1 && myLocation && (e = myLocation); var a = directionLatLng, r = { origin: e, destination: a, travelMode: google.maps.DirectionsTravelMode.DRIVING }; directionsService.route(r, function (e, a) { if (a == google.maps.DirectionsStatus.OK) { var r = document.getElementById("warnings_panel"); r.innerHTML = "" + e.routes[0].warnings + "", directionsDisplay.setDirections(e), showSteps(e) } else alert("Wrong Address") }) } function showSteps(e) { for (var a = e.routes[0].legs[0], r = 0; r < a.steps.length; r++) { var s = new google.maps.Marker({ position: a.steps[r].start_point, map: null }); attachInstructionText(s, a.steps[r].instructions) } } function attachInstructionText(e, a) { google.maps.event.addListener(e, "click", function () { stepDisplay.setContent(a), stepDisplay.open(map, e) }) } function initialize(e) { "undefined" != typeof e && e || (e = "beaches"); var a = new google.maps.LatLng(16.166975, -61.427678101929), r = { zoom: 10, center: a, mapTypeControl: !0, mapTypeControlOptions: { style: google.maps.MapTypeControlStyle.DROPDOWN_MENU }, navigationControl: !0, scaleControl: !0, mapTypeId: google.maps.MapTypeId.ROADMAP }; map = new google.maps.Map(document.getElementById("map_canvas"), r), oms = new OverlappingMarkerSpiderfier( map, { markersWontMove: !0, legWeight: 0, keepSpiderfied: !0 }), google.maps.event.addListener(map, "click", function () { infowindow.close() }), mcOptions = { maxZoom: 16, styles: [{ height: 53, url: "/plugins/k2/swmap/swmap/images/cluster/m1.png", width: 53 }, { height: 56, url: "/plugins/k2/swmap/swmap/images/cluster/m2.png", width: 56 }, { height: 66, url: "/plugins/k2/swmap/swmap/images/cluster/m3.png", width: 66 }, { height: 78, url: "/plugins/k2/swmap/swmap/images/cluster/m4.png", width: 78 }, { height: 90, url: "/plugins/k2/swmap/swmap/images/cluster/m5.png", width: 90 }] }, setMarkers(map, window[e], e), directionsService = new google.maps.DirectionsService; var s = { map: map, suppressMarkers: 1 }; directionsDisplay = new google.maps.DirectionsRenderer(s), directionsDisplay.setPanel(document.getElementById( "stepDir")), stepDisplay = new google.maps.InfoWindow, google.maps.event.trigger(window, "afterMapInit") } function getMarkerImage(e) { return "undefined" != typeof e && null != e || (e = "red"), icons[e] || (icons[e] = new google.maps.MarkerImage( "https://www.icigo.com/plugins/k2/swmap/swmap/modern-blue/" + e)), icons[e] } function createMarker(e, a, r, s, i, t, n, o, u) { var l = '' + s + '' + i + "" + n + "" + o + "", p = new google.maps.Marker({ position: a, map: e, icon: getMarkerImage(t), title: r, zIndex: Math.round(a.lat() * -1e5)