{"id":361,"date":"2026-03-21T21:21:39","date_gmt":"2026-03-21T20:21:39","guid":{"rendered":"http:\/\/192.168.1.248\/wordpress\/?page_id=361"},"modified":"2026-04-18T12:33:41","modified_gmt":"2026-04-18T12:33:41","slug":"361-2","status":"publish","type":"page","link":"https:\/\/kolejgornicza.pl\/index.php\/361-2\/","title":{"rendered":"Mapa sieci"},"content":{"rendered":"\n<div class=\"wp-block-uagb-container uagb-block-088fe7f2 alignfull uagb-is-root-container\"><div class=\"uagb-container-inner-blocks-wrap\">\n<link rel=\"stylesheet\" href=\"https:\/\/unpkg.com\/leaflet@1.9.4\/dist\/leaflet.css\" \/>\n<script src=\"https:\/\/unpkg.com\/leaflet@1.9.4\/dist\/leaflet.js\"><\/script>\n\n<div id=\"mapa-kolei-piaskowych\" style=\"width: 100%; height: 750px; background: #ffffff; border: 3px solid #3d7a4f; border-radius: 8px;\"><\/div>\n\n<style>\n\/* Styl zielonego dymka (Tooltip) *\/\n.leaflet-tooltip {\n    background-color: #3d7a4f !important; \n    color: #ffffff !important;\n    border: 1px solid #1e4d2b !important;\n    border-radius: 4px;\n    padding: 6px 12px;\n    font-family: 'Segoe UI', Arial, sans-serif;\n    font-size: 14px;\n    font-weight: bold;\n    box-shadow: 0 2px 6px rgba(0,0,0,0.3);\n}\n.leaflet-tooltip-top:before {\n    border-top-color: #3d7a4f !important;\n}\n\n.custom-div-icon {\n    background: none !important;\n    border: none !important;\n}\n\n.leaflet-container {\n    background: #ffffff !important;\n}\n<\/style>\n\n<script>\ndocument.addEventListener(\"DOMContentLoaded\", function() {\n    \/\/ Ustawienia obrazu mapy\n    var urlZdjecia = 'https:\/\/kolejgornicza.pl\/wp-content\/uploads\/2026\/04\/mapa.svg';\n    var w = 2958; \n    var h = 1475; \n\n    \/\/ Inicjalizacja mapy z p\u0142ynnym zoomem\n    var map = L.map('mapa-kolei-piaskowych', {\n        crs: L.CRS.Simple,\n        minZoom: -2,\n        maxZoom: 2,\n        zoomSnap: 0.25,    \/\/ P\u0142ynniejszy skok przybli\u017cenia\n        zoomDelta: 0.25\n    });\n\n    var granice = [[0, 0], [h, w]];\n    L.imageOverlay(urlZdjecia, granice).addTo(map);\n\n    \/\/ Ustawienie widoku startowego (\u015arodek mapy, przybli\u017cenie 0 jest \"bli\u017cej\" ni\u017c domy\u015blne -1)\n    map.setView([h \/ 2, w \/ 2], 0); \n\n    \/\/ Definicja ikony pinezki\n    var zielonaIkona = L.divIcon({\n        className: 'custom-div-icon',\n        html: `<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 24 24\" width=\"48\" height=\"48\">\n                <path fill=\"#3d7a4f\" d=\"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z\"\/>\n                <path fill=\"rgba(0,0,0,0.2)\" d=\"M12 4c2.76 0 5 2.24 5 5 0 3.12-2.42 6.55-5 9.7-2.58-3.15-5-6.58-5-9.7 0-2.76 2.24-5 5-5m0-2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7z\"\/>\n               <\/svg>`,\n        iconSize: [48, 48],\n        iconAnchor: [24, 48]\n    });\n\n    \/\/ Funkcja dodaj\u0105ca punkty\n    function dodajPinezke(y, x, tytul, link) {\n        var marker = L.marker([y, x], {icon: zielonaIkona}).addTo(map);\n        marker.bindTooltip(tytul, {\n            direction: 'top',\n            sticky: false, \n            offset: [0, -35], \n            opacity: 1\n        });\n        marker.on('click', function() {\n            window.open(link, '_blank');\n        });\n    }\n\n    \/\/ LISTA PUNKT\u00d3W\n    dodajPinezke(203, 1118, 'Maliniec', 'https:\/\/kolejgornicza.pl\/index.php\/kwb-maliniec\/');\n    dodajPinezke(354, 1111, 'Zbiornik', 'https:\/\/kolejgornicza.pl\/index.php\/kwb-zbiornik\/');\n    dodajPinezke(386, 1116, 'Konin Elektrownia', 'https:\/\/kolejgornicza.pl\/index.php\/kwb-konin-elektrownia\/');\n    dodajPinezke(468, 1097, 'Przesmyk-Gaj', 'https:\/\/kolejgornicza.pl\/index.php\/kwb-przesmyk-gaj\/');\n    dodajPinezke(480, 1098, 'P\u0105tn\u00f3w', 'https:\/\/kolejgornicza.pl\/index.php\/kwb-patnow\/');\n    dodajPinezke(495, 1015, 'Estakada Wsch.', 'https:\/\/kolejgornicza.pl\/index.php\/kwb-estakada-wsch\/');\n    dodajPinezke(492, 961, 'Estakada W\u0119glowa', 'https:\/\/kolejgornicza.pl\/index.php\/kwb-estakada-weglowa\/');\n    dodajPinezke(499, 928, 'Estakada Zach.', 'https:\/\/kolejgornicza.pl\/index.php\/kwb-estakada-zach\/');\n    dodajPinezke(593, 800, 'Kazimierz Biskupi', 'https:\/\/kolejgornicza.pl\/index.php\/kwb-kazimierz-biskupi\/');\n    dodajPinezke(595, 791, 'Kazimierz W\u0119glowy', 'https:\/\/kolejgornicza.pl\/index.php\/kwb-kazimierz-weglowy\/');\n    dodajPinezke(716, 688, 'Skiby', 'https:\/\/kolejgornicza.pl\/index.php\/kwb-skiby\/');\n    dodajPinezke(690, 471, 'Bochlewo', 'https:\/\/kolejgornicza.pl\/index.php\/kwb-bochlewo\/');\n    dodajPinezke(842, 802, 'J\u00f3\u017awin W\u0119glowy', 'https:\/\/kolejgornicza.pl\/index.php\/kwb-jozwin-weglowy\/');\n    dodajPinezke(624, 980, 'Jan\u00f3w Rozdzielcza', 'https:\/\/kolejgornicza.pl\/index.php\/kwb-janow-rozdzielcza\/');\n    dodajPinezke(584, 1178, 'Cukrownia', 'https:\/\/kolejgornicza.pl\/index.php\/kwb-cukrownia\/');\n    dodajPinezke(669, 1149, 'P\u0105tn\u00f3w W\u0119glowy', 'https:\/\/kolejgornicza.pl\/index.php\/kwb-patnow-weglowy\/');\n    dodajPinezke(761, 1540, 'Wygoda', 'https:\/\/kolejgornicza.pl\/index.php\/kwb-wygoda\/');\n    dodajPinezke(790, 1858, 'B\u0142onawy', 'https:\/\/kolejgornicza.pl\/index.php\/kwb-blonawy\/');\n    dodajPinezke(849, 1961, 'Lubst\u00f3w', 'https:\/\/kolejgornicza.pl\/index.php\/kwb-lubstow\/');\n    dodajPinezke(486, 1914, 'Drzewce', 'https:\/\/kolejgornicza.pl\/index.php\/kwb-drzewce\/');\n\n    \/\/ Klikni\u0119cie w map\u0119 pokazuje wsp\u00f3\u0142rz\u0119dne w konsoli (F12)\n    map.on('click', function(e) {\n        console.log(\"dodajPinezke(\" + e.latlng.lat.toFixed(0) + \", \" + e.latlng.lng.toFixed(0) + \", 'Nazwa', 'Link');\");\n    });\n});\n<\/script>\n<\/div><\/div>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"_uag_custom_page_level_css":"","footnotes":""},"class_list":["post-361","page","type-page","status-publish","hentry"],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"RoboGalleryMansoryImagesCenter":false,"RoboGalleryPreload":false,"1536x1536":false,"2048x2048":false},"uagb_author_info":{"display_name":"admin","author_link":"https:\/\/kolejgornicza.pl\/index.php\/author\/admin\/"},"uagb_comment_info":0,"uagb_excerpt":null,"_links":{"self":[{"href":"https:\/\/kolejgornicza.pl\/index.php\/wp-json\/wp\/v2\/pages\/361","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kolejgornicza.pl\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/kolejgornicza.pl\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/kolejgornicza.pl\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kolejgornicza.pl\/index.php\/wp-json\/wp\/v2\/comments?post=361"}],"version-history":[{"count":10,"href":"https:\/\/kolejgornicza.pl\/index.php\/wp-json\/wp\/v2\/pages\/361\/revisions"}],"predecessor-version":[{"id":706,"href":"https:\/\/kolejgornicza.pl\/index.php\/wp-json\/wp\/v2\/pages\/361\/revisions\/706"}],"wp:attachment":[{"href":"https:\/\/kolejgornicza.pl\/index.php\/wp-json\/wp\/v2\/media?parent=361"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}