{"id":1407,"date":"2026-01-18T22:09:24","date_gmt":"2026-01-18T20:09:24","guid":{"rendered":"https:\/\/thermoluft.eu\/?page_id=1407"},"modified":"2026-01-26T19:03:16","modified_gmt":"2026-01-26T17:03:16","slug":"partnerid","status":"publish","type":"page","link":"https:\/\/thermoluft.eu\/en\/partnerid\/","title":{"rendered":"Partnerid"},"content":{"rendered":"<style>\n.asukohad-map{\n    margin: auto;\n      width: 100%;\n      padding: 0;\n      max-width: 1200px;\n      height: 530px;\n      border-radius: 4px;\n  }\n  body{\n    background-color: rgba(255, 255, 255, 0);\n  }\n  \n    .data-container #map {\n      min-height: 500px;\n      width: 600px;\n    }\n  \n<\/style>\n<div class=\"container\">\n  <div class=\"row\">\n    <div class=\"data-container container asukohad-map\">\n      <div class=\"data-wrapper\">\n        <div id=\"map\" data-marker-size=\"40\" data-marker-image-url=\"https:\/\/thermoluft.eu\/wp-content\/uploads\/2026\/01\/m1.svg\"><\/div>\n      <\/div>\n    <\/div>\n  <\/div>\n<\/div>\n\n\n\n<script>\nconst locations = [\n  {\n    position: { lat: 59.3447, lng: 26.3203 },\n    title: 'Ekstaplat O\u00dc',\n    email: 'ekstaplat@gmail.com'\n  },\n  {\n    position: { lat: 59.3574, lng: 27.3826 },\n    title: 'Ekstaplat O\u00dc',\n    email: 'ekstaplat@gmail.com'\n  },\n  {\n    position: { lat: 58.7432, lng: 26.3698 },\n    title: 'Ekstaplat O\u00dc',\n    email: 'ekstaplat@gmail.com'\n  },\n  {\n    position: { lat: 58.8850, lng: 25.4821 },\n    title: 'Ekstaplat O\u00dc',\n    email: 'ekstaplat@gmail.com'\n  },\n  {\n    position: { lat: 58.3859, lng: 24.5034 },\n    title: 'Luft-Tec O\u00dc',\n    email: 'andres@luft-tec.ee',\n    website: 'https:\/\/www.luft-tec.ee\/'\n  },\n  {\n    position: { lat: 58.3473, lng: 22.5208 },\n    title: 'Luft-Tec O\u00dc',\n    email: 'andres@luft-tec.ee',\n    website: 'https:\/\/www.luft-tec.ee\/'\n  },\n  { \n    position: { lat: 58.8325, lng: 22.6156 },\n    title: 'Luft-Tec O\u00dc',\n    email: 'andres@luft-tec.ee',\n    website: 'https:\/\/www.luft-tec.ee\/'\n  },\n  {\n    position: { lat: 59.4209, lng: 24.6909 },\n    title: 'Klimatek O\u00dc',\n    email: 'info@klimatek.ee',\n    website: 'www.klimatek.ee',\n    loc: 'Harjumaa'\n  },\n  {\n    position: { lat: 58.3766, lng: 26.6905 },\n    title: 'Lastiko O\u00dc',\n    email: 'info@lastiko.ee',\n    loc: 'L\u00f5una-Eesti'\n  }\n];\n\nlet map;\nlet infoWindow;\n\nwindow.initMap = function initMap() {\n  const mapElement = document.getElementById('map');\n  const markerImageUrl = mapElement.dataset.markerImageUrl;\n  const markerSize = parseInt(mapElement.dataset.markerSize, 10);\n\n  if (!markerImageUrl) {\n    throw new Error('Missing data-marker-image-url on #map.');\n  }\n\n  if (!Number.isFinite(markerSize)) {\n    throw new Error('Missing or invalid data-marker-size on #map.');\n  }\n\n  map = new google.maps.Map(mapElement, {\n    zoom: 7,\n    center: { lat: 58.5953, lng: 25.0136 },\n    mapId: 'd22db5ef3ac05cb8377e86b1',\n    mapTypeControl: false,\n    streetViewControl: false,\n    fullscreenControl: false\n  });\n\n  infoWindow = new google.maps.InfoWindow();\n\n  locations.forEach((location) => {\n    const iconImg = document.createElement('img');\n    iconImg.src = markerImageUrl;\n    iconImg.style.width = `${markerSize}px`;\n    iconImg.style.height = `${markerSize}px`;\n\n    const marker = new google.maps.marker.AdvancedMarkerElement({\n      map: map,\n      position: location.position,\n      title: location.title,\n      content: iconImg\n    });\n\n    marker.addListener('click', () => {\n      infoWindow.setContent(`<div>\n        <h4>${location.title}<\/h4>\n        <p>${location.email}<\/p>\n        <p>${location.website ?? \"\"}<\/p>\n        <p>${location.loc ?? \"\"}<\/p>\n        <\/div>`);\n      infoWindow.open(map, marker);\n    });\n  });\n};\n<\/script>\n<script async defer src=\"https:\/\/maps.googleapis.com\/maps\/api\/js?key=AIzaSyD0PLAy2jXePz3NVLEpBH50FjmObA667AM&#038;callback=initMap&#038;libraries=marker&#038;v=weekly\"><\/script>\n\n\n\n<p><\/p>","protected":false},"excerpt":{"rendered":"","protected":false},"author":3,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-1407","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/thermoluft.eu\/en\/wp-json\/wp\/v2\/pages\/1407","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thermoluft.eu\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/thermoluft.eu\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/thermoluft.eu\/en\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/thermoluft.eu\/en\/wp-json\/wp\/v2\/comments?post=1407"}],"version-history":[{"count":5,"href":"https:\/\/thermoluft.eu\/en\/wp-json\/wp\/v2\/pages\/1407\/revisions"}],"predecessor-version":[{"id":1680,"href":"https:\/\/thermoluft.eu\/en\/wp-json\/wp\/v2\/pages\/1407\/revisions\/1680"}],"wp:attachment":[{"href":"https:\/\/thermoluft.eu\/en\/wp-json\/wp\/v2\/media?parent=1407"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}