{"id":29648,"date":"2024-06-06T15:07:52","date_gmt":"2024-06-06T13:07:52","guid":{"rendered":"https:\/\/residence-esmeralda.neho.ch\/situation\/"},"modified":"2024-07-16T13:36:43","modified_gmt":"2024-07-16T11:36:43","slug":"situation","status":"publish","type":"page","link":"https:\/\/residence-esmeralda.neho.ch\/en\/situation\/","title":{"rendered":"Situation"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"29648\" class=\"elementor elementor-29648 elementor-28876\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-99f2af7 e-con-full e-flex e-con e-parent\" data-id=\"99f2af7\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;gradient&quot;}\">\n\t\t<div class=\"elementor-element elementor-element-645e582 e-flex e-con-boxed elementor-invisible e-con e-child\" data-id=\"645e582\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;animation&quot;:&quot;fadeIn&quot;}\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-35e2ea9 elementor-widget elementor-widget-text-editor\" data-id=\"35e2ea9\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h2>Between lakes and mountains<\/h2>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-90099e5 elementor-widget-divider--view-line elementor-widget elementor-widget-divider\" data-id=\"90099e5\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"divider.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-divider\">\n\t\t\t<span class=\"elementor-divider-separator\">\n\t\t\t\t\t\t<\/span>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-0b5fc87 e-flex e-con-boxed e-con e-child\" data-id=\"0b5fc87\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t<div class=\"elementor-element elementor-element-528d981 e-con-full e-flex elementor-invisible e-con e-child\" data-id=\"528d981\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;animation&quot;:&quot;fadeInLeft&quot;}\">\n\t\t\t\t<div class=\"elementor-element elementor-element-4d7fcb9 elementor-widget elementor-widget-text-editor\" data-id=\"4d7fcb9\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h4><strong>A prime location<\/strong><\/h4>\n<p>Located in the canton of Vaud, but with its center of gravity turned towards the canton of Geneva, to which it is adjacent, the charming commune of Chavannes-de-Bogis is strategically positioned between the shores of Lake Geneva and the Jura mountains, less than 20 minutes from Geneva. The magnificent Terre Sainte region, of which it is a part, is one of the most popular in French-speaking Switzerland, thanks to its many assets and privileged location.<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-764e7e5 elementor-widget elementor-widget-text-editor\" data-id=\"764e7e5\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h4><strong>Activities<\/strong><\/h4>\n<p>On the leisure front, the Man\u00e8ge Sallivaz will delight equestrian sports enthusiasts, as will the Divonne-les-Bains racecourse. The proximity of Lac de Divonne and Lac L\u00e9man also offers a wide range of activities: from beaches and swimming to diving and sailing, the choice is vast. Gastronomy and culture are also on the agenda, with several restaurants, a theater and a casino in the immediate vicinity.\u00e5<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-26a9d4d e-con-full e-flex elementor-invisible e-con e-child\" data-id=\"26a9d4d\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;animation&quot;:&quot;fadeInRight&quot;}\">\n\t\t<div class=\"elementor-element elementor-element-ef2f3d5 e-con-full e-flex e-con e-child\" data-id=\"ef2f3d5\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t<div class=\"elementor-element elementor-element-ba2c812 e-con-full e-flex e-con e-child\" data-id=\"ba2c812\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-beab453 elementor-position-inline-start elementor-view-default elementor-mobile-position-block-start elementor-widget elementor-widget-icon-box\" data-id=\"beab453\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"icon-box.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-icon-box-wrapper\">\n\n\t\t\t\t\t\t<div class=\"elementor-icon-box-icon\">\n\t\t\t\t<span  class=\"elementor-icon\">\n\t\t\t\t<svg aria-hidden=\"true\" class=\"e-font-icon-svg e-fas-walking\" viewBox=\"0 0 320 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M208 96c26.5 0 48-21.5 48-48S234.5 0 208 0s-48 21.5-48 48 21.5 48 48 48zm94.5 149.1l-23.3-11.8-9.7-29.4c-14.7-44.6-55.7-75.8-102.2-75.9-36-.1-55.9 10.1-93.3 25.2-21.6 8.7-39.3 25.2-49.7 46.2L17.6 213c-7.8 15.8-1.5 35 14.2 42.9 15.6 7.9 34.6 1.5 42.5-14.3L81 228c3.5-7 9.3-12.5 16.5-15.4l26.8-10.8-15.2 60.7c-5.2 20.8.4 42.9 14.9 58.8l59.9 65.4c7.2 7.9 12.3 17.4 14.9 27.7l18.3 73.3c4.3 17.1 21.7 27.6 38.8 23.3 17.1-4.3 27.6-21.7 23.3-38.8l-22.2-89c-2.6-10.3-7.7-19.9-14.9-27.7l-45.5-49.7 17.2-68.7 5.5 16.5c5.3 16.1 16.7 29.4 31.7 37l23.3 11.8c15.6 7.9 34.6 1.5 42.5-14.3 7.7-15.7 1.4-35.1-14.3-43zM73.6 385.8c-3.2 8.1-8 15.4-14.2 21.5l-50 50.1c-12.5 12.5-12.5 32.8 0 45.3s32.7 12.5 45.2 0l59.4-59.4c6.1-6.1 10.9-13.4 14.2-21.5l13.5-33.8c-55.3-60.3-38.7-41.8-47.4-53.7l-20.7 51.5z\"><\/path><\/svg>\t\t\t\t<\/span>\n\t\t\t<\/div>\n\t\t\t\n\t\t\t\t\t\t<div class=\"elementor-icon-box-content\">\n\n\t\t\t\t\t\t\t\t\t<h3 class=\"elementor-icon-box-title\">\n\t\t\t\t\t\t<span  >\n\t\t\t\t\t\t\tOn foot\t\t\t\t\t\t<\/span>\n\t\t\t\t\t<\/h3>\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t<p class=\"elementor-icon-box-description\">\n\t\t\t\t\t\tPrimary School: 8min<br>\nBus stop: 1min\t\t\t\t\t<\/p>\n\t\t\t\t\n\t\t\t<\/div>\n\t\t\t\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-008e100 elementor-position-inline-start elementor-view-default elementor-mobile-position-block-start elementor-widget elementor-widget-icon-box\" data-id=\"008e100\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"icon-box.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-icon-box-wrapper\">\n\n\t\t\t\t\t\t<div class=\"elementor-icon-box-icon\">\n\t\t\t\t<span  class=\"elementor-icon\">\n\t\t\t\t<svg aria-hidden=\"true\" class=\"e-font-icon-svg e-fas-bus\" viewBox=\"0 0 512 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M488 128h-8V80c0-44.8-99.2-80-224-80S32 35.2 32 80v48h-8c-13.25 0-24 10.74-24 24v80c0 13.25 10.75 24 24 24h8v160c0 17.67 14.33 32 32 32v32c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-32h192v32c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-32h6.4c16 0 25.6-12.8 25.6-25.6V256h8c13.25 0 24-10.75 24-24v-80c0-13.26-10.75-24-24-24zM112 400c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm16-112c-17.67 0-32-14.33-32-32V128c0-17.67 14.33-32 32-32h256c17.67 0 32 14.33 32 32v128c0 17.67-14.33 32-32 32H128zm272 112c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z\"><\/path><\/svg>\t\t\t\t<\/span>\n\t\t\t<\/div>\n\t\t\t\n\t\t\t\t\t\t<div class=\"elementor-icon-box-content\">\n\n\t\t\t\t\t\t\t\t\t<h3 class=\"elementor-icon-box-title\">\n\t\t\t\t\t\t<span  >\n\t\t\t\t\t\t\tBus \/ train\t\t\t\t\t\t<\/span>\n\t\t\t\t\t<\/h3>\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t<p class=\"elementor-icon-box-description\">\n\t\t\t\t\t\tCollege: 12min<br>\nL\u00e9man: 20min<br>\nCoppet train station: 17min<br>\nNyon: 25min<br>\nGeneva: 30min\t\t\t\t\t<\/p>\n\t\t\t\t\n\t\t\t<\/div>\n\t\t\t\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-0a5ca3e e-con-full e-flex e-con e-child\" data-id=\"0a5ca3e\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-4452cc3 elementor-position-inline-start elementor-view-default elementor-mobile-position-block-start elementor-widget elementor-widget-icon-box\" data-id=\"4452cc3\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"icon-box.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-icon-box-wrapper\">\n\n\t\t\t\t\t\t<div class=\"elementor-icon-box-icon\">\n\t\t\t\t<span  class=\"elementor-icon\">\n\t\t\t\t<svg aria-hidden=\"true\" class=\"e-font-icon-svg e-fas-car\" viewBox=\"0 0 512 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M499.99 176h-59.87l-16.64-41.6C406.38 91.63 365.57 64 319.5 64h-127c-46.06 0-86.88 27.63-103.99 70.4L71.87 176H12.01C4.2 176-1.53 183.34.37 190.91l6 24C7.7 220.25 12.5 224 18.01 224h20.07C24.65 235.73 16 252.78 16 272v48c0 16.12 6.16 30.67 16 41.93V416c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-32h256v32c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-54.07c9.84-11.25 16-25.8 16-41.93v-48c0-19.22-8.65-36.27-22.07-48H494c5.51 0 10.31-3.75 11.64-9.09l6-24c1.89-7.57-3.84-14.91-11.65-14.91zm-352.06-17.83c7.29-18.22 24.94-30.17 44.57-30.17h127c19.63 0 37.28 11.95 44.57 30.17L384 208H128l19.93-49.83zM96 319.8c-19.2 0-32-12.76-32-31.9S76.8 256 96 256s48 28.71 48 47.85-28.8 15.95-48 15.95zm320 0c-19.2 0-48 3.19-48-15.95S396.8 256 416 256s32 12.76 32 31.9-12.8 31.9-32 31.9z\"><\/path><\/svg>\t\t\t\t<\/span>\n\t\t\t<\/div>\n\t\t\t\n\t\t\t\t\t\t<div class=\"elementor-icon-box-content\">\n\n\t\t\t\t\t\t\t\t\t<h3 class=\"elementor-icon-box-title\">\n\t\t\t\t\t\t<span  >\n\t\t\t\t\t\t\tCar\t\t\t\t\t\t<\/span>\n\t\t\t\t\t<\/h3>\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t<p class=\"elementor-icon-box-description\">\n\t\t\t\t\t\tCollege: 7min<br>\nShopping center: 3min<br>\nL\u00e9man: 7min<br>\nNyon: 12min<br>\nGeneva: 20min<br>\nLausanne: 30min\t\t\t\t\t<\/p>\n\t\t\t\t\n\t\t\t<\/div>\n\t\t\t\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-941b7fd elementor-widget__width-inherit elementor-widget elementor-widget-template\" data-id=\"941b7fd\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"template.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-template\">\n\t\t\t\t\t<div data-elementor-type=\"section\" data-elementor-id=\"29142\" class=\"elementor elementor-29142\" data-elementor-post-type=\"elementor_library\">\n\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-298bf9e elementor-section-full_width elementor-section-height-default elementor-section-height-default\" data-id=\"298bf9e\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-d8fa6bd\" data-id=\"d8fa6bd\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-7cd46d1 elementor-widget elementor-widget-html\" data-id=\"7cd46d1\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<!--  \nUncomment for dev\n<pre id=\"info\" style=\"text-align:right;\"><\/pre>\n -->\n\n<div id='map' style='width: 100%; height: 70vh; background-color: light-grey; display:inline-block;float:left;'><\/div>\n\n\n<style>\n.mapboxgl-popup-close-button{\ndisplay:none;\n}\n<\/style>\n\n<script>\n    \t(function($) { \n    $(document).ready(function(){\n        \n        \n\n\n\tfunction toggleLegendVisibility(event, iconName){\n\t\n\t\tvar clickedElement = event.target || event.srcElement;\n\t\n\t\tvar markers = document.getElementsByClassName(\"mapMarker_\"+iconName);\n\t\t\n\t\tfor (var i = 0; i < markers.length; i++) {\n\t\t   if (markers.item(i).style.opacity === \"0\") {\n\t\t\t\tmarkers.item(i).style.opacity = \"1\";\n\t\t\t\tclickedElement.style.filter = 'grayscale(0%)';\n\t\t\t\tclickedElement.style.filter = 'opacity(100%)';\n\n\t\t\t  } else {\n\t\t\t\tmarkers.item(i).style.opacity = \"0\";\n\t\t\t\tclickedElement.style.filter = 'grayscale(100%)';\n\t\t\t\tclickedElement.style.filter = 'opacity(60%)';\n\n\t\t\t  }\n\t\t}\n\t\t\n\t}\n\n\n\n\t\t\/\/ Site web token\n\tmapboxgl.accessToken = 'pk.eyJ1IjoiaW1tZWRpYSIsImEiOiJjbHhjeXlhM2IwMGs1MnFzYWNiMWN1dzA5In0.tEcqjMaTLGdEl2rM89NfDA';\n\n\tvar map = new mapboxgl.Map({\n\t\t\/\/ Constructor\n\t\tcontainer: 'map',\t\t\t\t\t\t\t\t\t\t\t\t\t\/\/ ID of the div container\n\t\tcenter: [6.162190222293816,46.34262466448942], \t\t\t\t\t      \/\/ Starting position [lng, lat]\n\t\t\n\t\t\/\/ Styling\n\t\tstyle: 'mapbox:\/\/styles\/immedia\/clijwdhyz00dj01r1h7qn88lp',\t\t\t\/\/ Stylesheet\n\t\tlogoPosition: 'bottom-left',\t\t\t\t\t\t\t\t\t\t\/\/ Position of the Mapbox logo (top-left , top-right , bottom-left , bottom-right)\n\t\t\n\t\t\/\/ Interactivity and tools\n\t\tinteractive: true,\t\t\t\t\t\t\t\t\t\t\t\t\t\/\/ true or false: Interactivity (mouse, touch, scroll, keyboard)\n\t\tdoubleClickZoom: true,\t\t\t\t\t\t\t\t\t\t\t\t\/\/ true or false\n\t\tdragPan: true,\t\t\t\t\t\t\t\t\t\t\t\t\t\t\/\/ true or false\n\t\tscrollZoom: false,\t\t\t\t\t\t\t\t\t\t\t\t\t\/\/ true or false\n\t\tdragRotate: false,\t\t\t\t\t\t\t\t\t\t\t\t\t\/\/ true or false\n\t\tkeyboard: true,\t\t\t\t\t\t\t\t\t\t\t\t\t\t\/\/ true or false\n\t\ttouchZoomRotate: false,\t\t\t\t\t\t\t\t\t\t\t\t\/\/ true or false\n\t\t\n\t\t\n\t\t\/\/ Zoom\n\t\tzoom: 13,\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\/\/ 0 - 24\n\t\tminZoom: 10,\t\t\t\t\t\t\t\t\t\t\t\t\t\t\/\/ 0 - 24\n\t\tmaxZoom: 22,\t\t\t\t\t\t\t\t\t\t\t\t\t\t\/\/ 0 - 24\n\t\t\n\t});\n\n\t\/\/ Map Zoom controls\n\tmap.addControl(new mapboxgl.NavigationControl());\n\tmap.addControl(new mapboxgl.ScaleControl({position: 'bottom-right'}));\n\t\/*\n\tmap.addControl(new mapboxgl.FullscreenControl({container: document.querySelector('body')}));\n\tmap.addControl(new mapboxgl.GeolocateControl({\n\t\tpositionOptions: {\n\t\tenableHighAccuracy: true\n\t\t},\n\t\ttrackUserLocation: true,\n\t\tshowUserHeading: true\n\t}));\n\t\n\tconst baseAddress = new mapboxgl.Marker({\n\t\tanchor: 'bottom',\t\t\t\t\t\t\t\t\t\t\t\t\/\/ 'center' , 'top' , 'bottom' , 'left' , 'right' , 'top-left' , 'top-right' , 'bottom-left' , 'bottom-right'\n\t\tcolor: \"#4d5b5a\",\n\t\t\/\/ element\n\t\t\/\/ offset\n\t\t\/\/ rotation\n\t\t\/\/ rotationAlignment\n\t\tscale: 1.25,\t\t\t\t\t\t\t\t\t\t\t\t\t\t\/\/ The default scale 1 = 41x27px\n\t}).setLngLat([6.646622546881872,46.53746954673122]).addTo(map);\n\t*\/\n\t\n\tconst markersSet = {\n\t\t'iconSet': 'esmeralda',\t\t\t\t\t\t\t\t\t\t\t\t\t\/\/ IconSet, the name of the folder on the server\n\t\t'markers': [\n \t\t\t{\n\t\t\t\t'type': 'Marker',\n\t\t\t\t'iconSize': [60, 60],\t\t\t\t\t\t\t\t\t\t\/\/ Size should be proportional to native SVG\n\t\t\t\t'anchor': 'center', \t\t\t\t\t\t\t\t\t\t\/\/ 'center' , 'top' , 'bottom' , 'left' , 'right' , 'top-left' , 'top-right' , 'bottom-left' , 'bottom-right'\n\t\t\t\t'iconName': 'diamant',\t\t\t\t\t\t\t\t\t\t\t\/\/ icon name (file name.svg must exists on server)\n\t\t\t\t'color': '442C20',\n\t\t\t\t'coordinates': [6.162190222293816,46.34262466448942],\n\t\t\t\t'rotation': 0,\n                'iconLegend': 'R\u00e9sidence Esmeralda',\n\t\t\t}\n\t\t]\n\t}\n\t\n\t\n\n\t\n\t\/\/ array of unique iconName\n\tconst markersSetUnique = [];\n\tconst mapper = new Map();\n\t\/\/ const legendcolumn = document.getElementById('legend');\n\t\n\t\/\/const legend = legendcolumn.querySelector('.elementor-widget-wrap');\n\n\t\/\/ Add markers to the map.\n\tfor (const [i, marker] of markersSet.markers.entries()) {\n\t\tconsole.log(i);\n\t\t\/\/ Create a DOM element for each marker.\n\t\tconst markerDiv = document.createElement('img');\n\t\tconst width = marker.iconSize[0];\n\t\tconst height = marker.iconSize[1];\n\t\tif(marker.iconName == 'CDH-logo'){\n            markerDiv.src = 'https:\/\/immedia.ch\/iconsrep\/'+markersSet.iconSet+'\/'+marker.iconName+'.png'; \/\/ icon name (file name.svg must exists on server)\n        }else{\n            markerDiv.src = 'https:\/\/immedia.ch\/iconsrep\/'+markersSet.iconSet+'\/'+marker.iconName+'.php?color='+marker.color; \/\/ icon name (file name.svg must exists on server)\n        }\n\t\tmarkerDiv.width = width;\n\t\tmarkerDiv.height = height;\n\t\tmarkerDiv.classList.add(\"mapMarker\");\n\t\tmarkerDiv.classList.add(\"mapMarker_\"+marker.iconName);\n\t\tmarkerDiv.setAttribute(\"iconName\", marker.iconName);\n \n\t\t\/\/ Add markers to the map.\n\t\twindow['markerE'+i] = new mapboxgl.Marker({\n\t\t\tanchor: marker.anchor,\n\t\t\telement: markerDiv,\n\t\t\trotation: marker.rotation\n\t\t}).setLngLat(marker.coordinates).setPopup(new mapboxgl.Popup({ offset: 25 }).setText(marker.iconLegend)).addTo(map);\n\t\tconsole.log(window['markerE'+i]);\n        markerEDiv = window['markerE'+i].getElement();\n\t\tconsole.log(markerEDiv);\n        markerEDiv.addEventListener('mouseenter', () => window['markerE'+i].togglePopup());\n        markerEDiv.addEventListener('mouseleave', () => window['markerE'+i].togglePopup());\n        \n\t\t\/\/ Add marker to unique array\n\t\tif(!mapper.has(marker.iconName)){\n\t\t\tmapper.set(marker.iconName, true);\n\t\t\tmarkersSetUnique.push({\n\t\t\t\ticonName: marker.iconName,\n\t\t\t\tcolor: marker.color\n\t\t\t});\n\t\t}\n\t\t\n\t}\n\t\/*\n\t\/\/ Add icons to legends\n\tfor (const uniqueMarker of markersSetUnique) {\n\t\tconst uniqueMarkerDiv = document.createElement('img');\n\t\tuniqueMarkerDiv.src = 'https:\/\/immedia.ch\/iconsrep\/'+markersSet.iconSet+'\/'+uniqueMarker.iconName+'.svg';\n\t\tuniqueMarkerDiv.classList.add(\"mapLegend\");\n\t\tuniqueMarkerDiv.setAttribute(\"id\", \"map_legend_\"+uniqueMarker.iconName);\n\t\tuniqueMarkerDiv.setAttribute(\"iconName\", uniqueMarker.iconName);\n\t\tuniqueMarkerDiv.setAttribute(\"width\", '50px');\n\t\tuniqueMarkerDiv.addEventListener(\"click\", function(){ toggleLegendVisibility(event, uniqueMarker.iconName) });\n\n\n\t\tlegend.appendChild(uniqueMarkerDiv);\n\t\tlegend.append(\" \");\n\t}\n\t*\/\n\t\n\t\n\/*\nUncomment for dev\n----------\n\n\tmap.on('click', (e) => {\ndocument.getElementById('info').innerHTML =\n\/\/ `e.point` is the x, y coordinates of the `mousemove` event\n\/\/ relative to the top-left corner of the map.\nJSON.stringify(e.point) +\n'<br \/>' +\n\/\/ `e.lngLat` is the longitude, latitude geographical position of the event.\nJSON.stringify(e.lngLat.wrap());\n});**\/\n\tmap.resize();\n\n    });\n\t\t})(jQuery)\n\t\n<\/script>\n\n\n\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Between lakes and mountains A prime location Located in the canton of Vaud, but with its center of gravity turned towards the canton of Geneva, to which it is adjacent, the charming commune of Chavannes-de-Bogis is strategically positioned between the shores of Lake Geneva and the Jura mountains, less than 20 minutes from Geneva. The [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-29648","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Situation - R\u00e9sidence Esmeralda<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/residence-esmeralda.neho.ch\/en\/situation\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Situation - R\u00e9sidence Esmeralda\" \/>\n<meta property=\"og:description\" content=\"Between lakes and mountains A prime location Located in the canton of Vaud, but with its center of gravity turned towards the canton of Geneva, to which it is adjacent, the charming commune of Chavannes-de-Bogis is strategically positioned between the shores of Lake Geneva and the Jura mountains, less than 20 minutes from Geneva. The [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/residence-esmeralda.neho.ch\/en\/situation\/\" \/>\n<meta property=\"og:site_name\" content=\"R\u00e9sidence Esmeralda\" \/>\n<meta property=\"article:modified_time\" content=\"2024-07-16T11:36:43+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/residence-esmeralda.neho.ch\\\/en\\\/situation\\\/\",\"url\":\"https:\\\/\\\/residence-esmeralda.neho.ch\\\/en\\\/situation\\\/\",\"name\":\"Situation - R\u00e9sidence Esmeralda\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/residence-esmeralda.neho.ch\\\/#website\"},\"datePublished\":\"2024-06-06T13:07:52+00:00\",\"dateModified\":\"2024-07-16T11:36:43+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/residence-esmeralda.neho.ch\\\/en\\\/situation\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/residence-esmeralda.neho.ch\\\/en\\\/situation\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/residence-esmeralda.neho.ch\\\/en\\\/situation\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\\\/\\\/residence-esmeralda.neho.ch\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Situation\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/residence-esmeralda.neho.ch\\\/#website\",\"url\":\"https:\\\/\\\/residence-esmeralda.neho.ch\\\/\",\"name\":\"Promotion immobili\u00e8re Chavannes-de-Bogis | R\u00e9sidence Esmeralda\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/residence-esmeralda.neho.ch\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/residence-esmeralda.neho.ch\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/residence-esmeralda.neho.ch\\\/#organization\",\"name\":\"R\u00e9sidence Esmeralda\",\"url\":\"https:\\\/\\\/residence-esmeralda.neho.ch\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/residence-esmeralda.neho.ch\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/residence-esmeralda.neho.ch\\\/wp-content\\\/uploads\\\/2024\\\/05\\\/Esmeralda-Residence_logo_couleurs.svg\",\"contentUrl\":\"https:\\\/\\\/residence-esmeralda.neho.ch\\\/wp-content\\\/uploads\\\/2024\\\/05\\\/Esmeralda-Residence_logo_couleurs.svg\",\"caption\":\"R\u00e9sidence Esmeralda\"},\"image\":{\"@id\":\"https:\\\/\\\/residence-esmeralda.neho.ch\\\/#\\\/schema\\\/logo\\\/image\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Situation - R\u00e9sidence Esmeralda","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/residence-esmeralda.neho.ch\/en\/situation\/","og_locale":"en_US","og_type":"article","og_title":"Situation - R\u00e9sidence Esmeralda","og_description":"Between lakes and mountains A prime location Located in the canton of Vaud, but with its center of gravity turned towards the canton of Geneva, to which it is adjacent, the charming commune of Chavannes-de-Bogis is strategically positioned between the shores of Lake Geneva and the Jura mountains, less than 20 minutes from Geneva. The [&hellip;]","og_url":"https:\/\/residence-esmeralda.neho.ch\/en\/situation\/","og_site_name":"R\u00e9sidence Esmeralda","article_modified_time":"2024-07-16T11:36:43+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/residence-esmeralda.neho.ch\/en\/situation\/","url":"https:\/\/residence-esmeralda.neho.ch\/en\/situation\/","name":"Situation - R\u00e9sidence Esmeralda","isPartOf":{"@id":"https:\/\/residence-esmeralda.neho.ch\/#website"},"datePublished":"2024-06-06T13:07:52+00:00","dateModified":"2024-07-16T11:36:43+00:00","breadcrumb":{"@id":"https:\/\/residence-esmeralda.neho.ch\/en\/situation\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/residence-esmeralda.neho.ch\/en\/situation\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/residence-esmeralda.neho.ch\/en\/situation\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/residence-esmeralda.neho.ch\/"},{"@type":"ListItem","position":2,"name":"Situation"}]},{"@type":"WebSite","@id":"https:\/\/residence-esmeralda.neho.ch\/#website","url":"https:\/\/residence-esmeralda.neho.ch\/","name":"Promotion immobili\u00e8re Chavannes-de-Bogis | R\u00e9sidence Esmeralda","description":"","publisher":{"@id":"https:\/\/residence-esmeralda.neho.ch\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/residence-esmeralda.neho.ch\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/residence-esmeralda.neho.ch\/#organization","name":"R\u00e9sidence Esmeralda","url":"https:\/\/residence-esmeralda.neho.ch\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/residence-esmeralda.neho.ch\/#\/schema\/logo\/image\/","url":"https:\/\/residence-esmeralda.neho.ch\/wp-content\/uploads\/2024\/05\/Esmeralda-Residence_logo_couleurs.svg","contentUrl":"https:\/\/residence-esmeralda.neho.ch\/wp-content\/uploads\/2024\/05\/Esmeralda-Residence_logo_couleurs.svg","caption":"R\u00e9sidence Esmeralda"},"image":{"@id":"https:\/\/residence-esmeralda.neho.ch\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/residence-esmeralda.neho.ch\/en\/wp-json\/wp\/v2\/pages\/29648","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/residence-esmeralda.neho.ch\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/residence-esmeralda.neho.ch\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/residence-esmeralda.neho.ch\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/residence-esmeralda.neho.ch\/en\/wp-json\/wp\/v2\/comments?post=29648"}],"version-history":[{"count":16,"href":"https:\/\/residence-esmeralda.neho.ch\/en\/wp-json\/wp\/v2\/pages\/29648\/revisions"}],"predecessor-version":[{"id":29859,"href":"https:\/\/residence-esmeralda.neho.ch\/en\/wp-json\/wp\/v2\/pages\/29648\/revisions\/29859"}],"wp:attachment":[{"href":"https:\/\/residence-esmeralda.neho.ch\/en\/wp-json\/wp\/v2\/media?parent=29648"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}