{"id":31691,"date":"2022-07-17T22:01:05","date_gmt":"2022-07-17T20:01:05","guid":{"rendered":"https:\/\/ligna.cloth.be\/?page_id=31691"},"modified":"2024-12-04T13:29:02","modified_gmt":"2024-12-04T12:29:02","slug":"map-view","status":"publish","type":"page","link":"https:\/\/ligna-systems.com\/en\/map-view\/","title":{"rendered":"Map view"},"content":{"rendered":"<div id=\"\" class=\"section section-row  margin-large\">\n\t<div class=\"wrapper\">\n\t\t<div class=\"grid-row spaced-medium default grid-align-top\">\n\t\t\n<div class=\"text-dark col-12\">\n\t\t    \n\n  <script type=\"text\/javascript\">\n    \/\/ Initialize and add the map\n    function initMap() {\n\n      \/\/ The map, centered at Uluru\n      const map = new google.maps.Map(document.getElementById(\"map-container\"), {\n        zoom: 6,\n        center: new google.maps.LatLng(51.1642292, 10.4541194),\n      });\n\n      var marker = new google.maps.Marker({\n        map: map,\n        animation: google.maps.Animation.DROP,\n      });\n\n      var image = new google.maps.MarkerImage('https:\/\/ligna-systems.com\/wp-content\/themes\/ligna\/assets\/img\/ligna-pin.png', null, null, null, new google.maps.Size(32, 40));\n\n      \n        jQuery.getJSON('https:\/\/portal.ligna-systems.com\/api\/projekt\/GetBauorte', function(data) {\n\n\n          for (i = 0; i < data.length; i++) {\n\n            marker = new google.maps.Marker({\n              position: new google.maps.LatLng(data[i][\"Latitude\"], data[i][\"Longitude\"]),\n              map: map,\n              icon: image\n            });\n\n            var infowindow = new google.maps.InfoWindow()\n            google.maps.event.addListener(marker, 'click', (function(marker, i) {\n              return function() {\n                infowindow.setContent(\"<div class=\\\"pin-inner\\\"><h6 class=\\\"h7\\\">\" + data[i][\"Ort\"] + \"<\/h6><\/div>\");\n                infowindow.open(map, marker);\n              }\n            })(marker, i));\n\n          }\n\n        });\n\n      \n\n    }\n\n    window.initMap = initMap;\n  <\/script>\n\n  <div id=\"map-container\"><\/div>\n\n  <script src=\"https:\/\/maps.googleapis.com\/maps\/api\/js?key=AIzaSyAEoEGZup866kaOq3H4iHLRZONj7brAYcs&callback=initMap&v=weekly\" defer><\/script>\n\n\t\t\n\t\n<\/div>\n\t\t<\/div>\n\t<\/div>\n\n\t\n\t\n\t<!--<div class=\"slanting-side slanting-del\"><\/div>-->\n<\/div>","protected":false},"excerpt":{"rendered":"","protected":false},"author":15,"featured_media":0,"parent":0,"menu_order":153,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-31691","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/ligna-systems.com\/en\/wp-json\/wp\/v2\/pages\/31691","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ligna-systems.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/ligna-systems.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/ligna-systems.com\/en\/wp-json\/wp\/v2\/users\/15"}],"replies":[{"embeddable":true,"href":"https:\/\/ligna-systems.com\/en\/wp-json\/wp\/v2\/comments?post=31691"}],"version-history":[{"count":3,"href":"https:\/\/ligna-systems.com\/en\/wp-json\/wp\/v2\/pages\/31691\/revisions"}],"predecessor-version":[{"id":31695,"href":"https:\/\/ligna-systems.com\/en\/wp-json\/wp\/v2\/pages\/31691\/revisions\/31695"}],"wp:attachment":[{"href":"https:\/\/ligna-systems.com\/en\/wp-json\/wp\/v2\/media?parent=31691"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}