{"id":6378,"date":"2025-01-21T10:21:21","date_gmt":"2025-01-21T09:21:21","guid":{"rendered":"https:\/\/cercle-nautique-du-touquet.org\/?page_id=6378"},"modified":"2025-01-21T10:26:08","modified_gmt":"2025-01-21T09:26:08","slug":"6378-2","status":"publish","type":"page","link":"https:\/\/cercle-nautique-du-touquet.org\/index.php\/6378-2\/","title":{"rendered":"maps"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">&lt;!DOCTYPE html><br>&lt;html><br>&lt;head><br>    &lt;title>Google Maps with GPS Integration&lt;\/title><br>    &lt;script src=\u00a0\u00bbhttps:\/\/maps.googleapis.com\/maps\/api\/js?key=AIzaSyDX_HeHiVcwg7a5HfRLRqGLzk9gla4b_Tc&amp;callback=initMap\u00a0\u00bb async defer>&lt;\/script><br>    &lt;script><br>        let map;<br>        let marker;<br><br>        function initMap() {<br>            map = new google.maps.Map(document.getElementById(&lsquo;map&rsquo;), {<br>                center: { lat: -34.397, lng: 150.644 },<br>                zoom: 8<br>            });<br><br>            marker = new google.maps.Marker({<br>                map: map,<br>                position: { lat: -34.397, lng: 150.644 }<br>            });<br><br>            if (navigator.geolocation) {<br>                navigator.geolocation.watchPosition(updatePosition);<br>            } else {<br>                alert(\u00ab\u00a0Geolocation is not supported by this browser.\u00a0\u00bb);<br>            }<br>        }<br><br>        function updatePosition(position) {<br>            const pos = {<br>                lat: position.coords.latitude,<br>                lng: position.coords.longitude<br>            };<br><br>            marker.setPosition(pos);<br>            map.setCenter(pos);<br>        }<br>    &lt;\/script><br>&lt;\/head><br>&lt;body><br>    &lt;div id=\u00a0\u00bbmap\u00a0\u00bb style=\u00a0\u00bbheight: 500px; width: 100%;\u00a0\u00bb>&lt;\/div><br>&lt;\/body><br>&lt;\/html><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&lt;!DOCTYPE html>&lt;html>&lt;head> &lt;title>Google Maps with GPS Integration&lt;\/title> &lt;script src=\u00a0\u00bbhttps:\/\/maps.googleapis.com\/maps\/api\/js?key=AIzaSyDX_HeHiVcwg7a5HfRLRqGLzk9gla4b_Tc&amp;callback=initMap\u00a0\u00bb async defer>&lt;\/script> &lt;script> let map; let marker; function initMap() { map = new google.maps.Map(document.getElementById(&lsquo;map&rsquo;), { center: { lat: -34.397, lng: 150.644 }, zoom: 8 }); marker = new google.maps.Marker({ map: map, position: { lat: -34.397, lng: 150.644 } }); if (navigator.geolocation) { navigator.geolocation.watchPosition(updatePosition); } else { [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_mc_calendar":[],"footnotes":""},"class_list":["post-6378","page","type-page","status-publish","czr-hentry"],"_links":{"self":[{"href":"https:\/\/cercle-nautique-du-touquet.org\/index.php\/wp-json\/wp\/v2\/pages\/6378","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cercle-nautique-du-touquet.org\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/cercle-nautique-du-touquet.org\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/cercle-nautique-du-touquet.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cercle-nautique-du-touquet.org\/index.php\/wp-json\/wp\/v2\/comments?post=6378"}],"version-history":[{"count":0,"href":"https:\/\/cercle-nautique-du-touquet.org\/index.php\/wp-json\/wp\/v2\/pages\/6378\/revisions"}],"wp:attachment":[{"href":"https:\/\/cercle-nautique-du-touquet.org\/index.php\/wp-json\/wp\/v2\/media?parent=6378"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}