{"id":354,"date":"2026-04-16T11:33:48","date_gmt":"2026-04-16T09:33:48","guid":{"rendered":"https:\/\/michal.codigmatic.tech\/?page_id=354"},"modified":"2026-04-21T11:00:07","modified_gmt":"2026-04-21T09:00:07","slug":"nasi-klienci","status":"publish","type":"page","link":"https:\/\/michal.codigmatic.tech\/en\/nasi-klienci\/","title":{"rendered":"Nasi klienci"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"354\" class=\"elementor elementor-354\">\n\t\t\t\t<div class=\"elementor-element elementor-element-55eebe5 lyke-map-container e-flex e-con-boxed e-con e-parent\" data-id=\"55eebe5\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-944fe1a elementor-widget elementor-widget-shortcode\" data-id=\"944fe1a\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\">\n<div id=\"map\" style=\"height:600px;\"><\/div>\n\n<link rel=\"stylesheet\" href=\"https:\/\/unpkg.com\/leaflet@1.9.4\/dist\/leaflet.css\" \/>\n<link rel=\"stylesheet\" href=\"https:\/\/unpkg.com\/leaflet.markercluster@1.5.3\/dist\/MarkerCluster.css\" \/>\n<link rel=\"stylesheet\" href=\"https:\/\/unpkg.com\/leaflet.markercluster@1.5.3\/dist\/MarkerCluster.Default.css\" \/>\n\n<script src=\"https:\/\/unpkg.com\/leaflet@1.9.4\/dist\/leaflet.js\"><\/script>\n<script src=\"https:\/\/unpkg.com\/leaflet.markercluster@1.5.3\/dist\/leaflet.markercluster.js\"><\/script>\n<script>\nconst map = L.map('map', {\n  minZoom: 6,\n  maxZoom: 13\n}).setView([52.1, 19.4], 6);\nL.tileLayer('https:\/\/{s}.tile.openstreetmap.org\/{z}\/{x}\/{y}.png', {\n  attribution: ''\n}).addTo(map);\n\nconst customIcon = L.icon({\n\/\/   iconUrl: window.location.origin + '\/wp-content\/uploads\/2026\/04\/pin.png',\n  iconSize: [32, 32],\n  iconAnchor: [16, 32],\n  popupAnchor: [0, -32]\n});\n\nconst group = L.featureGroup();\n\nfetch(window.location.origin + '\/wp-content\/uploads\/locations.json')\n  .then(res => res.json())\n  .then(locations => {\n\n    locations.forEach(loc => {\n\n      const marker = L.marker([loc.lat, loc.lng]);\n\n      marker.bindPopup(`\n        <strong>${loc.title}<\/strong>\n      `);\n\n      marker.addTo(map);\n      group.addLayer(marker);\n\n    });\n\n    \/\/ dopiero po dodaniu wszystkich marker\u00f3w\n    if (group.getLayers().length > 0) {\n      map.fitBounds(group.getBounds(), {\n        padding: [30, 30]\n      });\n    }\n\n  })\n  .catch(err => {\n    console.error('B\u0142\u0105d \u0142adowania locations.json:', err);\n  });\n<\/script>\n\n<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-354","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/michal.codigmatic.tech\/en\/wp-json\/wp\/v2\/pages\/354","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/michal.codigmatic.tech\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/michal.codigmatic.tech\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/michal.codigmatic.tech\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/michal.codigmatic.tech\/en\/wp-json\/wp\/v2\/comments?post=354"}],"version-history":[{"count":17,"href":"https:\/\/michal.codigmatic.tech\/en\/wp-json\/wp\/v2\/pages\/354\/revisions"}],"predecessor-version":[{"id":672,"href":"https:\/\/michal.codigmatic.tech\/en\/wp-json\/wp\/v2\/pages\/354\/revisions\/672"}],"wp:attachment":[{"href":"https:\/\/michal.codigmatic.tech\/en\/wp-json\/wp\/v2\/media?parent=354"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}