a2g_travel_blog/Resources/Public/JavaScript/index.9adfbad3.js

3 lines
15 KiB
JavaScript
Raw Normal View History

2023-12-04 16:40:27 +01:00
var E=Object.defineProperty,G=Object.defineProperties;var U=Object.getOwnPropertyDescriptors;var x=Object.getOwnPropertySymbols;var j=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable;var P=(e,t,s)=>t in e?E(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,O=(e,t)=>{for(var s in t||(t={}))j.call(t,s)&&P(e,s,t[s]);if(x)for(var s of x(t))z.call(t,s)&&P(e,s,t[s]);return e},A=(e,t)=>G(e,U(t));import{F as h,S as f,C as y,a as u,V as g,G as T,b as m,c as w,d as _,P as D,O as V,X as W,T as L,e as N,f as q,g as S,h as Z,i as B,Z as H,M as R,j as X,D as J,p as F,k as K,l as Q,m as Y,I as k,n as $,o as I,q as ee,r as te}from"./vendor.a5ae8db0.js";const se=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))n(r);new MutationObserver(r=>{for(const a of r)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function s(r){const a={};return r.integrity&&(a.integrity=r.integrity),r.referrerpolicy&&(a.referrerPolicy=r.referrerpolicy),r.crossorigin==="use-credentials"?a.credentials="include":r.crossorigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(r){if(r.ep)return;r.ep=!0;const a=s(r);fetch(r.href,a)}};se();const o={mapWrapClass:"a2g-map-wrap",mapClass:"a2g-map",convexHullFill:new h({color:"rgba(255, 153, 0, 0.4)"}),convexHullStroke:new f({color:"rgba(204, 85, 0, 1)",width:1}),textFill:new h({color:"#333"}),textStroke:new f({color:"rgba(0, 0, 0, 0.6)",width:0}),innerCircle:new y({radius:14,fill:new h({color:"rgba(255, 165, 0, 0.7)"})}),outerCircle:new y({radius:20,fill:new h({color:"rgba(255, 153, 102, 0.3)"})}),mapWraps:[],maps:[],mapObjects:[],gpx:{mapSources:[],mapLayers:[],gpxSourceDataAttribute:"gpxSource",style:{Point:new u({image:new y({fill:new h({color:"rgba(255,255,0,0.4)"}),radius:5,stroke:new f({color:"#ff0",width:1})})}),LineString:new u({stroke:new f({color:"#f00",width:3})}),MultiLineString:new u({stroke:new f({color:"#0f0",width:3})})},init:function(e){var t=this;o.maps[e].dataset[t.gpxSourceDataAttribute]&&(t.mapSources[e]=new g({url:o.maps[e].dataset[t.gpxSourceDataAttribute],format:new T}),t.mapLayers[e]=new m({source:t.mapSources[e],style:function(s){return t.style[s.getGeometry().getType()]}}),o.layers.mapLayers[e].push(t.mapLayers[e]))}},geolocate:{locateMeDoms:[],checkboxClass:"a2g-map-geolocate-me",geolocations:[],positionFeature:new w,accuracyFeature:new w,mapSources:[],mapLayers:[],setPositionFeatureStyle:function(){this.positionFeature.setStyle(new u({image:new y({radius:6,fill:new h({color:"#3399CC"}),stroke:new f({color:"#fff",width:2})})}))},setMapGeolocations:function(e){var t=this;t.geolocations[e]=new _({trackingOptions:{enableHighAccuracy:!0},projection:o.views[e].getProjection()}),t.geolocations[e].on("change:position",function(){const s=t.geolocations[e].getPosition();t.positionFeature.setGeometry(s?new D(s):null)}),t.geolocations[e].on("change:accuracyGeometry",function(){t.accuracyFeature.setGeometry(t.geolocations[e].getAccuracyGeometry())})},setGeolocateMeAction:function(e){var t=this;t.locateMeDoms[e]=o.mapWraps[e].getElementsByClassName(t.checkboxClass),t.locateMeDoms[e].length>0&&(t.setMapGeolocations(e),t.mapSources[e]=new g({features:[t.accuracyFeature,t.positionFeature]}),t.mapLayers[e]=new m({map:o.mapObjects[e],source:t.mapSources[e]}));for(var s=0;s<t.locateMeDoms[e].length;s++)t.locateMeDoms[e][s].addEventListener("change",function(){t.geolocations[e].setTracking(this.checked);for(var n=0;n<t.locateMeDoms[e].length;n++)t.locateMeDoms[e][n].checked=this.checked;this.checked?t.mapLayers[e].setSource(t.mapSources[e]):t.mapLayers[e].setSource(null)})},init:function(e){this.setPositionFeatureStyle(),this.setGeolocateMeAction(e)}},popup:{class:"a2g-map-popup",contentClass:"a2g-map-popup-content",closerClass:"a2g-map-popup-closer",content:[],closer:[],overlay:[],init:function(e){if(o.mapWraps[e].querySelec
//# sourceMappingURL=index.9adfbad3.js.map