CINXE.COM
Harita • Kültür Envanteri
<!DOCTYPE html><html lang="tr-TR" prefix="og: https://ogp.me/ns#"><head><meta charset="UTF-8"><link data-optimized="2" rel="stylesheet" href="https://kulturenvanteri.com/wp-content/litespeed/css/cc65a17a0576a074a301566b88c9ed87.css?ver=4116a" /><meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /><link rel="profile" href="https://gmpg.org/xfn/11"><link rel="manifest" href="/manifest.json"><meta name="theme-color" content="#958a6b"><style>img:is([sizes="auto" i], [sizes^="auto," i]) { contain-intrinsic-size: 3000px 1500px }</style><title>Harita • Kültür Envanteri</title><meta name="description" content="Kültür Envanteri'nde yerel alan tüm kültür varlıkları ve harita üzerindeki konumları"/><meta name="robots" content="follow, index, max-snippet:-1, max-video-preview:-1, max-image-preview:large"/><link rel="canonical" href="https://kulturenvanteri.com/tr/harita/" /><meta property="og:locale" content="tr_TR" /><meta property="og:type" content="article" /><meta property="og:title" content="Harita • Kültür Envanteri" /><meta property="og:description" content="Kültür Envanteri'nde yerel alan tüm kültür varlıkları ve harita üzerindeki konumları" /><meta property="og:url" content="https://kulturenvanteri.com/tr/harita/" /><meta property="og:site_name" content="Kültür Envanteri" /><meta property="og:updated_time" content="2022-11-07T02:04:35+03:00" /><meta property="og:image" content="https://cdn.kulturenvanteri.com/wp-content/uploads/2021/06/ke_default.jpg" /><meta property="og:image:secure_url" content="https://cdn.kulturenvanteri.com/wp-content/uploads/2021/06/ke_default.jpg" /><meta property="og:image:width" content="1200" /><meta property="og:image:height" content="584" /><meta property="og:image:alt" content="Harita" /><meta property="og:image:type" content="image/jpeg" /><meta name="twitter:card" content="summary_large_image" /><meta name="twitter:title" content="Harita • Kültür Envanteri" /><meta name="twitter:description" content="Kültür Envanteri'nde yerel alan tüm kültür varlıkları ve harita üzerindeki konumları" /><meta name="twitter:site" content="@envanteratlasi" /><meta name="twitter:creator" content="@aerdemsenturk" /><meta name="twitter:image" content="https://cdn.kulturenvanteri.com/wp-content/uploads/2021/06/ke_default.jpg" /><meta name="twitter:label1" content="Okuma süresi" /><meta name="twitter:data1" content="Bir dakikadan az" /><link rel='dns-prefetch' href='//cdn.jsdelivr.net' /><link rel='dns-prefetch' href='//www.googletagmanager.com' /><link rel='dns-prefetch' href='//unpkg.com' /><link rel='dns-prefetch' href='//cdnjs.cloudflare.com' /><link rel='dns-prefetch' href='//api.mapbox.com' /><link rel='dns-prefetch' href='//www.unpkg.com' /><link rel='dns-prefetch' href='//cdn.kulturenvanteri.com' /><link rel='dns-prefetch' href='//fonts.googleapis.com' /><link rel='dns-prefetch' href='//fonts.gstatic.com' /><link rel='dns-prefetch' href='//www.google-analytics.com' /><style id='co-authors-plus-coauthors-style-inline-css'>.wp-block-co-authors-plus-coauthors.is-layout-flow [class*=wp-block-co-authors-plus]{display:inline}</style><style id='co-authors-plus-avatar-style-inline-css'>.wp-block-co-authors-plus-avatar :where(img){height:auto;max-width:100%;vertical-align:bottom}.wp-block-co-authors-plus-coauthors.is-layout-flow .wp-block-co-authors-plus-avatar :where(img){vertical-align:middle}.wp-block-co-authors-plus-avatar:is(.alignleft,.alignright){display:table}.wp-block-co-authors-plus-avatar.aligncenter{display:table;margin-inline:auto}</style><style id='co-authors-plus-image-style-inline-css'>.wp-block-co-authors-plus-image{margin-bottom:0}.wp-block-co-authors-plus-image :where(img){height:auto;max-width:100%;vertical-align:bottom}.wp-block-co-authors-plus-coauthors.is-layout-flow .wp-block-co-authors-plus-image :where(img){vertical-align:middle}.wp-block-co-authors-plus-image:is(.alignfull,.alignwide) :where(img){width:100%}.wp-block-co-authors-plus-image:is(.alignleft,.alignright){display:table}.wp-block-co-authors-plus-image.aligncenter{display:table;margin-inline:auto}</style><style id='rank-math-toc-block-style-inline-css'>.wp-block-rank-math-toc-block nav ol{counter-reset:item}.wp-block-rank-math-toc-block nav ol li{display:block}.wp-block-rank-math-toc-block nav ol li:before{content:counters(item, ".") ". ";counter-increment:item}</style><style id='classic-theme-styles-inline-css'>/*! This file is auto-generated */ .wp-block-button__link{color:#fff;background-color:#32373c;border-radius:9999px;box-shadow:none;text-decoration:none;padding:calc(.667em + 2px) calc(1.333em + 2px);font-size:1.125em}.wp-block-file__button{background:#32373c;color:#fff;text-decoration:none}</style><style id='global-styles-inline-css'>:root{--wp--preset--aspect-ratio--square: 1;--wp--preset--aspect-ratio--4-3: 4/3;--wp--preset--aspect-ratio--3-4: 3/4;--wp--preset--aspect-ratio--3-2: 3/2;--wp--preset--aspect-ratio--2-3: 2/3;--wp--preset--aspect-ratio--16-9: 16/9;--wp--preset--aspect-ratio--9-16: 9/16;--wp--preset--color--black: #000000;--wp--preset--color--cyan-bluish-gray: #abb8c3;--wp--preset--color--white: #fff;--wp--preset--color--pale-pink: #f78da7;--wp--preset--color--vivid-red: #cf2e2e;--wp--preset--color--luminous-vivid-orange: #ff6900;--wp--preset--color--luminous-vivid-amber: #fcb900;--wp--preset--color--light-green-cyan: #7bdcb5;--wp--preset--color--vivid-green-cyan: #00d084;--wp--preset--color--pale-cyan-blue: #8ed1fc;--wp--preset--color--vivid-cyan-blue: #0693e3;--wp--preset--color--vivid-purple: #9b51e0;--wp--preset--color--blue: #0d6efd;--wp--preset--color--indigo: #6610f2;--wp--preset--color--purple: #5533ff;--wp--preset--color--pink: #d63384;--wp--preset--color--red: #dc3545;--wp--preset--color--orange: #fd7e14;--wp--preset--color--yellow: #ffc107;--wp--preset--color--green: #198754;--wp--preset--color--teal: #20c997;--wp--preset--color--cyan: #0dcaf0;--wp--preset--color--gray: #6c757d;--wp--preset--color--gray-dark: #343a40;--wp--preset--gradient--vivid-cyan-blue-to-vivid-purple: linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%);--wp--preset--gradient--light-green-cyan-to-vivid-green-cyan: linear-gradient(135deg,rgb(122,220,180) 0%,rgb(0,208,130) 100%);--wp--preset--gradient--luminous-vivid-amber-to-luminous-vivid-orange: linear-gradient(135deg,rgba(252,185,0,1) 0%,rgba(255,105,0,1) 100%);--wp--preset--gradient--luminous-vivid-orange-to-vivid-red: linear-gradient(135deg,rgba(255,105,0,1) 0%,rgb(207,46,46) 100%);--wp--preset--gradient--very-light-gray-to-cyan-bluish-gray: linear-gradient(135deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%);--wp--preset--gradient--cool-to-warm-spectrum: linear-gradient(135deg,rgb(74,234,220) 0%,rgb(151,120,209) 20%,rgb(207,42,186) 40%,rgb(238,44,130) 60%,rgb(251,105,98) 80%,rgb(254,248,76) 100%);--wp--preset--gradient--blush-light-purple: linear-gradient(135deg,rgb(255,206,236) 0%,rgb(152,150,240) 100%);--wp--preset--gradient--blush-bordeaux: linear-gradient(135deg,rgb(254,205,165) 0%,rgb(254,45,45) 50%,rgb(107,0,62) 100%);--wp--preset--gradient--luminous-dusk: linear-gradient(135deg,rgb(255,203,112) 0%,rgb(199,81,192) 50%,rgb(65,88,208) 100%);--wp--preset--gradient--pale-ocean: linear-gradient(135deg,rgb(255,245,203) 0%,rgb(182,227,212) 50%,rgb(51,167,181) 100%);--wp--preset--gradient--electric-grass: linear-gradient(135deg,rgb(202,248,128) 0%,rgb(113,206,126) 100%);--wp--preset--gradient--midnight: linear-gradient(135deg,rgb(2,3,129) 0%,rgb(40,116,252) 100%);--wp--preset--font-size--small: 13px;--wp--preset--font-size--medium: 20px;--wp--preset--font-size--large: 36px;--wp--preset--font-size--x-large: 42px;--wp--preset--spacing--20: 0.44rem;--wp--preset--spacing--30: 0.67rem;--wp--preset--spacing--40: 1rem;--wp--preset--spacing--50: 1.5rem;--wp--preset--spacing--60: 2.25rem;--wp--preset--spacing--70: 3.38rem;--wp--preset--spacing--80: 5.06rem;--wp--preset--shadow--natural: 6px 6px 9px rgba(0, 0, 0, 0.2);--wp--preset--shadow--deep: 12px 12px 50px rgba(0, 0, 0, 0.4);--wp--preset--shadow--sharp: 6px 6px 0px rgba(0, 0, 0, 0.2);--wp--preset--shadow--outlined: 6px 6px 0px -3px rgba(255, 255, 255, 1), 6px 6px rgba(0, 0, 0, 1);--wp--preset--shadow--crisp: 6px 6px 0px rgba(0, 0, 0, 1);}:where(.is-layout-flex){gap: 0.5em;}:where(.is-layout-grid){gap: 0.5em;}body .is-layout-flex{display: flex;}.is-layout-flex{flex-wrap: wrap;align-items: center;}.is-layout-flex > :is(*, div){margin: 0;}body .is-layout-grid{display: grid;}.is-layout-grid > :is(*, div){margin: 0;}:where(.wp-block-columns.is-layout-flex){gap: 2em;}:where(.wp-block-columns.is-layout-grid){gap: 2em;}:where(.wp-block-post-template.is-layout-flex){gap: 1.25em;}:where(.wp-block-post-template.is-layout-grid){gap: 1.25em;}.has-black-color{color: var(--wp--preset--color--black) !important;}.has-cyan-bluish-gray-color{color: var(--wp--preset--color--cyan-bluish-gray) !important;}.has-white-color{color: var(--wp--preset--color--white) !important;}.has-pale-pink-color{color: var(--wp--preset--color--pale-pink) !important;}.has-vivid-red-color{color: var(--wp--preset--color--vivid-red) !important;}.has-luminous-vivid-orange-color{color: var(--wp--preset--color--luminous-vivid-orange) !important;}.has-luminous-vivid-amber-color{color: var(--wp--preset--color--luminous-vivid-amber) !important;}.has-light-green-cyan-color{color: var(--wp--preset--color--light-green-cyan) !important;}.has-vivid-green-cyan-color{color: var(--wp--preset--color--vivid-green-cyan) !important;}.has-pale-cyan-blue-color{color: var(--wp--preset--color--pale-cyan-blue) !important;}.has-vivid-cyan-blue-color{color: var(--wp--preset--color--vivid-cyan-blue) !important;}.has-vivid-purple-color{color: var(--wp--preset--color--vivid-purple) !important;}.has-black-background-color{background-color: var(--wp--preset--color--black) !important;}.has-cyan-bluish-gray-background-color{background-color: var(--wp--preset--color--cyan-bluish-gray) !important;}.has-white-background-color{background-color: var(--wp--preset--color--white) !important;}.has-pale-pink-background-color{background-color: var(--wp--preset--color--pale-pink) !important;}.has-vivid-red-background-color{background-color: var(--wp--preset--color--vivid-red) !important;}.has-luminous-vivid-orange-background-color{background-color: var(--wp--preset--color--luminous-vivid-orange) !important;}.has-luminous-vivid-amber-background-color{background-color: var(--wp--preset--color--luminous-vivid-amber) !important;}.has-light-green-cyan-background-color{background-color: var(--wp--preset--color--light-green-cyan) !important;}.has-vivid-green-cyan-background-color{background-color: var(--wp--preset--color--vivid-green-cyan) !important;}.has-pale-cyan-blue-background-color{background-color: var(--wp--preset--color--pale-cyan-blue) !important;}.has-vivid-cyan-blue-background-color{background-color: var(--wp--preset--color--vivid-cyan-blue) !important;}.has-vivid-purple-background-color{background-color: var(--wp--preset--color--vivid-purple) !important;}.has-black-border-color{border-color: var(--wp--preset--color--black) !important;}.has-cyan-bluish-gray-border-color{border-color: var(--wp--preset--color--cyan-bluish-gray) !important;}.has-white-border-color{border-color: var(--wp--preset--color--white) !important;}.has-pale-pink-border-color{border-color: var(--wp--preset--color--pale-pink) !important;}.has-vivid-red-border-color{border-color: var(--wp--preset--color--vivid-red) !important;}.has-luminous-vivid-orange-border-color{border-color: var(--wp--preset--color--luminous-vivid-orange) !important;}.has-luminous-vivid-amber-border-color{border-color: var(--wp--preset--color--luminous-vivid-amber) !important;}.has-light-green-cyan-border-color{border-color: var(--wp--preset--color--light-green-cyan) !important;}.has-vivid-green-cyan-border-color{border-color: var(--wp--preset--color--vivid-green-cyan) !important;}.has-pale-cyan-blue-border-color{border-color: var(--wp--preset--color--pale-cyan-blue) !important;}.has-vivid-cyan-blue-border-color{border-color: var(--wp--preset--color--vivid-cyan-blue) !important;}.has-vivid-purple-border-color{border-color: var(--wp--preset--color--vivid-purple) !important;}.has-vivid-cyan-blue-to-vivid-purple-gradient-background{background: var(--wp--preset--gradient--vivid-cyan-blue-to-vivid-purple) !important;}.has-light-green-cyan-to-vivid-green-cyan-gradient-background{background: var(--wp--preset--gradient--light-green-cyan-to-vivid-green-cyan) !important;}.has-luminous-vivid-amber-to-luminous-vivid-orange-gradient-background{background: var(--wp--preset--gradient--luminous-vivid-amber-to-luminous-vivid-orange) !important;}.has-luminous-vivid-orange-to-vivid-red-gradient-background{background: var(--wp--preset--gradient--luminous-vivid-orange-to-vivid-red) !important;}.has-very-light-gray-to-cyan-bluish-gray-gradient-background{background: var(--wp--preset--gradient--very-light-gray-to-cyan-bluish-gray) !important;}.has-cool-to-warm-spectrum-gradient-background{background: var(--wp--preset--gradient--cool-to-warm-spectrum) !important;}.has-blush-light-purple-gradient-background{background: var(--wp--preset--gradient--blush-light-purple) !important;}.has-blush-bordeaux-gradient-background{background: var(--wp--preset--gradient--blush-bordeaux) !important;}.has-luminous-dusk-gradient-background{background: var(--wp--preset--gradient--luminous-dusk) !important;}.has-pale-ocean-gradient-background{background: var(--wp--preset--gradient--pale-ocean) !important;}.has-electric-grass-gradient-background{background: var(--wp--preset--gradient--electric-grass) !important;}.has-midnight-gradient-background{background: var(--wp--preset--gradient--midnight) !important;}.has-small-font-size{font-size: var(--wp--preset--font-size--small) !important;}.has-medium-font-size{font-size: var(--wp--preset--font-size--medium) !important;}.has-large-font-size{font-size: var(--wp--preset--font-size--large) !important;}.has-x-large-font-size{font-size: var(--wp--preset--font-size--x-large) !important;} :where(.wp-block-post-template.is-layout-flex){gap: 1.25em;}:where(.wp-block-post-template.is-layout-grid){gap: 1.25em;} :where(.wp-block-columns.is-layout-flex){gap: 2em;}:where(.wp-block-columns.is-layout-grid){gap: 2em;} :root :where(.wp-block-pullquote){font-size: 1.5em;line-height: 1.6;}</style><link rel='stylesheet' id='mapbox-css-css' href='//api.mapbox.com/mapbox-gl-js/v1.13.2/mapbox-gl.css' media='all' /><link rel='stylesheet' id='mapbox-gl-geocoder-css-css' href='//api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-geocoder/v4.5.1/mapbox-gl-geocoder.css' media='all' /><link rel='stylesheet' id='swiper-css-css' href='//unpkg.com/swiper@11.1.14/swiper-bundle.min.css' media='all' /><link rel='stylesheet' id='photo-swipe-css-css' href='//www.unpkg.com/photoswipe@5.4.4/dist/photoswipe.css' media='all' /> <script src="https://kulturenvanteri.com/wp-includes/js/jquery/jquery.min.js" id="jquery-core-js"></script> <script src="https://www.googletagmanager.com/gtag/js?id=G-TV1YB45K0M" id="google_gtagjs-js" async></script> <script id="google_gtagjs-js-after">window.dataLayer = window.dataLayer || [];function gtag(){dataLayer.push(arguments);} gtag("set","linker",{"domains":["kulturenvanteri.com"]}); gtag("js", new Date()); gtag("set", "developer_id.dZTNiMT", true); gtag("config", "G-TV1YB45K0M");</script> <script src="//unpkg.com/@turf/turf@6.5.0/turf.min.js" id="turf-js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/Readmore.js/2.0.2/readmore.min.js" id="readmore-js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/mapbox-gl/1.13.3/mapbox-gl.min.js" id="mapbox-js-js"></script> <script src="//api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-geocoder/v4.5.1/mapbox-gl-geocoder.min.js" id="mapbox-gl-geocoder-js-js"></script> <script src="//unpkg.com/swiper@11.1.14/swiper-bundle.min.js" id="swiper-js-js"></script> <script src="//www.unpkg.com/photoswipe@5.4.4/dist/umd/photoswipe.umd.min.js" id="photo-swipe-js"></script> <script src="//www.unpkg.com/photoswipe@5.4.4/dist/umd/photoswipe-lightbox.umd.min.js" id="photo-swipe-lightbox-js"></script> <script src="//cdn.jsdelivr.net/npm/macy@2" id="macy-js"></script> <script src="//cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/js/bootstrap.bundle.min.js" id="bootstrap-js"></script> <link rel="https://api.w.org/" href="https://kulturenvanteri.com/tr/wp-json/" /><link rel="alternate" title="JSON" type="application/json" href="https://kulturenvanteri.com/tr/wp-json/wp/v2/pages/13171" /><link rel="alternate" title="oEmbed (JSON)" type="application/json+oembed" href="https://kulturenvanteri.com/tr/wp-json/oembed/1.0/embed?url=https%3A%2F%2Fkulturenvanteri.com%2Ftr%2Fharita%2F" /><link rel="alternate" title="oEmbed (XML)" type="text/xml+oembed" href="https://kulturenvanteri.com/tr/wp-json/oembed/1.0/embed?url=https%3A%2F%2Fkulturenvanteri.com%2Ftr%2Fharita%2F&format=xml" /><meta name="generator" content="Site Kit by Google 1.140.0" /><link rel="alternate" hreflang="tr-TR" href="https://kulturenvanteri.com/tr/harita/"/><link rel="alternate" hreflang="en-US" href="https://kulturenvanteri.com/en/harita/"/><link rel="alternate" hreflang="tr" href="https://kulturenvanteri.com/tr/harita/"/><link rel="alternate" hreflang="en" href="https://kulturenvanteri.com/en/harita/"/><meta name="mobile-web-app-capable" content="yes"><meta name="apple-mobile-web-app-capable" content="yes"><meta name="apple-mobile-web-app-title" content="Kültür Envanteri - Bilirsek, koruruz."><style>.algolia-search-highlight { background-color: #fffbcc; border-radius: 2px; font-style: normal; }</style><link rel="icon" href="https://cdn.kulturenvanteri.com/wp-content/uploads/2022/08/cropped-ke-icon-32x32.png" sizes="32x32" /><link rel="icon" href="https://cdn.kulturenvanteri.com/wp-content/uploads/2022/08/cropped-ke-icon-192x192.png" sizes="192x192" /><link rel="apple-touch-icon" href="https://cdn.kulturenvanteri.com/wp-content/uploads/2022/08/cropped-ke-icon-180x180.png" /><meta name="msapplication-TileImage" content="https://cdn.kulturenvanteri.com/wp-content/uploads/2022/08/cropped-ke-icon-270x270.png" /></head><body class="page-template page-template-page-templates page-template-map page-template-page-templatesmap-php page page-id-13171 wp-embed-responsive translatepress-tr_TR group-blog understrap-no-sidebar" data-no-translation><div class="site" id="page"><div id="wrapper-navbar" itemscope itemtype="http://schema.org/WebSite"><a class="skip-link sr-only sr-only-focusable" href="#content">İçeriğe geç</a><nav id="navbar" class="navbar navbar-expand-xl navbar-dark fixed-top"> <a class="navbar-brand d-none d-md-block" rel="home" href="https://kulturenvanteri.com/tr/" itemprop="url">Kültür Envanteri</a> <a class="navbar-brand d-block d-md-none" rel="home" href="https://kulturenvanteri.com/tr/" itemprop="url">KE</a> <span class="d-none d-md-block navbar-brand text-primary">Harita</span><div class="ms-auto"> <a title="Harita" class="btn shadow-lg-hard btn-sm btn-circle btn-primary ms-1" href="https://kulturenvanteri.com/tr/harita"> <svg width="16" aria-hidden="true" focusable="false" data-prefix="fas" data-icon="globe" class="svg-inline--fa fa-globe fa-w-16" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512"><path fill="currentColor" d="M336.5 160C322 70.7 287.8 8 248 8s-74 62.7-88.5 152h177zM152 256c0 22.2 1.2 43.5 3.3 64h185.3c2.1-20.5 3.3-41.8 3.3-64s-1.2-43.5-3.3-64H155.3c-2.1 20.5-3.3 41.8-3.3 64zm324.7-96c-28.6-67.9-86.5-120.4-158-141.6 24.4 33.8 41.2 84.7 50 141.6h108zM177.2 18.4C105.8 39.6 47.8 92.1 19.3 160h108c8.7-56.9 25.5-107.8 49.9-141.6zM487.4 192H372.7c2.1 21 3.3 42.5 3.3 64s-1.2 43-3.3 64h114.6c5.5-20.5 8.6-41.8 8.6-64s-3.1-43.5-8.5-64zM120 256c0-21.5 1.2-43 3.3-64H8.6C3.2 212.5 0 233.8 0 256s3.2 43.5 8.6 64h114.6c-2-21-3.2-42.5-3.2-64zm39.5 96c14.5 89.3 48.7 152 88.5 152s74-62.7 88.5-152h-177zm159.3 141.6c71.4-21.2 129.4-73.7 158-141.6h-108c-8.8 56.9-25.6 107.8-50 141.6zM19.3 352c28.6 67.9 86.5 120.4 158 141.6-24.4-33.8-41.2-84.7-50-141.6h-108z"></path></svg> Harita </a> <a title="Araştır" class="btn shadow-lg-hard btn-sm btn-circle btn-primary ms-1" href="https://kulturenvanteri.com/tr/arastir/d"> <svg width="16" aria-hidden="true" focusable="false" data-prefix="fas" data-icon="drafting-compass" class="svg-inline--fa fa-drafting-compass fa-w-16" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M457.01 344.42c-25.05 20.33-52.63 37.18-82.54 49.05l54.38 94.19 53.95 23.04c9.81 4.19 20.89-2.21 22.17-12.8l7.02-58.25-54.98-95.23zm42.49-94.56c4.86-7.67 1.89-17.99-6.05-22.39l-28.07-15.57c-7.48-4.15-16.61-1.46-21.26 5.72C403.01 281.15 332.25 320 256 320c-23.93 0-47.23-4.25-69.41-11.53l67.36-116.68c.7.02 1.34.21 2.04.21s1.35-.19 2.04-.21l51.09 88.5c31.23-8.96 59.56-25.75 82.61-48.92l-51.79-89.71C347.39 128.03 352 112.63 352 96c0-53.02-42.98-96-96-96s-96 42.98-96 96c0 16.63 4.61 32.03 12.05 45.66l-68.3 118.31c-12.55-11.61-23.96-24.59-33.68-39-4.79-7.1-13.97-9.62-21.38-5.33l-27.75 16.07c-7.85 4.54-10.63 14.9-5.64 22.47 15.57 23.64 34.69 44.21 55.98 62.02L0 439.66l7.02 58.25c1.28 10.59 12.36 16.99 22.17 12.8l53.95-23.04 70.8-122.63C186.13 377.28 220.62 384 256 384c99.05 0 190.88-51.01 243.5-134.14zM256 64c17.67 0 32 14.33 32 32s-14.33 32-32 32-32-14.33-32-32 14.33-32 32-32z"></path></svg> Araştır </a> <a title="Ara" class="btn shadow-lg-hard btn-sm btn-circle btn-primary ms-1" data-bs-toggle="modal" data-bs-target="#modal_search"> <svg width="16" aria-hidden="true" focusable="false" data-prefix="fas" data-icon="search" class="svg-inline--fa fa-search fa-w-16" role="img" viewBox="0 0 512 512"><path fill="currentColor" d="M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"></path></svg> </a> <a title="Menü" class="btn shadow-lg-hard btn-sm btn-circle btn-primary ms-1" data-bs-toggle="modal" data-bs-target="#modal_menu"> <svg width="16" aria-hidden="true" focusable="false" data-prefix="fas" data-icon="bars" class="svg-inline--fa fa-bars fa-w-14" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"></path></svg> </a></div></nav><div class="modal" id="modal_search" tabindex="-1" aria-labelledby="button_searchTitle" aria-hidden="true"><div class="modal-dialog modal-search" role="document"><div class="modal-content rounded-0"><div class="modal-body p-0"><form action="https://kulturenvanteri.com/tr/arastir/d/" method="get"><div class="input-group"> <input data-swplive="true" class="field form-control" type="search" placeholder="Bir kültür varlığı arayın" name="_ara"><div class="input-group-append"> <button class="btn shadow-lg-hard btn-primary" id="searchsubmit" type="submit">Ara</button></div></div></form></div></div></div></div><div class="modal" id="modal_menu" tabindex="-1" aria-labelledby="button_menuTitle" aria-hidden="true"><div class="modal-dialog modal-menu" role="document"><div class="modal-content"><div class="modal-body pt-2 pb-3 px-3 bg-white rounded"><div id="navbarNavDropdown" class="menu-menu-container"><ul id="main-menu" class="navbar-nav ms-auto"><li itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement" id="menu-item-151203" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-151203 nav-item"><a title="Giriş Yap" href="https://kulturenvanteri.org/wp-admin/" class="nav-link">Giriş Yap</a></li><li itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement" id="menu-item-146555" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-146555 nav-item"><a title="Rehber" href="https://kulturenvanteri.com/tr/rehber/" class="nav-link">Rehber</a></li><li itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement" id="menu-item-146554" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-146554 nav-item"><a title="Katkıda Bulunun" href="https://kulturenvanteri.com/tr/katkida-bulunun/" class="nav-link">Katkıda Bulunun</a></li><li itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement" id="menu-item-146553" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-146553 nav-item"><a title="Destek Olun" href="https://kulturenvanteri.com/tr/destek-olun/" class="nav-link">Destek Olun</a></li><li itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement" id="menu-item-146556" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-146556 nav-item"><a title="Hakkında" href="https://kulturenvanteri.com/tr/hakkinda/" class="nav-link">Hakkında</a></li></ul></div></div></div></div></div><div class="modal" id="iframeModal" tabindex="-1" aria-labelledby="iframeModalLabel" aria-hidden="true"><div class="modal-dialog modal-xl modal-edit"><div class="modal-content"><div class="modal-header"> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button></div><div class="modal-body p-0"> <iframe src="" frameborder="0" id="popupIframe" style="width: 100%; height: 82vh;"></iframe></div></div></div></div> <script>document.addEventListener('DOMContentLoaded', function() { const iframeLinks = document.querySelectorAll('.iframe-popup'); const popupIframe = document.getElementById('popupIframe'); const iframeModal = new bootstrap.Modal(document.getElementById('iframeModal')); iframeLinks.forEach(link => { link.addEventListener('click', function(event) { event.preventDefault(); const url = this.href; popupIframe.src = url; iframeModal.show(); }); }); document.getElementById('iframeModal').addEventListener('hidden.bs.modal', function () { popupIframe.src = ''; }); });</script> <script>lang = "tr"; site_url = "https://kulturenvanteri.com/tr";</script> </div><div id="sub-menu-right" class="col-4 mt-5 me-3 pt-3 text-dark fixed-top-right"> <button class="btn shadow-lg-hard btn-sm btn-circle btn-primary float-end mb-3 ms-2" data-bs-toggle="modal" data-bs-target="#button_options"><svg height="16" aria-hidden="true" focusable="false" data-prefix="fas" data-icon="layer-group" class="svg-inline--fa fa-layer-group fa-w-16" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M12.41 148.02l232.94 105.67c6.8 3.09 14.49 3.09 21.29 0l232.94-105.67c16.55-7.51 16.55-32.52 0-40.03L266.65 2.31a25.607 25.607 0 0 0-21.29 0L12.41 107.98c-16.55 7.51-16.55 32.53 0 40.04zm487.18 88.28l-58.09-26.33-161.64 73.27c-7.56 3.43-15.59 5.17-23.86 5.17s-16.29-1.74-23.86-5.17L70.51 209.97l-58.1 26.33c-16.55 7.5-16.55 32.5 0 40l232.94 105.59c6.8 3.08 14.49 3.08 21.29 0L499.59 276.3c16.55-7.5 16.55-32.5 0-40zm0 127.8l-57.87-26.23-161.86 73.37c-7.56 3.43-15.59 5.17-23.86 5.17s-16.29-1.74-23.86-5.17L70.29 337.87 12.41 364.1c-16.55 7.5-16.55 32.5 0 40l232.94 105.59c6.8 3.08 14.49 3.08 21.29 0L499.59 404.1c16.55-7.5 16.55-32.5 0-40z"></path></svg></button> <button class="btn shadow-lg-hard btn-sm btn-circle btn-primary float-end mb-3" data-bs-toggle="modal" data-bs-target="#button_visiblelist"><svg height="16" aria-hidden="true" focusable="false" data-prefix="fas" data-icon="list-ul" class="svg-inline--fa fa-list-ul fa-w-16" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M48 48a48 48 0 1 0 48 48 48 48 0 0 0-48-48zm0 160a48 48 0 1 0 48 48 48 48 0 0 0-48-48zm0 160a48 48 0 1 0 48 48 48 48 0 0 0-48-48zm448 16H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-320H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16V80a16 16 0 0 0-16-16zm0 160H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z"></path></svg></button> <button title="Paylaş" class="btn shadow-lg-hard btn-sm btn-circle btn-primary float-end mx-2 mb-3" data-bs-toggle="modal" data-bs-target="#ShareModal"> <svg height="16" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M246.6 9.4c-12.5-12.5-32.8-12.5-45.3 0l-128 128c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 109.3V320c0 17.7 14.3 32 32 32s32-14.3 32-32V109.3l73.4 73.4c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-128-128zM64 352c0-17.7-14.3-32-32-32s-32 14.3-32 32v64c0 53 43 96 96 96H352c53 0 96-43 96-96V352c0-17.7-14.3-32-32-32s-32 14.3-32 32v64c0 17.7-14.3 32-32 32H96c-17.7 0-32-14.3-32-32V352z"/></svg> </button></div><div class="mt-6 ms-3"><div id="geocoder" class="geocoder"></div></div><div class="modal" id="button_visiblelist" tabindex="-1" role="dialog" aria-labelledby="button_visiblelistTitle" aria-hidden="true"><div class="modal-dialog modal-list" role="document"><div class="modal-content"><div class="modal-body p-3 bg-white card"><div class="map-list"><fieldset> <input id="feature-filter" type="text" placeholder="İsme göre filtrele" /></fieldset><div id="feature-listing" class="listing"></div></div></div></div></div></div><div class="map" id="map-all"></div><div class="d-none" id="placeTo"></div> <script>// Check Hash at first if(window.location.hash) { checkhash = 1; //console.log('hash exist ' + checkhash); } else { checkhash = 0; //console.log('hash does not exist ' + checkhash); } site_url = 'https://kulturenvanteri.com'; themepath = 'https://kulturenvanteri.com/wp-content/themes/ke'; pluginpath = 'https://kulturenvanteri.com/wp-content/plugins'; data = pluginpath + '/ke-geojson/geo.json'; ////// Map mapboxgl.accessToken = 'pk.eyJ1IjoiYmlydGFraW1zZXlsZXIiLCJhIjoiY2thcW5samczMDFtcjJ1b2M5cWFkNDZjbiJ9.H0Iodtg0DTBJG7e6wl3_Tg'; const map = new mapboxgl.Map({ container: 'map-all', style: themepath + '/map/sat_esri.json', hash: true, center: [28.957778643097875,41.01311237445259], // lng lat zoom: 9, maxZoom: 20, minZoom: 2, // https://github.com/mapbox/mapbox-gl-js/blob/main/src/ui/default_locale.js locale: { 'GeolocateControl.FindMyLocation': 'Konumumu göster', 'NavigationControl.ZoomIn': 'Yakınlaş', 'NavigationControl.ZoomOut': 'Uzaklaş', 'NavigationControl.ResetBearing': 'Yönü kuzeye çevir', } }); //// Filter Map let markers = []; const popup = new mapboxgl.Popup({ closeButton: false }); const filterEl = document.getElementById('feature-filter'); const listingEl = document.getElementById('feature-listing'); function renderListings(features) { const empty = document.createElement('p'); // Clear any existing listings listingEl.innerHTML = ''; if (features.length) { for (const feature of features) { const prop = feature.properties; const item = document.createElement('a'); item.setAttribute('onclick', 'placeModalFunction(\"' + prop.id + '\")'); item.textContent = prop.name; item.addEventListener('mouseover', function() { // Highlight corresponding feature on the map popup .setLngLat(feature.geometry.coordinates) .setText(feature.properties.name) .addTo(map); }); listingEl.appendChild(item); } // Show the filter input filterEl.parentNode.style.display = 'block'; } else if (features.length === 0 && filterEl.value !== '') { empty.textContent = 'Sonuç bulunamadı.'; listingEl.appendChild(empty); } else { empty.textContent = 'Sonuçları görmek için haritaya yakınlaştırın.'; listingEl.appendChild(empty); // Hide the filter input filterEl.parentNode.style.display = 'none'; // remove features filter map.setFilter('place', ['has', 'id']); } } function normalize(string) { if (!string) return ''; // Türkçe karakter dönüşümleri const turkishMap = { 'İ': 'i', 'I': 'ı', 'ı': 'i', 'i': 'i', // 'i' ile 'İ' eşleştirme 'ş': 's', 'Ş': 's', 'ç': 'c', 'Ç': 'c', 'ğ': 'g', 'Ğ': 'g', 'ü': 'u', 'Ü': 'u', 'ö': 'o', 'Ö': 'o' }; // Türkçe harfleri doğru eşleştirmek için her bir karakteri kontrol ediyoruz return string .trim() .split('') .map(char => turkishMap[char] || char) .join('') .toLowerCase(); } function getUniqueFeatures(features, comparatorProperty) { const uniqueIds = new Set(); const uniqueFeatures = []; for (const feature of features) { const id = feature.properties[comparatorProperty]; if (!uniqueIds.has(id)) { uniqueIds.add(id); uniqueFeatures.push(feature); } } return uniqueFeatures; } map.on('data', function (e) { //Hide loading bar once tiles from geojson are loaded if (e.dataType === 'source' && e.sourceId === 'markers') { document.getElementById("loader").style.visibility = "hidden"; } }) map.on('style.load', function () { map.addSource('markers', { "type": "geojson", "data": data }); //Textfield map.addLayer({ 'id': 'title', 'type': 'symbol', 'source': 'markers', 'minzoom': 16, 'layout': { 'text-field': [ 'format', ['concat', ['get', 'name']], { 'font-scale': 1, 'text-color': '#fff' }, '\n', {}, ['concat', ['get', 'cat']], { 'font-scale': 0.7, 'text-color': '#fff' }, '\n', {}, ['concat', ['get', 'status']], { 'font-scale': 0.7, 'text-color': '#fff' } ], 'text-variable-anchor': ['top', 'bottom', 'left', 'right'], 'text-radial-offset': 1, 'text-justify': 'auto', 'text-font': ['Open Sans Semibold'] }, 'paint': { 'text-color': '#fff', 'text-halo-color': '#333', 'text-halo-width': 1, 'text-halo-blur': 1, 'text-opacity': ['match',['get', 'status'],'Kayıp',0.8,'Toprak Altında',0.8,'Su Altında',0.8,/* other */ 1] }, }); //Circle 2 map.addLayer({ 'id': 'place', 'source': 'markers', 'type': 'circle', 'minzoom': 12, 'paint': { 'circle-radius': [ 'match', ['get', 'cat'], 'Anıt Yapı', 9, 'Antik Yapı', 9, 'Askeri Yapı',9, 'Ulaşım Yapısı', 9, 'Dini Yapı', 9, 'Doğal Varlık', 9, 'Eğitim Yapıı', 9, 'Endüstri Yapısı', 9, 'İdari Yapı', 9, 'Sivil Yapı', 9, 'Sosyal Yapı', 9, 'Su Yapısı', 9, 'Ticari Yapı', 9, 'Yerleşim', 15, /* other */ 9 ], 'circle-color': [ 'match', ['get', 'cat'], 'Anıt Yapı', '#D73027', 'Antik Yapı', '#FBF1F1', 'Askeri Yapı','#749C6E', 'Ulaşım Yapısı', '#0084A1', 'Dini Yapı', '#895DE4', 'Doğal Varlık', '#A9E45D', 'Eğitim Yapıı', '#FF8181', 'Endüstri Yapısı', '#DBFF00', 'İdari Yapı', '#FF8C21', 'Sivil Yapı', '#BECAB7', 'Sosyal Yapı', '#79FFCF', 'Su Yapısı', '#92D1DF', 'Ticari Yapı', '#F7F9AB', 'Yerleşim', '#000000', /* other */ ' #fee090' ], 'circle-stroke-color': 'black', 'circle-stroke-width': 0.5, 'circle-opacity': ['match',['get', 'status'],'Kayıp',0.5,'Toprak Altında',0.5,'Su Altında',0.5,/* other */ 1] }, 'layout': { // Make the layer visible by default. 'visibility': 'visible' } }); //Hover map.addLayer({ 'id': 'placehover', 'type': 'circle', 'source': 'markers', 'paint': { // 'circle-radius': {'base': 2,'stops': [[10, 10], [15, 50], [22, 100]]}, 'circle-radius': 10, 'circle-opacity': 0.8, 'circle-pitch-alignment': 'map', 'circle-pitch-scale': 'map', 'circle-color': '#000' }, "filter": ["==", "id", ""] }); //Highlight map.addLayer({ 'id': 'placehighlight', 'type': 'circle', 'source': 'markers', 'paint': { // 'circle-radius': {'base': 2,'stops': [[10, 10], [15, 50], [22, 100]]}, 'circle-radius': 22, 'circle-opacity': 0.5, 'circle-pitch-alignment': 'map', 'circle-pitch-scale': 'map', 'circle-stroke-color': '#FF6666', 'circle-stroke-width': 0, 'circle-color': '#fff' }, "filter": ["==", "id", ""] }); //Intensity map.addLayer({ 'id': 'placeheat', 'type': 'heatmap', 'source': 'markers', 'layout': { // Make the layer visible by default. 'visibility': 'visible', }, 'maxzoom': 18, 'paint': { 'heatmap-weight': 1, 'heatmap-intensity': [ 'interpolate', ['linear'], ['zoom'], 0, 1, 20, 3 ], 'heatmap-color': [ 'interpolate', ['linear'], ['heatmap-density'], 0, 'rgba(236,222,239,0)', 0.2, 'rgb(208,209,230)', 0.4, 'rgb(166,189,219)', 0.6, 'rgb(103,169,207)', 0.8, 'rgb(28,144,153)' ], 'heatmap-radius': [ 'interpolate', ['linear'], ['zoom'], 0, 2, 18, 20 ], 'heatmap-opacity': [ 'interpolate', ['linear'], ['zoom'], 14, 1, 18, 0 ] } }); }); map.on('load', function () { // Check Geolocation parameter in URL Exist (?g=1) const params = new Proxy(new URLSearchParams(window.location.search), { get: (searchParams, prop) => searchParams.get(prop), }); // Get the value of "some_key" in eg "https://example.com/?g=some_value" let value = params.g; // "some_value" if(value) { //console.log('locate me ' + value); geolocate.trigger(); } else { //console.log('not locate me'); } const clickHandler = e => { map.setFilter("placehighlight", ["==", "id", e.features[0].properties.id]); let coordinates = e.lngLat; const currentZoom = map.getZoom(); if (currentZoom > 16) { var zoom = currentZoom; } else { var zoom = 16; } map.flyTo({ center: coordinates, zoom: zoom, speed: 0.3, curve: 1, essential: true }); if ("ontouchstart" in document.documentElement) { document.getElementById('modal').click(); } else { //console.log("your device is NOT a touch device"); document.getElementById('modal').click(); } } map.on('click', 'place', clickHandler); map.on('click', 'title', clickHandler); const enterHandler = e => { // Change the cursor to a pointer when the mouse is over the markers layer. map.getCanvas().style.cursor = 'pointer'; //// https://jsfiddle.net/PBrockmann/xwp7ns7h/ map.setFilter("placehover", ["==", "id", e.features[0].properties.id]); let coordinates = e.features[0].geometry.coordinates.slice(); const currentZoom = map.getZoom(); if ("ontouchstart" in document.documentElement) { //console.log("your device is a touch screen device."); let description = '<a id="modal" onclick="placeModalFunction(\'' + e.features[0].properties.id + '\')" >placeTo</a>'; let getElementPlace = document.getElementById('placeTo'); getElementPlace.innerHTML = description; } else { //console.log("your device is NOT a touch device"); if (currentZoom > 16) { // zoom in let description = '<a id="modal" onclick="placeModalFunction(\'' + e.features[0].properties.id + '\')" >placeTo</a>'; let getElementPlace = document.getElementById('placeTo'); getElementPlace.innerHTML = description; } else { // zoom out let description = '<a id="modal" class="popup-title" onclick="placeModalFunction(\'' + e.features[0].properties.id + '\')" >' + e.features[0].properties.name + '</a> <br> <span class="popup-small">' + e.features[0].properties.cat + '</span>'; popup.setLngLat(coordinates).setHTML(description).addTo(map); } } } map.on('mouseenter', 'place', enterHandler); map.on('mouseenter', 'title', enterHandler); const leaveHandler = e => { // Change it back to a pointer when it leaves. map.getCanvas().style.cursor = ''; map.setFilter("placehover", ["==", "id", ""]); popup.remove(); } map.on('mouseleave', 'place', leaveHandler); map.on('mouseleave', 'title', leaveHandler); map.on('contextmenu', function(e) { let popup = new mapboxgl.Popup({ closeOnClick: true }) .setLngLat(e.lngLat) .setHTML(e.lngLat.lat + ',</br>' + e.lngLat.lng) .addTo(map); //new mapboxgl.Marker().setLngLat(e.lngLat).addTo(map); //console.log(e.lngLat.lat + ',' + e.lngLat.lng); }); map.on('moveend', function() { //// Filter Map const features = map.queryRenderedFeatures({ layers: ['place'] }); if (features) { const uniqueFeatures = getUniqueFeatures(features, 'id'); // Populate features for the listing overlay. renderListings(uniqueFeatures); // Clear the input container filterEl.value = ''; // Store the current features in sn `markers` variable to // later use for filtering on `keyup`. markers = uniqueFeatures; //console.log(markers); } // Update localStorage localStorage.setItem('center', map.getCenter().toArray()); localStorage.setItem('zoom', map.getZoom()); }); //// Filter Map filterEl.addEventListener('keyup', function(e) { const value = normalize(e.target.value); // Filter visible features that match the input value. const filtered = []; for (const feature of markers) { const name = normalize(feature.properties.name || ''); const code = normalize(feature.properties.abbrev || ''); if (name.includes(value) || code.includes(value)) { filtered.push(feature); } } // Populate the sidebar with filtered results renderListings(filtered); // Set the filter to populate features into the layer. if (filtered.length) { map.setFilter('place', [ 'match', ['get', 'id'], filtered.map(function(feature) { return feature.properties.id; }), true, false ]); map.setFilter('title', [ 'match', ['get', 'id'], filtered.map(function(feature) { return feature.properties.id; }), true, false ]); } }); renderListings([]); }); //// Geocoder // Coordinates Geocoder const coordinatesGeocoder = function (query) { // match anything which looks like a decimal degrees coordinate pair let matches = query.match( /^[ ]*(?:Lat: )?(-?\d+\.?\d*)[, ]+(?:Lng: )?(-?\d+\.?\d*)[ ]*$/i ); if (!matches) { return null; } function coordinateFeature(lng, lat) { return { center: [lng, lat], geometry: { type: 'Point', coordinates: [lng, lat] }, place_name: 'Lat: ' + lat + ' Lng: ' + lng, place_type: ['coordinate'], properties: {}, type: 'Feature' }; } let coord1 = Number(matches[1]); let coord2 = Number(matches[2]); let geocodes = []; if (coord1 < -90 || coord1 > 90) { // must be lng, lat geocodes.push(coordinateFeature(coord1, coord2)); } if (coord2 < -90 || coord2 > 90) { // must be lat, lng geocodes.push(coordinateFeature(coord2, coord1)); } if (geocodes.length === 0) { // else could be either lng, lat or lat, lng geocodes.push(coordinateFeature(coord2, coord1)); geocodes.push(coordinateFeature(coord1, coord2)); } return geocodes; }; const geocoder = new MapboxGeocoder({ accessToken: mapboxgl.accessToken, localGeocoder: coordinatesGeocoder, zoom: 14, placeholder: 'Adres ara', mapboxgl: mapboxgl }); document.getElementById('geocoder').appendChild(geocoder.onAdd(map)); //// Locate const geolocate = new mapboxgl.GeolocateControl({ positionOptions: { enableHighAccuracy: true }, trackUserLocation: true }); map.addControl(geolocate,'bottom-right'); // Get Address geolocate.on('geolocate', function(e) { let lon = e.coords.longitude; let lat = e.coords.latitude let position = [lon, lat]; //console.log(position); let reverse = 'https://nominatim.openstreetmap.org/reverse?lat=' + lat + '&lon=' + lon + '&format=geojson'; //console.log(reverse); fetch(reverse) .then(reverse_response => reverse_response.json()) .then(reverse_data => { let reverse_locations = reverse_data; let location = reverse_locations.features[0].properties.display_name; //console.log(location); document.getElementsByClassName('mapboxgl-ctrl-geocoder--input')[0].placeholder = location; }).catch(error => console.error(error)) }); //// Map Controls map.addControl(new mapboxgl.NavigationControl(), 'bottom-right'); //// Local Storage Layer if (localStorage.getItem('layer') === null) { localStorage.setItem('layer_id', 'esri_satellite'); } else { if (localStorage.getItem('layer_id') === 'esri_satellite') { // } else { var layer = localStorage.getItem('layer'); map.setStyle(layer); } } // Check if hashtag exist if (checkhash === 0) { //console.log('Hash yok'); // Local Storage Center if (localStorage.getItem('center') === null) { localStorage.setItem('center', map.getCenter().toArray()); } else { let center = localStorage.getItem('center'); let latLng = center.split(','); map.setCenter(latLng); } // Local Storage Zoom if (localStorage.getItem('zoom') === null) { localStorage.setItem('zoom', map.getZoom()); } else { let center = localStorage.getItem('zoom'); //let latLng = center.split(","); map.zoomTo(center); } } else { //console.log('Hash var'); }</script> <div class="modal" id="button_options" tabindex="-1" aria-labelledby="button_optionsTitle" aria-hidden="true"><div class="modal-dialog modal-options"><div class="modal-content"><div class="modal-body bg-white rounded"><div id="layer_menu" class="layer_menu"></div> <script>// Map Layers themepath = 'https://kulturenvanteri.com/wp-content/themes/ke'; // Layer Menu maplayers = [{ label: 'Satellite - Esri', id: 'esri_satellite', source: themepath + '/map/sat_esri.json' }, // { // label: 'Satellite - Bing', // id: 'bing_satellite', // source: themepath + '/map/sat_bing.json' // }, // { // label: 'Satellite - Maptiler', // id: 'maptiler_satellite', // source: 'https://api.maptiler.com/maps/hybrid/style.json?key=9vGulB01GLnb2fKleiwl' // }, { label: 'Satellite - Google', id: 'google_satellite', source: themepath + '/map/sat_google.json' }, { label: 'Satellite - Mapbox', id: 'mapbox_satellite', source: 'mapbox://styles/mapbox/satellite-v9' }, { label: 'Street Light - Carto', id: 'carto_positron', source: 'https://basemaps.cartocdn.com/gl/positron-gl-style/style.json' }, { label: 'Voyager - Carto', id: 'carto_voyager', source: 'https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json' }, { label: 'Street Dark - Carto', id: 'carto_dark_matter', source: 'https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json' }, { label: 'Street - Kültür Envanteri', id: 'maptiler_ke', source: themepath + '/map/street_ke.json' }, { label: 'Street - Maptiler', id: 'maptiler_street', source: themepath + '/map/style.json' } ]; //// Layer Menu const menu = document.getElementById('layer_menu'); // Switch Map Layers maplayers.forEach(function(l) { let button = document.createElement('button'); button.className = 'layer'; button.id = l.id; button.textContent = l.label; button.addEventListener('click', function() { let active_button = document.querySelector('.layer_active'); if (active_button) { active_button.classList.remove('layer_active'); active_button.disabled = false; } this.classList.add('layer_active'); this.disabled = true; map.setStyle(l.source); localStorage.setItem('layer', l.source); localStorage.setItem('layer_id', l.id); }); menu.appendChild(button); }); // Local Storage'den layer_id al let layerId = localStorage.getItem('layer_id'); // Eğer layer_id yoksa, varsayılan değeri ata if (!layerId) { layerId = "esri_satellite"; // Varsayılan değer } // Seçiciyi oluştur ve sınıfı ekle let defaultButton = document.querySelector('#' + layerId); defaultButton.classList.add('layer_active');</script> </div></div></div></div><div class="loader" id="loader"> <svg version="1.1" id="loader-svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="40px" height="40px" viewBox="0 0 40 40" enable-background="new 0 0 40 40" xml:space="preserve"> <path opacity="0.3" fill="#fff" d="M20.201,5.169c-8.254,0-14.946,6.692-14.946,14.946c0,8.255,6.692,14.946,14.946,14.946 s14.946-6.691,14.946-14.946C35.146,11.861,28.455,5.169,20.201,5.169z M20.201,31.749c-6.425,0-11.634-5.208-11.634-11.634 c0-6.425,5.209-11.634,11.634-11.634c6.425,0,11.633,5.209,11.633,11.634C31.834,26.541,26.626,31.749,20.201,31.749z" /> <path fill="#000" d="M26.013,10.047l1.654-2.866c-2.198-1.272-4.743-2.012-7.466-2.012h0v3.312h0 C22.32,8.481,24.301,9.057,26.013,10.047z"> <animateTransform attributeType="xml" attributeName="transform" type="rotate" from="0 20 20" to="360 20 20" dur="0.5s" repeatCount="indefinite" /> </path> </svg></div> <script>// filter-loader (function () { document.addEventListener('facetwp-refresh', function () { var loaders = document.querySelectorAll('.loader'); loaders.forEach(function (loader) { loader.style.display = 'block'; }); }); document.addEventListener('facetwp-loaded', function () { var loaders = document.querySelectorAll('.loader'); loaders.forEach(function (loader) { loader.style.display = 'none'; }); }); })();</script> <div class="modal" id="ShareModal" tabindex="-1" aria-labelledby="button_shareTitle" aria-hidden="true"><div class="modal-dialog modal-menu" role="document"><div class="modal-content"><div class="modal-body"><p class="small d-none" id="url"></p><p class="p" id="url">Bağlantıyı kopyala</p><div class="copy-text input-group pb-3"> <input readonly inputmode="none" type="text" id="input-url" class="text form-control" value="https://kulturenvanteri.com" /> <button class="btn btn-secondary rounded-0"> <i class="fa fa-clone"></i> </button></div><p class="p pt-3" id="url">Paylaş</p><a title="Twitter" id="twitter-share" class="btn shadow-lg-hard btn-sm btn-circle btn-primary ms-1" href="/" target="_blank"> <svg width="16" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"/></svg> </a> <a title="Facebook" id="facebook-share" class="btn shadow-lg-hard btn-sm btn-circle btn-primary ms-1" href="/" target="_blank"> <svg width="16" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M504 256C504 119 393 8 256 8S8 119 8 256c0 123.78 90.69 226.38 209.25 245V327.69h-63V256h63v-54.64c0-62.15 37-96.48 93.67-96.48 27.14 0 55.52 4.84 55.52 4.84v61h-31.28c-30.8 0-40.41 19.12-40.41 38.73V256h68.78l-11 71.69h-57.78V501C413.31 482.38 504 379.78 504 256z"/></svg> </a> <a title="Telegram" id="telegram-share" class="btn shadow-lg-hard btn-sm btn-circle btn-primary ms-1" href="/" target="_blank"> <svg width="16" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512"><path d="M248,8C111.033,8,0,119.033,0,256S111.033,504,248,504,496,392.967,496,256,384.967,8,248,8ZM362.952,176.66c-3.732,39.215-19.881,134.378-28.1,178.3-3.476,18.584-10.322,24.816-16.948,25.425-14.4,1.326-25.338-9.517-39.287-18.661-21.827-14.308-34.158-23.215-55.346-37.177-24.485-16.135-8.612-25,5.342-39.5,3.652-3.793,67.107-61.51,68.335-66.746.153-.655.3-3.1-1.154-4.384s-3.59-.849-5.135-.5q-3.283.746-104.608,69.142-14.845,10.194-26.894,9.934c-8.855-.191-25.888-5.006-38.551-9.123-15.531-5.048-27.875-7.717-26.8-16.291q.84-6.7,18.45-13.7,108.446-47.248,144.628-62.3c68.872-28.647,83.183-33.623,92.511-33.789,2.052-.034,6.639.474,9.61,2.885a10.452,10.452,0,0,1,3.53,6.716A43.765,43.765,0,0,1,362.952,176.66Z"/></svg> </a> <a title="Whatsapp" id="whatsapp-share" class="btn shadow-lg-hard btn-sm btn-circle btn-primary ms-1" href="/" target="_blank"> <svg width="16" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z"/></svg> </a></div></div></div></div> <script>// URL paylaşım linklerini güncelleyen fonksiyon function updateShareLinks() { var getURL = document.URL; document.getElementById("input-url").value = getURL; document.getElementById("twitter-share").href = 'https://twitter.com/intent/tweet?url=' + encodeURIComponent(getURL); document.getElementById("telegram-share").href = 'https://telegram.me/share/url?url=' + encodeURIComponent(getURL) + '&text='; document.getElementById("facebook-share").href = 'https://www.facebook.com/sharer.php?u=' + encodeURIComponent(getURL); document.getElementById("whatsapp-share").href = 'https://wa.me/?text=' + encodeURIComponent(getURL); } updateShareLinks(); // FacetWP yüklendiğinde URL paylaşım linklerini güncelle document.addEventListener('facetwp-loaded', function() { updateShareLinks(); }); // Kopyalama işlemini yöneten fonksiyon function handleCopyAction(button) { let input = button.parentElement.querySelector("input.text"); input.select(); document.execCommand("copy"); button.parentElement.classList.add("active"); window.getSelection().removeAllRanges(); setTimeout(function () { button.parentElement.classList.remove("active"); }, 2500); } // Kopyalama butonlarına tıklama olaylarını dinleme let copyText = document.querySelector(".copy-text"); copyText.querySelector("button").addEventListener("click", function () { handleCopyAction(this); }); copyText.querySelector("input").addEventListener("click", function () { handleCopyAction(this); }); // Harita hareketi sona erdiğinde URL paylaşım linklerini güncelle map.on('moveend', updateShareLinks);</script> <div class="modal" id="placeDetailModal" tabindex="-1" aria-labelledby="placeModal" aria-hidden="true"><div class="modal-dialog modal-place-w50"><div class="modal-content"><div class="figure-thumb bg-primary rounded-top" id="featured-image-place" style="min-height:40vh;background-size:cover;background-position:center;"></div><div class="modal-body"><h2 id="placeTitle"></h2><div class="small pt-3 pb-5" id="placeAlsoKnownAs"></div><ul class="small pb-5"><li id="placeTypeNames"></li><li id="placeCultureNames"></li><li id="placeCenturyNames"></li><li id="placeThemeNames"></li><li id="placeAdministrativeNames"></li><li id="placeStatus"></li></ul><div id="placeDetailContent" class="mw-parser-output"></div><div id="placeWikitext"></div><div id="placeWikimore"></div><div class="d-none" id="placeGeojson"></div><div class="card-columns card-columns-wide ke-gallery pt-3" id="mediaID"></div></div><div class="modal-footer"><div id="moreInfo"></div><div id="edit"></div></div></div></div></div> <script>const modalPlace = new bootstrap.Modal(document.getElementById('placeDetailModal'), { keyboard: false }); document.getElementById('placeDetailModal').addEventListener('hidden.bs.modal', () => { const loading = '<div class="spinner-grow spinner-grow-md" role="status"><span class="visually-hidden">...</span></div>'; const resetFields = ['placeTitle', 'placeAlsoKnownAs', 'placeDetailContent', 'placeTypeNames', 'placeCultureNames', 'placeCenturyNames', 'placeThemeNames', 'placeAdministrativeNames', 'placeStatus', 'mediaID', 'placeWikitext', 'placeWikimore' ]; resetFields.forEach(field => document.getElementById(field).innerHTML = ''); document.getElementById('featured-image-place').style.backgroundImage = 'url()'; }); async function placeModalFunction(placeId) { modalPlace.toggle(); const placeDetails = await fetch(`${site_url}/wp-json/ke/place/${placeId}`).then(res => res.json()); updatePlaceDetails(placeDetails); await updateWikipedia(placeDetails); await updatePlaceMedia(placeId, placeDetails); updateGeoJSON(placeDetails); } function updatePlaceDetails(placeDetails) { const { id, slug, title, place_also_known_as, content, featured_media, place_type, place_culture, place_century, place_theme, place_administrative, place_status } = placeDetails; document.getElementById('placeTitle').innerHTML = `<a href="${site_url}/yer/${slug}">${title}</a>`; document.getElementById('placeAlsoKnownAs').innerHTML = place_also_known_as || ''; document.getElementById('placeDetailContent').innerHTML = content; document.getElementById('moreInfo').innerHTML = `<a class="btn btn-primary" href="${site_url}/yer/?p=${id}">Daha fazla bilgi</a>`; if (featured_media && featured_media.large) { document.getElementById('featured-image-place').style.backgroundImage = `url(${featured_media.large})`; document.getElementById('featured-image-place').style.display = 'block'; } else { document.getElementById('featured-image-place').style.display = 'none'; } document.getElementById('placeTypeNames').innerHTML = place_type ? `<b>Tür: </b>${place_type}` : ''; document.getElementById('placeCultureNames').innerHTML = place_culture ? `<b>Kültür: </b>${place_culture}` : ''; document.getElementById('placeCenturyNames').innerHTML = place_century ? `<b>Yüzyıl: </b>${place_century}` : ''; document.getElementById('placeThemeNames').innerHTML = place_theme ? `<b>Tema: </b>${place_theme}` : ''; document.getElementById('placeAdministrativeNames').innerHTML = place_administrative ? `<b>Bölge: </b>${place_administrative}` : ''; document.getElementById('placeStatus').innerHTML = place_status ? `<b>Durum: </b>${place_status}` : ''; } async function updateWikipedia(placeDetails) { const { place_wikipedia } = placeDetails; if (!place_wikipedia) return; const entity = await fetch( `https://www.wikidata.org/w/api.php?action=wbgetentities&sites=trwiki&titles=${place_wikipedia}&normalize=1&format=json&props=sitelinks&origin=*` ) .then(res => res.json()).then(data => data.entities); for (let i in entity) { const wikiTitle = lang === 'en' ? entity[i].sitelinks.enwiki.title : entity[i].sitelinks.trwiki.title; const wikiData = await fetch( `https://${lang}.wikipedia.org/w/api.php?action=parse&page=${wikiTitle}&prop=text§ion=0&format=json&origin=*` ) .then(res => res.json()); const wikitext = wikiData.parse.text["*"].replaceAll('<a href="/wiki', `<a target="_blank" href="https://${lang}.m.wikipedia.org/wiki`); document.getElementById('placeWikitext').innerHTML = wikitext; document.getElementById('placeWikimore').innerHTML = ` <a target="_blank" class="iframe-popup small" href="https://${lang}.m.wikipedia.org/wiki/${wikiTitle}">✶ Vikipedi</a> - <a target="_blank" class="iframe-popup small" href="https://${lang}.m.wikipedia.org/wiki/${wikiTitle}#/editor/0">Düzenle</a>`; } } async function updatePlaceMedia(placeId, placeDetails) { if (!placeDetails.featured_media.large) return; const mediaData = await fetch( `${site_url}/wp-json/wp/v2/media?parent=${placeId}&_fields=title,source_url,caption,media_creator,media_date,media_details,media_source` ) .then(res => res.json()); const mediaList = mediaData.map(media => ` <figure class="card figure bg-primary" itemprop="associatedMedia" itemscope itemtype="http://schema.org/ImageObject"> <a itemprop="contentUrl" data-pswp-width="${media.media_details.width}" data-pswp-height="${media.media_details.height}" href="${media.source_url}" title="${media.title.rendered}"> <img class="figure-img img-fluid" onerror="this.style.display='none'" itemprop="thumbnail" src="${media.media_details.sizes.medium.source_url}" alt="${media.title.rendered}"> </a> <figcaption class="figure-caption-single d-flex flex-row d-none" itemprop="caption description"> ${media.caption?.rendered ? media.caption.rendered.replace(/<p>|<\/p>/g, '') : ''} ${media.media_creator ? `<span class="my-1">● ${media.media_creator}</span> ` : ''} ${media.media_date ? `<span class="my-1">● ${media.media_date}</span>` : ''} ${media.media_source ? `<span class="my-1">● <a href="${media.media_source}" target="_blank" rel="noopener noreferrer">Kaynak</a></span>` : ''} </figcaption> <div class="card-body p-2 small d-none"> ${media.media_creator}<br><b>Tarih: </b>${media.media_date} </div> </figure> `).join(''); document.getElementById('mediaID').innerHTML = mediaList; } function updateGeoJSON(placeDetails) { if (!placeDetails.geojson) return; const geojsonContent = placeDetails.geojson.replace(/\\/g, ""); document.getElementById('placeGeojson').innerHTML = geojsonContent; } document.addEventListener('DOMContentLoaded', () => { let lightbox_single_modal = new PhotoSwipeLightbox({ gallery: '#mediaID', children: 'figure', pswpModule: PhotoSwipe, // Add a function to retrieve the caption for each image getCaptionHTMLFn: (slide) => { // Locate the caption inside the figure element const figure = slide.data.element.closest('figure'); const caption = figure.querySelector('figcaption'); return caption ? caption.innerHTML : ''; // Return caption if exists, otherwise empty } }); lightbox_single_modal.on('uiRegister', function() { lightbox_single_modal.pswp.ui.registerElement({ name: 'modal_place', order: 9, isButton: false, appendTo: 'root', html: 'Caption text', onInit: (el, pswp) => { lightbox_single_modal.pswp.on('change', () => { const currSlideElement = lightbox_single_modal.pswp.currSlide .data.element; let captionHTML = ''; if (currSlideElement) { // Get the figcaption content from the figure element const hiddenCaption = currSlideElement.closest('figure') .querySelector('.figure-caption-single'); if (hiddenCaption) { captionHTML = hiddenCaption.innerHTML; } else { // Fallback to alt attribute if no caption is found captionHTML = currSlideElement.querySelector('img') .getAttribute('alt'); } } // Update caption content in the UI el.innerHTML = captionHTML || ''; }); } }); }); lightbox_single_modal.init(); });</script> </div> <template id="tp-language" data-tp-language="tr_TR"></template><style>.searchwp-live-search-results { opacity: 0; transition: opacity .25s ease-in-out; -moz-transition: opacity .25s ease-in-out; -webkit-transition: opacity .25s ease-in-out; height: 0; overflow: hidden; z-index: 9999995; /* Exceed SearchWP Modal Search Form overlay. */ position: absolute; display: none; } .searchwp-live-search-results-showing { display: block; opacity: 1; height: auto; overflow: auto; } .searchwp-live-search-no-results { padding: 3em 2em 0; text-align: center; } .searchwp-live-search-no-min-chars:after { content: "Continue typing"; display: block; text-align: center; padding: 2em 2em 0; }</style> <script>var _SEARCHWP_LIVE_AJAX_SEARCH_BLOCKS = true; var _SEARCHWP_LIVE_AJAX_SEARCH_ENGINE = 'default'; var _SEARCHWP_LIVE_AJAX_SEARCH_CONFIG = 'default';</script> <script type="text/javascript">var algolia = {"debug":false,"application_id":"F4A5A0LFG9","search_api_key":"40bb70855d78d2928c09d6ddf6bc8fd2","powered_by_enabled":true,"query":"","autocomplete":{"sources":[],"input_selector":"input[name='s']:not(.no-autocomplete):not(#adminbar-search)"},"indices":{"searchable_posts":{"name":"ke_searchable_posts","id":"searchable_posts","enabled":true,"replicas":[]}}};</script><script src="https://cdn.jsdelivr.net/npm/algoliasearch@4.15.0/dist/algoliasearch-lite.umd.js" id="algoliasearch-js"></script> <script src="https://cdn.jsdelivr.net/npm/instantsearch.js@4/dist/instantsearch.production.min.js" id="instantsearch-js"></script> <script id="swp-live-search-client-js-extra">var searchwp_live_search_params = []; searchwp_live_search_params = {"ajaxurl":"https:\/\/kulturenvanteri.com\/wp-admin\/admin-ajax.php","origin_id":13171,"config":{"default":{"engine":"default","input":{"delay":50,"min_chars":3},"results":{"position":"bottom","width":"auto","offset":{"x":0,"y":0}},"spinner":{"lines":13,"length":38,"radius":65,"scale":0.35}}},"msg_no_config_found":"No valid SearchWP Live Search configuration found!","aria_instructions":"When autocomplete results are available use up and down arrows to review and enter to go to the desired page. Touch device users, explore by touch or with swipe gestures."};;</script> <script data-no-optimize="1">!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).LazyLoad=e()}(this,function(){"use strict";function e(){return(e=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n,a=arguments[e];for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(t[n]=a[n])}return t}).apply(this,arguments)}function i(t){return e({},it,t)}function o(t,e){var n,a="LazyLoad::Initialized",i=new t(e);try{n=new CustomEvent(a,{detail:{instance:i}})}catch(t){(n=document.createEvent("CustomEvent")).initCustomEvent(a,!1,!1,{instance:i})}window.dispatchEvent(n)}function l(t,e){return t.getAttribute(gt+e)}function c(t){return l(t,bt)}function s(t,e){return function(t,e,n){e=gt+e;null!==n?t.setAttribute(e,n):t.removeAttribute(e)}(t,bt,e)}function r(t){return s(t,null),0}function u(t){return null===c(t)}function d(t){return c(t)===vt}function f(t,e,n,a){t&&(void 0===a?void 0===n?t(e):t(e,n):t(e,n,a))}function _(t,e){nt?t.classList.add(e):t.className+=(t.className?" ":"")+e}function v(t,e){nt?t.classList.remove(e):t.className=t.className.replace(new RegExp("(^|\\s+)"+e+"(\\s+|$)")," ").replace(/^\s+/,"").replace(/\s+$/,"")}function g(t){return t.llTempImage}function b(t,e){!e||(e=e._observer)&&e.unobserve(t)}function p(t,e){t&&(t.loadingCount+=e)}function h(t,e){t&&(t.toLoadCount=e)}function n(t){for(var e,n=[],a=0;e=t.children[a];a+=1)"SOURCE"===e.tagName&&n.push(e);return n}function m(t,e){(t=t.parentNode)&&"PICTURE"===t.tagName&&n(t).forEach(e)}function a(t,e){n(t).forEach(e)}function E(t){return!!t[st]}function I(t){return t[st]}function y(t){return delete t[st]}function A(e,t){var n;E(e)||(n={},t.forEach(function(t){n[t]=e.getAttribute(t)}),e[st]=n)}function k(a,t){var i;E(a)&&(i=I(a),t.forEach(function(t){var e,n;e=a,(t=i[n=t])?e.setAttribute(n,t):e.removeAttribute(n)}))}function L(t,e,n){_(t,e.class_loading),s(t,ut),n&&(p(n,1),f(e.callback_loading,t,n))}function w(t,e,n){n&&t.setAttribute(e,n)}function x(t,e){w(t,ct,l(t,e.data_sizes)),w(t,rt,l(t,e.data_srcset)),w(t,ot,l(t,e.data_src))}function O(t,e,n){var a=l(t,e.data_bg_multi),i=l(t,e.data_bg_multi_hidpi);(a=at&&i?i:a)&&(t.style.backgroundImage=a,n=n,_(t=t,(e=e).class_applied),s(t,ft),n&&(e.unobserve_completed&&b(t,e),f(e.callback_applied,t,n)))}function N(t,e){!e||0<e.loadingCount||0<e.toLoadCount||f(t.callback_finish,e)}function C(t,e,n){t.addEventListener(e,n),t.llEvLisnrs[e]=n}function M(t){return!!t.llEvLisnrs}function z(t){if(M(t)){var e,n,a=t.llEvLisnrs;for(e in a){var i=a[e];n=e,i=i,t.removeEventListener(n,i)}delete t.llEvLisnrs}}function R(t,e,n){var a;delete t.llTempImage,p(n,-1),(a=n)&&--a.toLoadCount,v(t,e.class_loading),e.unobserve_completed&&b(t,n)}function T(o,r,c){var l=g(o)||o;M(l)||function(t,e,n){M(t)||(t.llEvLisnrs={});var a="VIDEO"===t.tagName?"loadeddata":"load";C(t,a,e),C(t,"error",n)}(l,function(t){var e,n,a,i;n=r,a=c,i=d(e=o),R(e,n,a),_(e,n.class_loaded),s(e,dt),f(n.callback_loaded,e,a),i||N(n,a),z(l)},function(t){var e,n,a,i;n=r,a=c,i=d(e=o),R(e,n,a),_(e,n.class_error),s(e,_t),f(n.callback_error,e,a),i||N(n,a),z(l)})}function G(t,e,n){var a,i,o,r,c;t.llTempImage=document.createElement("IMG"),T(t,e,n),E(c=t)||(c[st]={backgroundImage:c.style.backgroundImage}),o=n,r=l(a=t,(i=e).data_bg),c=l(a,i.data_bg_hidpi),(r=at&&c?c:r)&&(a.style.backgroundImage='url("'.concat(r,'")'),g(a).setAttribute(ot,r),L(a,i,o)),O(t,e,n)}function D(t,e,n){var a;T(t,e,n),a=e,e=n,(t=It[(n=t).tagName])&&(t(n,a),L(n,a,e))}function V(t,e,n){var a;a=t,(-1<yt.indexOf(a.tagName)?D:G)(t,e,n)}function F(t,e,n){var a;t.setAttribute("loading","lazy"),T(t,e,n),a=e,(e=It[(n=t).tagName])&&e(n,a),s(t,vt)}function j(t){t.removeAttribute(ot),t.removeAttribute(rt),t.removeAttribute(ct)}function P(t){m(t,function(t){k(t,Et)}),k(t,Et)}function S(t){var e;(e=At[t.tagName])?e(t):E(e=t)&&(t=I(e),e.style.backgroundImage=t.backgroundImage)}function U(t,e){var n;S(t),n=e,u(e=t)||d(e)||(v(e,n.class_entered),v(e,n.class_exited),v(e,n.class_applied),v(e,n.class_loading),v(e,n.class_loaded),v(e,n.class_error)),r(t),y(t)}function $(t,e,n,a){var i;n.cancel_on_exit&&(c(t)!==ut||"IMG"===t.tagName&&(z(t),m(i=t,function(t){j(t)}),j(i),P(t),v(t,n.class_loading),p(a,-1),r(t),f(n.callback_cancel,t,e,a)))}function q(t,e,n,a){var i,o,r=(o=t,0<=pt.indexOf(c(o)));s(t,"entered"),_(t,n.class_entered),v(t,n.class_exited),i=t,o=a,n.unobserve_entered&&b(i,o),f(n.callback_enter,t,e,a),r||V(t,n,a)}function H(t){return t.use_native&&"loading"in HTMLImageElement.prototype}function B(t,i,o){t.forEach(function(t){return(a=t).isIntersecting||0<a.intersectionRatio?q(t.target,t,i,o):(e=t.target,n=t,a=i,t=o,void(u(e)||(_(e,a.class_exited),$(e,n,a,t),f(a.callback_exit,e,n,t))));var e,n,a})}function J(e,n){var t;et&&!H(e)&&(n._observer=new IntersectionObserver(function(t){B(t,e,n)},{root:(t=e).container===document?null:t.container,rootMargin:t.thresholds||t.threshold+"px"}))}function K(t){return Array.prototype.slice.call(t)}function Q(t){return t.container.querySelectorAll(t.elements_selector)}function W(t){return c(t)===_t}function X(t,e){return e=t||Q(e),K(e).filter(u)}function Y(e,t){var n;(n=Q(e),K(n).filter(W)).forEach(function(t){v(t,e.class_error),r(t)}),t.update()}function t(t,e){var n,a,t=i(t);this._settings=t,this.loadingCount=0,J(t,this),n=t,a=this,Z&&window.addEventListener("online",function(){Y(n,a)}),this.update(e)}var Z="undefined"!=typeof window,tt=Z&&!("onscroll"in window)||"undefined"!=typeof navigator&&/(gle|ing|ro)bot|crawl|spider/i.test(navigator.userAgent),et=Z&&"IntersectionObserver"in window,nt=Z&&"classList"in document.createElement("p"),at=Z&&1<window.devicePixelRatio,it={elements_selector:".lazy",container:tt||Z?document:null,threshold:300,thresholds:null,data_src:"src",data_srcset:"srcset",data_sizes:"sizes",data_bg:"bg",data_bg_hidpi:"bg-hidpi",data_bg_multi:"bg-multi",data_bg_multi_hidpi:"bg-multi-hidpi",data_poster:"poster",class_applied:"applied",class_loading:"litespeed-loading",class_loaded:"litespeed-loaded",class_error:"error",class_entered:"entered",class_exited:"exited",unobserve_completed:!0,unobserve_entered:!1,cancel_on_exit:!0,callback_enter:null,callback_exit:null,callback_applied:null,callback_loading:null,callback_loaded:null,callback_error:null,callback_finish:null,callback_cancel:null,use_native:!1},ot="src",rt="srcset",ct="sizes",lt="poster",st="llOriginalAttrs",ut="loading",dt="loaded",ft="applied",_t="error",vt="native",gt="data-",bt="ll-status",pt=[ut,dt,ft,_t],ht=[ot],mt=[ot,lt],Et=[ot,rt,ct],It={IMG:function(t,e){m(t,function(t){A(t,Et),x(t,e)}),A(t,Et),x(t,e)},IFRAME:function(t,e){A(t,ht),w(t,ot,l(t,e.data_src))},VIDEO:function(t,e){a(t,function(t){A(t,ht),w(t,ot,l(t,e.data_src))}),A(t,mt),w(t,lt,l(t,e.data_poster)),w(t,ot,l(t,e.data_src)),t.load()}},yt=["IMG","IFRAME","VIDEO"],At={IMG:P,IFRAME:function(t){k(t,ht)},VIDEO:function(t){a(t,function(t){k(t,ht)}),k(t,mt),t.load()}},kt=["IMG","IFRAME","VIDEO"];return t.prototype={update:function(t){var e,n,a,i=this._settings,o=X(t,i);{if(h(this,o.length),!tt&&et)return H(i)?(e=i,n=this,o.forEach(function(t){-1!==kt.indexOf(t.tagName)&&F(t,e,n)}),void h(n,0)):(t=this._observer,i=o,t.disconnect(),a=t,void i.forEach(function(t){a.observe(t)}));this.loadAll(o)}},destroy:function(){this._observer&&this._observer.disconnect(),Q(this._settings).forEach(function(t){y(t)}),delete this._observer,delete this._settings,delete this.loadingCount,delete this.toLoadCount},loadAll:function(t){var e=this,n=this._settings;X(t,n).forEach(function(t){b(t,e),V(t,n,e)})},restoreAll:function(){var e=this._settings;Q(e).forEach(function(t){U(t,e)})}},t.load=function(t,e){e=i(e);V(t,e)},t.resetStatus=function(t){r(t)},Z&&function(t,e){if(e)if(e.length)for(var n,a=0;n=e[a];a+=1)o(t,n);else o(t,e)}(t,window.lazyLoadOptions),t});!function(e,t){"use strict";function a(){t.body.classList.add("litespeed_lazyloaded")}function n(){console.log("[LiteSpeed] Start Lazy Load Images"),d=new LazyLoad({elements_selector:"[data-lazyloaded]",callback_finish:a}),o=function(){d.update()},e.MutationObserver&&new MutationObserver(o).observe(t.documentElement,{childList:!0,subtree:!0,attributes:!0})}var d,o;e.addEventListener?e.addEventListener("load",n,!1):e.attachEvent("onload",n)}(window,document);</script><script data-optimized="1" src="https://kulturenvanteri.com/wp-content/litespeed/js/c9c64da914140741e1d984dfa13f0e85.js?ver=4116a"></script></body></html> <!-- Page optimized by LiteSpeed Cache @2024-11-24 12:34:00 --> <!-- Page cached by LiteSpeed Cache 6.5.2 on 2024-11-24 12:34:00 -->