{"id":35636,"date":"2024-01-10T11:01:28","date_gmt":"2024-01-10T10:01:28","guid":{"rendered":"https:\/\/staging.denis-katzer.de\/route-test\/"},"modified":"2024-01-17T17:07:25","modified_gmt":"2024-01-17T16:07:25","slug":"route-test","status":"publish","type":"page","link":"https:\/\/denis-katzer.de\/en\/route-test\/","title":{"rendered":"Charged to Morocco &#8211; Map"},"content":{"rendered":"\n<script src='https:\/\/maps.googleapis.com\/maps\/api\/js?sensor=false&#038;key=AIzaSyDpwRiOYzo6eUl3QSQ8zZbC4zb8n286H5M' type='text\/javascript'><\/script>\n<script type='text\/javascript'>\n    \/\/<![CDATA[\n    $ = jQuery;\n    colors = [\"#FF0000\", \"#00FF00\", \"#0000FF\", \"#FFFF00\", \"#00FFFF\", \"#FF00FF\"];\n    var map;\n    var last_coords = \"0\";\n    \n    function initialize() {\n        var myOptions = {\n            zoom: 3,\n            center: new google.maps.LatLng(44.6277777777778,26.1961111111111),\n            mapTypeId: google.maps.MapTypeId.HYBRID,\n            streetViewControl: false,\n            mapTypeControl: false,\n            fullscreenControl: false,\n            \/\/ change zoom control position to top right\n            zoomControlOptions: {\n                position: google.maps.ControlPosition.RIGHT_TOP\n            }\n\n        };\n        \n        var infowindow;\n        \n        var map = new google.maps.Map(document.getElementById('map'), myOptions);\n\n        var data = [[{\"lat\":29.050833333333333,\"lng\":-8.864166666666666,\"details\":[[\"When the earth trembles: the ephemeral beauty of the oasis village\",\"https:\\\/\\\/denis-katzer.de\\\/en\\\/when-the-earth-trembles-the-ephemeral-beauty-of-the-oasis-village\\\/\",\"Loaded up for Morocco\"]]},{\"lat\":29.237222222222222,\"lng\":-8.711666666666666,\"details\":[[\"Caught in the gravel: Will the long wheelbase be our undoing?\",\"https:\\\/\\\/denis-katzer.de\\\/en\\\/caught-in-the-gravel-will-the-long-wheelbase-be-our-undoing\\\/\",\"Loaded up for Morocco\"]]},{\"lat\":29.050833333333333,\"lng\":-8.864166666666666,\"details\":[[\"Trapped in oasis alleys: will we make it to the most beautiful campsite on the tour so far?\",\"https:\\\/\\\/denis-katzer.de\\\/en\\\/trapped-in-oasis-alleys-will-we-make-it-to-the-most-beautiful-campsite-on-the-tour-so-far\\\/\",\"Loaded up for Morocco\"]]},{\"lat\":29.237222222222222,\"lng\":-9.186388888888889,\"details\":[[\"Leaving the motorhome behind and exploring the mysterious source of life by e-bike and on foot\",\"https:\\\/\\\/denis-katzer.de\\\/en\\\/leaving-the-motorhome-behind-and-exploring-the-mysterious-source-of-life-by-e-bike-and-on-foot\\\/\",\"Loaded up for Morocco\"]]},{\"lat\":29.237222222222222,\"lng\":-9.186388888888889,\"details\":[[\"With e-bikes through the Sahara: A journey to the silence and essence of being\",\"https:\\\/\\\/denis-katzer.de\\\/en\\\/with-e-bikes-through-the-sahara-a-journey-to-the-silence-and-essence-of-being\\\/\",\"Loaded up for Morocco\"]]},{\"lat\":29.237222222222222,\"lng\":-9.186388888888889,\"details\":[[\"Agadir Id Aissa &#8211; On the trail of the Berber clans\",\"https:\\\/\\\/denis-katzer.de\\\/en\\\/agadir-id-aissa-on-the-trail-of-the-berber-clans\\\/\",\"Loaded up for Morocco\"]]},{\"lat\":29.237222222222222,\"lng\":-9.186388888888889,\"details\":[[\"WITH EXPEDITIONSMOBIL INTO LOCATED OASES &#8211; Health and injuries while traveling\",\"https:\\\/\\\/denis-katzer.de\\\/en\\\/with-expeditionsmobil-into-located-oases-health-and-injuries-while-traveling\\\/\",\"Loaded up for Morocco\"]]},{\"lat\":29.372777777777777,\"lng\":-10.169444444444444,\"details\":[[\"From the Sahara to the Atlantic coast\",\"https:\\\/\\\/denis-katzer.de\\\/en\\\/from-the-sahara-to-the-atlantic-coast\\\/\",\"Loaded up for Morocco\"]]},{\"lat\":29.016944444444444,\"lng\":-10.508333333333333,\"details\":[[\"POSSIBLE?\",\"https:\\\/\\\/denis-katzer.de\\\/en\\\/possible\\\/\",\"Loaded up for Morocco\"]]},{\"lat\":28.982777777777777,\"lng\":-10.067777777777778,\"details\":[[\"The gateway to the Sahara\",\"https:\\\/\\\/denis-katzer.de\\\/en\\\/the-gateway-to-the-sahara\\\/\",\"Loaded up for Morocco\"]]},{\"lat\":28.965833333333332,\"lng\":-10.61,\"details\":[[\"&#8220;We&#8217;re sinking!&#8221; shouts Tanja\",\"https:\\\/\\\/denis-katzer.de\\\/en\\\/were-sinking-shouts-tanja\\\/\",\"Loaded up for Morocco\"]]},{\"lat\":29.016944444444444,\"lng\":-10.508333333333333,\"details\":[[\"Sandstorm makes you ill &#8211; Loneliest beach in the world &#8211; Personal questions &#8211; Take hitchhikers with you?\",\"https:\\\/\\\/denis-katzer.de\\\/en\\\/sandstorm-makes-you-ill-loneliest-beach-in-the-world-personal-questions-take-hitchhikers-with-you\\\/\",\"Loaded up for Morocco\"]]},{\"lat\":28.49138888888889,\"lng\":-11.33888888888889,\"details\":[[\"Living in a motorhome dream or nightmare?\",\"https:\\\/\\\/denis-katzer.de\\\/en\\\/living-in-a-motorhome-dream-or-nightmare\\\/\",\"Loaded up for Morocco\"]]},{\"lat\":27.18638888888889,\"lng\":-13.389722222222222,\"details\":[[\"Through the Sahara in a motorhome\",\"https:\\\/\\\/denis-katzer.de\\\/en\\\/through-the-sahara-in-a-motorhome\\\/\",\"Loaded up for Morocco\"]]},{\"lat\":23.915,\"lng\":-15.796388888888888,\"details\":[[\"On the road again for almost 14 months and in Mauritania for two weeks.\",\"https:\\\/\\\/denis-katzer.de\\\/en\\\/on-the-road-again-for-almost-14-months-and-in-mauritania-for-two-weeks\\\/\",\"Loaded up for Morocco\"]]},{\"lat\":20.86416666666667,\"lng\":-17.016944444444444,\"details\":[[\"SKURRILSTER CAMPINGPLATZ &#8211; ATM eats credit card\",\"https:\\\/\\\/denis-katzer.de\\\/en\\\/skurrilster-campingplatz-atm-eats-credit-card\\\/\",\"Loaded up for Morocco\"]]},{\"lat\":20.86416666666667,\"lng\":-17.016944444444444,\"details\":[[\"FROM MOROCCO TO MAURETANIA\",\"https:\\\/\\\/denis-katzer.de\\\/en\\\/from-morocco-to-mauretania\\\/\",\"Loaded up for Morocco\"]]},{\"lat\":23.915,\"lng\":-15.796388888888888,\"details\":[[\"From Tan-Tan to Daklah\",\"https:\\\/\\\/denis-katzer.de\\\/en\\\/from-tan-tan-to-daklah\\\/\",\"Loaded up for Morocco\"]]},{\"lat\":28.49138888888889,\"lng\":-11.33888888888889,\"details\":[[\"First off-road experience in the desert &#8211; broken engine bracket &#8211; Can a small workshop help us?\",\"https:\\\/\\\/denis-katzer.de\\\/en\\\/first-off-road-experience-in-the-desert-broken-engine-bracket-can-a-small-workshop-help-us\\\/\",\"Loaded up for Morocco\"]]},{\"lat\":28.542222222222225,\"lng\":-10.999722222222221,\"details\":[[\"At night in a parking lot in Agadir &#8211; oil leak? &#8211; Journey into the desert\",\"https:\\\/\\\/denis-katzer.de\\\/en\\\/at-night-in-a-parking-lot-in-agadir-oil-leak-journey-into-the-desert\\\/\",\"Loaded up for Morocco\"]]},{\"lat\":28.965833333333332,\"lng\":-10.61,\"details\":[[\"Wolfgang, 81 years old, has sold everything and has traveled around the world twice in the last 3 years.\",\"https:\\\/\\\/denis-katzer.de\\\/en\\\/wolfgang-81-years-old-has-sold-everything-and-has-traveled-around-the-world-twice-in-the-last-3-years\\\/\",\"Loaded up for Morocco\"]]},{\"lat\":30.389722222222222,\"lng\":-9.57611111111111,\"details\":[[\"Towards Agadir &#8211; Visit to the animal organization Animal Aid &#8211; Threatened by eviction\",\"https:\\\/\\\/denis-katzer.de\\\/en\\\/towards-agadir-visit-to-the-animal-organization-animal-aid-threatened-by-eviction\\\/\",\"Loaded up for Morocco\"]]},{\"lat\":31.355833333333333,\"lng\":-9.796388888888888,\"details\":[[\"The blue and white fishing town of Essaouira\",\"https:\\\/\\\/denis-katzer.de\\\/en\\\/camping-marrakesch-diesel-heating-failure-awning-installation-sealing-roof-windows-sahara-preparation-2\\\/\",\"Loaded up for Morocco\"]]},{\"lat\":31.711666666666666,\"lng\":-7.999722222222222,\"details\":[[\"Tanja is back\",\"https:\\\/\\\/denis-katzer.de\\\/en\\\/tanja-is-back\\\/\",\"Loaded up for Morocco\"]]},{\"lat\":31.711666666666666,\"lng\":-7.999722222222222,\"details\":[[\"CAMPING MARRAKESCH-Diesel heating failure-Awning installation-Sealing roof windows-Sahara preparation\",\"https:\\\/\\\/denis-katzer.de\\\/en\\\/camping-marrakesch-diesel-heating-failure-awning-installation-sealing-roof-windows-sahara-preparation\\\/\",\"Loaded up for Morocco\"]]},{\"lat\":31.711666666666666,\"lng\":-7.999722222222222,\"details\":[[\"Around the world with the unique Overland roof tent bus since 1989!\",\"https:\\\/\\\/denis-katzer.de\\\/en\\\/around-the-world-with-the-unique-overland-roof-tent-bus-since-1989\\\/\",\"Loaded up for Morocco\"]]},{\"lat\":31.711666666666666,\"lng\":-7.999722222222222,\"details\":[[\"Micha (60) overcomes lung cancer and crosses Africa in a Zetros 6&#215;6 &#8211; Truck tour\",\"https:\\\/\\\/denis-katzer.de\\\/en\\\/micha-60-overcomes-lung-cancer-and-crosses-africa-in-a-zetros-6x6-truck-tour\\\/\",\"Loaded up for Morocco\"]]},{\"lat\":31.711666666666666,\"lng\":-7.999722222222222,\"details\":[[\"Offroad kings\",\"https:\\\/\\\/denis-katzer.de\\\/en\\\/offroad-kings\\\/\",\"Loaded up for Morocco\"]]},{\"lat\":31.79638888888889,\"lng\":9.593055555555557,\"details\":[[\"Safi&#8217;s pottery secret, freedom on coastal road &#8211; Shocking WhatsApp changes travel plans\",\"https:\\\/\\\/denis-katzer.de\\\/en\\\/safis-pottery-secret-freedom-on-coastal-road-shocking-whatsapp-changes-travel-plans\\\/\",\"Loaded up for Morocco\"]]},{\"lat\":33.22027777777778,\"lng\":-8.559166666666668,\"details\":[[\"3rd largest mosque in the world\",\"https:\\\/\\\/denis-katzer.de\\\/en\\\/3rd-largest-mosque-in-the-world\\\/\",\"Loaded up for Morocco\"]]},{\"lat\":32.728611111111114,\"lng\":-9.033888888888889,\"details\":[[\"Nadja (66), mother of six children, travels alone through Europe and Morocco in a camper van.\",\"https:\\\/\\\/denis-katzer.de\\\/en\\\/nadja-66-mother-of-six-children-travels-alone-through-europe-and-morocco-in-a-camper-van\\\/\",\"Loaded up for Morocco\"]]},{\"lat\":42.33888888888889,\"lng\":3.1016666666666666,\"details\":[[\"Border France &#8211; Spain &#8211; refueling refused\",\"https:\\\/\\\/denis-katzer.de\\\/en\\\/border-france-spain-refueling-refused\\\/\",\"Loaded up for Morocco\"]]},{\"lat\":43.4575,\"lng\":3.7455555555555557,\"details\":[[\"Storm and memories\",\"https:\\\/\\\/denis-katzer.de\\\/en\\\/storm-and-memories\\\/\",\"Loaded up for Morocco\"]]},{\"lat\":43.38972222222222,\"lng\":3.321944444444444,\"details\":[[\"Rain\",\"https:\\\/\\\/denis-katzer.de\\\/en\\\/technology-updates-apps-2\\\/\",\"Loaded up for Morocco\"]]},{\"lat\":43.38972222222222,\"lng\":3.321944444444444,\"details\":[[\"Technology &#8211; Updates &#8211; Apps\",\"https:\\\/\\\/denis-katzer.de\\\/en\\\/technology-updates-apps\\\/\",\"Loaded up for Morocco\"]]},{\"lat\":45.62694444444445,\"lng\":2.4575,\"details\":[[\"Should we spend the night at the highway service station?\",\"https:\\\/\\\/denis-katzer.de\\\/en\\\/should-we-spend-the-night-at-the-highway-service-station\\\/\",\"Loaded up for Morocco\"]]},{\"lat\":47.50833333333333,\"lng\":6.982777777777778,\"details\":[[\"Internet outage &#8211; flying blind\",\"https:\\\/\\\/denis-katzer.de\\\/en\\\/internet-outage-flying-blind\\\/\",\"Loaded up for Morocco\"]]},{\"lat\":47.779444444444444,\"lng\":7.711666666666667,\"details\":[[\"Like in a fairytale forest\",\"https:\\\/\\\/denis-katzer.de\\\/en\\\/like-in-a-fairytale-forest\\\/\",\"Loaded up for Morocco\"]]},{\"lat\":47.779444444444444,\"lng\":7.711666666666667,\"details\":[[\"Joy shared is joy immeasurable!\",\"https:\\\/\\\/denis-katzer.de\\\/en\\\/joy-shared-is-joy-immeasurable\\\/\",\"Loaded up for Morocco\"]]},{\"lat\":47.779444444444444,\"lng\":7.711666666666667,\"details\":[[\"Travel in the flow\",\"https:\\\/\\\/denis-katzer.de\\\/en\\\/travel-in-the-flow\\\/\",\"Loaded up for Morocco\"]]},{\"lat\":47.49138888888889,\"lng\":5.982777777777778,\"details\":[[\"Myths and legends\",\"https:\\\/\\\/denis-katzer.de\\\/en\\\/myths-and-legends\\\/\",\"Loaded up for Morocco\"]]},{\"lat\":47.49138888888889,\"lng\":5.982777777777778,\"details\":[[\"Dialogues\",\"https:\\\/\\\/denis-katzer.de\\\/en\\\/dialogues\\\/\",\"Loaded up for Morocco\"]]}]];\n\n        \/*\n        for (var i = 0; i < data.length; i++) {\n            console.log(data[i]);\n        }\n        *\/\n\n        $.each(data, function(category_key, category){\n            var posts = [];\n            $.each(category, function(post_key, grouped_posts_value){\n            last_coords = grouped_posts_value;\n            position = new google.maps.LatLng(grouped_posts_value.lat, grouped_posts_value.lng)\n            posts.push(position);\n            \n            grouped_posts = \"\"\n            $.each(grouped_posts_value.details, function(post_detail_key, post_detail_value){\n                grouped_posts = grouped_posts + \"<li><a href='\" + post_detail_value[1] + \"'>\" + post_detail_value[0] + \"<\/a><\/li>\";\n            });\n            grouped_posts = \"<p>\" + grouped_posts_value.details[0][2] + \"<\/p><ul>\" + grouped_posts + \"<\/ul>\";\n            \n            var marker = new google.maps.Marker({\n                position: position,\n                map: map,\n                                title: 'Info'\n            });\n            \n            (function(grouped_posts, marker){\n                google.maps.event.addListener(marker, 'click', function() {\n                if(!infowindow) {\n                    infowindow = new google.maps.InfoWindow();\n                }\n                infowindow.setContent(grouped_posts);\n                infowindow.open(map, marker);\n                });\n            })(grouped_posts, marker)\n            \n            \n            });\n            var routePlanCoordinates = posts;\n            var routePath = new google.maps.Polyline({\n            path: routePlanCoordinates,\n                        strokeColor: colors[category_key],\n                        strokeOpacity: 8.0,\n            strokeWeight: 4\n            });\n            routePath.setMap(map);\n        });\n        map.setCenter(new google.maps.LatLng(last_coords.lat, last_coords.lng));\n       \n        \n    }\n    \n    google.maps.event.addDomListener(window, 'load', initialize);\n    \/\/]]>\n<\/script>\n\n<style type=\"text\/css\">\n    #map {\n        width: 100%;\n        height: calc(100vh - 330px);\n        min-height: 800px;\n        \/*position: absolute*\/\n        top: 0;\n        right: 0;\n        bottom: 0;\n        left: 0;\n    }\n    #map img {\n        border-radius: 0!important;\n        box-shadow: none!important;\n        filter: none!important;\n    }\n    #map div[role=\"dialog\"] p {\n        color: #000;\n    }\n    .text-section {\n        padding: 0!important;\n    }\n    .text-section .container {\n        max-width: 9999px;\n        padding: 0;\n    }\n    .bg {\n        padding-bottom: 0;\n    }\n\n<\/style>\n\n<div id='map'><\/div>","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":20,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-35636","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/denis-katzer.de\/en\/wp-json\/wp\/v2\/pages\/35636","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/denis-katzer.de\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/denis-katzer.de\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/denis-katzer.de\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/denis-katzer.de\/en\/wp-json\/wp\/v2\/comments?post=35636"}],"version-history":[{"count":15,"href":"https:\/\/denis-katzer.de\/en\/wp-json\/wp\/v2\/pages\/35636\/revisions"}],"predecessor-version":[{"id":36800,"href":"https:\/\/denis-katzer.de\/en\/wp-json\/wp\/v2\/pages\/35636\/revisions\/36800"}],"wp:attachment":[{"href":"https:\/\/denis-katzer.de\/en\/wp-json\/wp\/v2\/media?parent=35636"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}