favorite comment 0
thumb_up0thumb_down

directions_bikeJurzík ⛰️🦌

Keď môže byť Kamzičín Pavol Dobročka alebo Kamzikapučínko Danka Krumpolcová, tak môže byť Jurzík ☝🏻😄

Ako vždy, chutilo 😄. A urcite mam nove PRko od odbocky na kamzik hore po luku, len strava mi z nejakeho dovodu dava cas 14:22. Neviem, ci je to preto, lebo par desat metrov za odbockou som zastal, aby som vymenil flase a dodal energiu (cca 4min), ale segment Lanovka-Rampa mam za 9:29, to znamena, ze pre mna cely segment po luku moze byt okolo 10 minut, takze zlepsenie urcite o dalsich 40-60s 😤

Bicykel lock_open

place Graf prevýšenia

comment Komentáre ku aktivite

Momentálne sa tu nenachádzajú žiadne komentáre

Formulár sa odosiela
Pridaj komentár
Formulár sa odosiela
trending_up Vzdialenosť
73,6 km
schedule Čas
03:19:26
landscape Nastúpané
1 317 m

bar_chartŠtatistiky

Rýchlosť 22,1 km/h 77,5 km/h
Energetický výdaj 2 246 kcal

cloudPodmienky

Priemerná teplota 26 °C
directions_bike Bicykel: Francouz

directions_bike Posledné aktivity bikera

thumb_up0thumb_down

directions_bike Relaxačka

trending_up 21,6 km
schedule 01:29:31
landscape 651 m
thumb_up0thumb_down

directions_walk Leto gde? 🌪️🥶

trending_up 2,0 km
schedule 00:22:42
landscape 12 m
thumb_up0thumb_down

directions_bike Doplniť výškový deficit 📏

trending_up 75,3 km
schedule 03:51:14
landscape 1 541 m

place Segmenty

Názov segmentuSegment ČasMôj čas Priemerná rýchlosť Priemerný výkon Priemerný tep Najlepší čas na segmenteNajlepší čas
Formulár sa odosiela
keyboard_arrow_up BielyKriz","segmentDistance":"D\u013a\u017eka: 8.89 km<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 3.8 %<\/b>","segmentNameHref":"svatyjur-%3Ebielykriz"},"geometry":{"type":"LineString","coordinates":[["17.211612","48.254809",189.6],["17.211612","48.254809",189.6],["17.210202","48.255527",193.4],["17.208529","48.256325",198.6],["17.207938","48.256853",203.4],["17.206728","48.257252",202.6],["17.205927","48.257772",212.4],["17.205265","48.258245",217.8],["17.203774","48.259488",220.8],["17.203314","48.259879",219],["17.202138","48.260689",222.4],["17.20145","48.261346",225.8],["17.201283","48.261907",229],["17.200927","48.262708",237.2],["17.200643","48.263132",242.2],["17.200483","48.263608",247.6],["17.200398","48.264108",252.2],["17.200361","48.264404",255],["17.200292","48.265057",260.8],["17.199977","48.265461",264.4],["17.19918","48.265923",270.2],["17.198437","48.266181",275.6],["17.197634","48.266458",280.8],["17.19671","48.266849",288.6],["17.195815","48.267571",295.8],["17.195067","48.268228",302.8],["17.194597","48.268693",307.6],["17.195009","48.268925",311.8],["17.195734","48.268508",315.6],["17.196895","48.267851",322],["17.197554","48.267949",324.4],["17.197764","48.268331",326.4],["17.197059","48.269128",329.8],["17.196047","48.269873",336.4],["17.195682","48.270248",340.8],["17.195675","48.27065",345.2],["17.195948","48.271057",349.4],["17.196388","48.271856",356],["17.196568","48.272101",358.6],["17.196712","48.272787",365],["17.19641","48.27334",369.4],["17.195556","48.273871",376],["17.194674","48.274131",380.4],["17.194045","48.274147",382.8],["17.193196","48.273969",385],["17.192501","48.273647",388],["17.191626","48.272794",395.6],["17.190836","48.272541",400.4],["17.18998","48.272779",404.8],["17.188676","48.273264",413.8],["17.187566","48.273554",419.2],["17.186687","48.273671",422.6],["17.18475","48.274297",435.2],["17.183747","48.274356",441],["17.182902","48.274157",445.4],["17.182039","48.273787",450],["17.181019","48.273578",453.2],["17.180439","48.273434",455],["17.179235","48.273033",462.2],["17.178827","48.272836",465.6],["17.178206","48.272457",470.6],["17.177785","48.272163",474.6],["17.177454","48.271859",477.2],["17.176878","48.271238",484.6],["17.176227","48.270703",489.4],["17.175563","48.270485",493.4],["17.174902","48.270166",497.6],["17.17413","48.270225",503.2],["17.173577","48.27043",506.8],["17.172945","48.270912",512],["17.172175","48.271333",515.4],["17.171042","48.271422",516.8],["17.169865","48.27093",520.6],["17.168906","48.270467",525.2],["17.168059","48.270089",528.6],["17.166782","48.269435",531.8],["17.165581","48.268859",529.6],["17.163779","48.267929",522.2],["17.1631","48.267592",520.6],["17.162076","48.26699",522.2],["17.161855","48.266325",524.8],["17.161448","48.265169",528.2],["17.161037","48.264195",531],["17.160553","48.262804",538.6],["17.160199","48.261951",543],["17.159882","48.261103",546],["17.15954","48.260312",548.4],["17.159368","48.258435",551.8],["17.159099","48.256421",548.6],["17.159379","48.25496",542.2],["17.159189","48.254543",540.6],["17.158685","48.254223",538.8],["17.156863","48.253707",533.6],["17.154844","48.253263",533.8],["17.153091","48.25262",528],["17.151588","48.252169",521.8],["17.150467","48.251815",518.8],["17.149238","48.251687",517],["17.14751","48.250719",517],["17.146433","48.250171",516.2],["17.145148","48.249225",513.4]]}},{"type":"Feature","properties":{"type":99,"segment":"4963","segmentName":"Od parkoviska po Tri Bresty","segmentDistance":"D\u013a\u017eka: 1.98 km<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 7.3 %<\/b>","segmentNameHref":"od-parkoviska-po-tri-bresty"},"geometry":{"type":"LineString","coordinates":[["17.200483","48.263608",247.6],["17.200483","48.263608",247.6],["17.200398","48.264108",252.2],["17.200361","48.264404",255],["17.200292","48.265057",260.8],["17.199977","48.265461",264.4],["17.19918","48.265923",270.2],["17.198437","48.266181",275.6],["17.197634","48.266458",280.8],["17.19671","48.266849",288.6],["17.195815","48.267571",295.8],["17.195067","48.268228",302.8],["17.194597","48.268693",307.6],["17.195009","48.268925",311.8],["17.195734","48.268508",315.6],["17.196895","48.267851",322],["17.197554","48.267949",324.4],["17.197764","48.268331",326.4],["17.197059","48.269128",329.8],["17.196047","48.269873",336.4],["17.195682","48.270248",340.8],["17.195675","48.27065",345.2],["17.195948","48.271057",349.4],["17.196388","48.271856",356],["17.196568","48.272101",358.6],["17.196712","48.272787",365],["17.19641","48.27334",369.4],["17.195556","48.273871",376],["17.194674","48.274131",380.4]]}},{"type":"Feature","properties":{"type":99,"segment":"4964","segmentName":"parkovisko - odbocka","segmentDistance":"D\u013a\u017eka: 4.74 km<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 5.7 %<\/b>","segmentNameHref":"parkovisko-odbocka"},"geometry":{"type":"LineString","coordinates":[["17.200483","48.263608",247.6],["17.200483","48.263608",247.6],["17.200398","48.264108",252.2],["17.200361","48.264404",255],["17.200292","48.265057",260.8],["17.199977","48.265461",264.4],["17.19918","48.265923",270.2],["17.198437","48.266181",275.6],["17.197634","48.266458",280.8],["17.19671","48.266849",288.6],["17.195815","48.267571",295.8],["17.195067","48.268228",302.8],["17.194597","48.268693",307.6],["17.195009","48.268925",311.8],["17.195734","48.268508",315.6],["17.196895","48.267851",322],["17.197554","48.267949",324.4],["17.197764","48.268331",326.4],["17.197059","48.269128",329.8],["17.196047","48.269873",336.4],["17.195682","48.270248",340.8],["17.195675","48.27065",345.2],["17.195948","48.271057",349.4],["17.196388","48.271856",356],["17.196568","48.272101",358.6],["17.196712","48.272787",365],["17.19641","48.27334",369.4],["17.195556","48.273871",376],["17.194674","48.274131",380.4],["17.194045","48.274147",382.8],["17.193196","48.273969",385],["17.192501","48.273647",388],["17.191626","48.272794",395.6],["17.190836","48.272541",400.4],["17.18998","48.272779",404.8],["17.188676","48.273264",413.8],["17.187566","48.273554",419.2],["17.186687","48.273671",422.6],["17.18475","48.274297",435.2],["17.183747","48.274356",441],["17.182902","48.274157",445.4],["17.182039","48.273787",450],["17.181019","48.273578",453.2],["17.180439","48.273434",455],["17.179235","48.273033",462.2],["17.178827","48.272836",465.6],["17.178206","48.272457",470.6],["17.177785","48.272163",474.6],["17.177454","48.271859",477.2],["17.176878","48.271238",484.6],["17.176227","48.270703",489.4],["17.175563","48.270485",493.4],["17.174902","48.270166",497.6],["17.17413","48.270225",503.2],["17.173577","48.27043",506.8],["17.172945","48.270912",512],["17.172175","48.271333",515.4],["17.171042","48.271422",516.8],["17.169865","48.27093",520.6],["17.168906","48.270467",525.2],["17.168059","48.270089",528.6],["17.166782","48.269435",531.8],["17.165581","48.268859",529.6],["17.163779","48.267929",522.2],["17.1631","48.267592",520.6]]}},{"type":"Feature","properties":{"type":99,"segment":"106722","segmentName":"jursky svrbicak","segmentDistance":"D\u013a\u017eka: 2.21 km<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 6.8 %<\/b>","segmentNameHref":"jursky-svrbicak"},"geometry":{"type":"LineString","coordinates":[["17.197059","48.269128",329.8],["17.197059","48.269128",329.8],["17.196047","48.269873",336.4],["17.195682","48.270248",340.8],["17.195675","48.27065",345.2],["17.195948","48.271057",349.4],["17.196388","48.271856",356],["17.196568","48.272101",358.6],["17.196712","48.272787",365],["17.19641","48.27334",369.4],["17.195556","48.273871",376],["17.194674","48.274131",380.4],["17.194045","48.274147",382.8],["17.193196","48.273969",385],["17.192501","48.273647",388],["17.191626","48.272794",395.6],["17.190836","48.272541",400.4],["17.18998","48.272779",404.8],["17.188676","48.273264",413.8],["17.187566","48.273554",419.2],["17.186687","48.273671",422.6],["17.18475","48.274297",435.2],["17.183747","48.274356",441],["17.182902","48.274157",445.4],["17.182039","48.273787",450],["17.181019","48.273578",453.2],["17.180439","48.273434",455],["17.179235","48.273033",462.2],["17.178827","48.272836",465.6],["17.178206","48.272457",470.6],["17.177785","48.272163",474.6],["17.177454","48.271859",477.2]]}},{"type":"Feature","properties":{"type":99,"segment":"40929","segmentName":"Zjazd bez brzdenia po Tri Bresty","segmentDistance":"D\u013a\u017eka: 1.64 km<\/b>","segmentGrade":"Priemern\u00e9 klesanie: -7.2 %<\/b>","segmentNameHref":"zjazd-bez-brzdenia-po-tri-bresty"},"geometry":{"type":"LineString","coordinates":[["17.17413","48.270225",503.2],["17.17413","48.270225",503.2],["17.173577","48.27043",506.8],["17.172945","48.270912",512],["17.172175","48.271333",515.4],["17.171042","48.271422",516.8],["17.169865","48.27093",520.6],["17.168906","48.270467",525.2],["17.168059","48.270089",528.6],["17.166782","48.269435",531.8],["17.165581","48.268859",529.6],["17.163779","48.267929",522.2],["17.1631","48.267592",520.6],["17.162076","48.26699",522.2],["17.161855","48.266325",524.8],["17.161448","48.265169",528.2],["17.161037","48.264195",531],["17.160553","48.262804",538.6],["17.160199","48.261951",543],["17.159882","48.261103",546],["17.15954","48.260312",548.4]]}},{"type":"Feature","properties":{"type":99,"segment":"4543","segmentName":"m4t0_rychle_stupanie","segmentDistance":"D\u013a\u017eka: 241.10 metrov<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 4.4 %<\/b>","segmentNameHref":"m4t0_rychle_stupanie"},"geometry":{"type":"LineString","coordinates":[["17.165581","48.268859",529.6],["17.165581","48.268859",529.6],["17.163779","48.267929",522.2],["17.1631","48.267592",520.6]]}},{"type":"Feature","properties":{"type":99,"segment":"1237","segmentName":"Stupanie k Javornikom od razc. nad Salasom","segmentDistance":"D\u013a\u017eka: 462.80 metrov<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 5.7 %<\/b>","segmentNameHref":"stupanie-k-javornikom-od-razc-nad-salasom"},"geometry":{"type":"LineString","coordinates":[["17.161855","48.266325",524.8],["17.161855","48.266325",524.8],["17.161448","48.265169",528.2],["17.161037","48.264195",531],["17.160553","48.262804",538.6]]}},{"type":"Feature","properties":{"type":99,"segment":"4506","segmentName":"Javornik - Biely Kriz sprintik","segmentDistance":"D\u013a\u017eka: 1.54 km<\/b>","segmentGrade":"Priemern\u00e9 klesanie: -2.2 %<\/b>","segmentNameHref":"javornik-biely-kriz-sprintik"},"geometry":{"type":"LineString","coordinates":[["17.159368","48.258435",551.8],["17.159368","48.258435",551.8],["17.159099","48.256421",548.6],["17.159379","48.25496",542.2],["17.159189","48.254543",540.6],["17.158685","48.254223",538.8],["17.156863","48.253707",533.6],["17.154844","48.253263",533.8],["17.153091","48.25262",528],["17.151588","48.252169",521.8],["17.150467","48.251815",518.8],["17.149238","48.251687",517],["17.14751","48.250719",517]]}},{"type":"Feature","properties":{"type":99,"segment":"94574","segmentName":"BK-drsny-zaver","segmentDistance":"D\u013a\u017eka: 1.06 km<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 5.4 %<\/b>","segmentNameHref":"bk-drsny-zaver"},"geometry":{"type":"LineString","coordinates":[["17.134601","48.241964",453.4],["17.134601","48.241964",453.4],["17.132922","48.240914",455.8],["17.132034","48.240444",461.2],["17.131313","48.239919",461.4],["17.130722","48.238267",459],["17.130435","48.237488",458.2],["17.129885","48.237051",459.4],["17.128539","48.23665",466],["17.126963","48.235589",462.6],["17.12646","48.234611",456.4]]}},{"type":"Feature","properties":{"type":99,"segment":"1093","segmentName":"Stupanie v zjazde z BK","segmentDistance":"D\u013a\u017eka: 247.40 metrov<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 7.2 %<\/b>","segmentNameHref":"stupanie-v-zjazde-z-bk"},"geometry":{"type":"LineString","coordinates":[["17.134601","48.241964",453.4],["17.134601","48.241964",453.4],["17.132922","48.240914",455.8]]}},{"type":"Feature","properties":{"type":99,"segment":"12441","segmentName":"Racianska casovka 2.\/2","segmentDistance":"D\u013a\u017eka: 3.47 km<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 3.3 %<\/b>","segmentNameHref":"racianska-casovka-2-2"},"geometry":{"type":"LineString","coordinates":[["17.119645","48.226154",404.8],["17.119645","48.226154",404.8],["17.118775","48.22552",400.4],["17.117701","48.225386",399.2],["17.116847","48.224419",397.6],["17.116499","48.222613",398],["17.11632","48.220781",391.4],["17.116184","48.219612",384.4],["17.116009","48.218786",377.6],["17.115548","48.218455",373.2],["17.114529","48.218661",370.6],["17.113011","48.218437",367.8],["17.111306","48.218295",364],["17.110003","48.218761",365],["17.108573","48.219047",362.4],["17.107084","48.219864",357],["17.105186","48.221603",348.8],["17.1038","48.222808",343],["17.103455","48.223185",342.2],["17.102027","48.223627",342.6],["17.100526","48.224089",343.2],["17.099286","48.22428",342],["17.097225","48.224065",336.6],["17.096553","48.223466",335.2],["17.095736","48.222259",332.4],["17.094822","48.22171",331.4],["17.092982","48.221199",328.8],["17.091664","48.221677",326.8],["17.090567","48.222167",325.2],["17.089862","48.22207",324.2],["17.089593","48.221476",323.2],["17.089434","48.220452",321.8],["17.089747","48.21914",318.6],["17.090725","48.217235",315],["17.090571","48.216561",313.2],["17.090088","48.216385",312.6],["17.088724","48.216848",309.6],["17.087743","48.216693",309.2],["17.086546","48.216011",305.8],["17.086546","48.215725",304.6],["17.086463","48.215007",302.2],["17.086603","48.214251",301],["17.087064","48.213298",299.4],["17.087727","48.211868",298.2],["17.087552","48.210819",297],["17.087064","48.210154",294.8],["17.087354","48.20976",293.4],["17.088866","48.208837",290.8],["17.08917","48.208405",290.4],["17.0891","48.207141",288],["17.089369","48.206382",286.6],["17.089783","48.205491",284.8],["17.090762","48.205142",283.4],["17.09257","48.205281",280.6],["17.094667","48.204676",278.8],["17.096504","48.203415",278.6],["17.097283","48.202525",277.6],["17.098181","48.201751",274.6],["17.098768","48.201134",272.2],["17.099592","48.200404",269.2],["17.099698","48.199682",267.6],["17.100027","48.198642",265.8]]}},{"type":"Feature","properties":{"type":99,"segment":"124541","segmentName":"Stupanie pred CK","segmentDistance":"D\u013a\u017eka: 363.80 metrov<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 5.7 %<\/b>","segmentNameHref":"stupanie-pred-ck"},"geometry":{"type":"LineString","coordinates":[["17.119645","48.226154",404.8],["17.119645","48.226154",404.8],["17.118775","48.22552",400.4],["17.117701","48.225386",399.2],["17.116847","48.224419",397.6]]}},{"type":"Feature","properties":{"type":99,"segment":"2082","segmentName":"stupanie za trojuholnikom","segmentDistance":"D\u013a\u017eka: 469.60 metrov<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 5.6 %<\/b>","segmentNameHref":"stupanie-za-trojuholnikom"},"geometry":{"type":"LineString","coordinates":[["17.116009","48.218786",377.6],["17.116009","48.218786",377.6],["17.115548","48.218455",373.2],["17.114529","48.218661",370.6],["17.113011","48.218437",367.8],["17.111306","48.218295",364],["17.110003","48.218761",365]]}},{"type":"Feature","properties":{"type":99,"segment":"92924","segmentName":"\u0160purt na max - Od mosta po most","segmentDistance":"D\u013a\u017eka: 1.06 km<\/b>","segmentGrade":"Priemern\u00e9 klesanie: -1.7 %<\/b>","segmentNameHref":"spurt-na-max-od-mosta-po-most"},"geometry":{"type":"LineString","coordinates":[["17.096553","48.223466",335.2],["17.096553","48.223466",335.2],["17.095736","48.222259",332.4],["17.094822","48.22171",331.4],["17.092982","48.221199",328.8],["17.091664","48.221677",326.8],["17.090567","48.222167",325.2],["17.089862","48.22207",324.2],["17.089593","48.221476",323.2],["17.089434","48.220452",321.8],["17.089747","48.21914",318.6],["17.090725","48.217235",315],["17.090571","48.216561",313.2],["17.090088","48.216385",312.6],["17.088724","48.216848",309.6],["17.087743","48.216693",309.2]]}},{"type":"Feature","properties":{"type":99,"segment":"2075","segmentName":"Lanovka_Horizont_trojuholnik","segmentDistance":"D\u013a\u017eka: 6.16 km<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 2.1 %<\/b>","segmentNameHref":"lanovka_horizont_trojuholnik"},"geometry":{"type":"LineString","coordinates":[["17.098212","48.195269",259],["17.098212","48.195269",259],["17.097703","48.194959",257.4],["17.09814","48.194955",258.8],["17.098608","48.194821",261.8],["17.099074","48.194388",266.8],["17.099387","48.193949",273.4],["17.099731","48.193642",278.6],["17.099966","48.19324",284.4],["17.099982","48.19267",292.8],["17.099921","48.192003",300],["17.100083","48.191632",304.8],["17.100386","48.191396",309.6],["17.100664","48.191196",313.4],["17.100989","48.190896",319],["17.101344","48.190642",323.8],["17.101843","48.190212",327.8],["17.102066","48.189971",331.2],["17.102454","48.189616",335.6],["17.103069","48.18914",338.8],["17.102983","48.188905",340],["17.102334","48.188962",343.4],["17.101447","48.189142",348.4],["17.101006","48.1893",352.8],["17.100773","48.189396",354.6],["17.100241","48.189568",359.8],["17.09981","48.189755",363.4],["17.099478","48.189979",367],["17.098546","48.190514",376],["17.098057","48.190507",378.8],["17.097994","48.19023",380.6],["17.098764","48.189507",382.8],["17.09921","48.189058",389],["17.09934","48.188695",393.2],["17.099157","48.188332",398],["17.099134","48.187698",404.4],["17.098888","48.186104",407.4],["17.098987","48.185406",410.2],["17.099026","48.185154",412],["17.09907","48.184422",415],["17.098874","48.183469",415],["17.09853","48.182509",410.2],["17.097663","48.180448",397.8],["17.097473","48.179145",390.2],["17.097394","48.178423",386.2],["17.098432","48.176958",376.6],["17.099336","48.176403",371.4],["17.099727","48.175748",363.4],["17.100597","48.175005",355.8],["17.100987","48.174514",349.8],["17.10171","48.17346",342.4],["17.101878","48.173039",338],["17.101821","48.172016",329.4],["17.101598","48.171419",324.2],["17.101932","48.171186",319.4],["17.102863","48.171067",309.2],["17.103967","48.170306",305.8],["17.105818","48.169519",300.6],["17.10691","48.169266",295.6],["17.107993","48.169716",291.2],["17.108828","48.169654",288.8],["17.109859","48.169316",285.4],["17.111489","48.16828",274],["17.113599","48.167294",261.4],["17.113978","48.166784",255.2],["17.113702","48.1658",247],["17.114018","48.165339",241.4],["17.115221","48.16483",234],["17.11566","48.163162",219],["17.115432","48.162552",213.4],["17.11472","48.161723",205.2],["17.114747","48.160975",198.4],["17.114404","48.160374",194.2],["17.113598","48.159666",187],["17.113964","48.159307",184.6],["17.114151","48.159262",182.4],["17.114818","48.159564",180.2],["17.114925","48.159629",179.2],["17.114143","48.159383",179.8],["17.113982","48.159583",181.6],["17.113736","48.159833",182.8],["17.113965","48.16001",184.8],["17.114626","48.160537",188.4],["17.114744","48.161384",194.6],["17.114856","48.16191",197.4],["17.115138","48.162302",200.6],["17.11552","48.162704",204.6],["17.115708","48.163258",209.4],["17.115452","48.164225",217.2],["17.115088","48.16498",223],["17.11435","48.165293",227.6],["17.113714","48.165678",232.6],["17.113971","48.166731",241.8],["17.113789","48.167223",246],["17.113376","48.167466",249.2],["17.112548","48.167769",254.6],["17.111238","48.168508",263.4],["17.110533","48.169007",267.8],["17.109163","48.169635",276.4],["17.107904","48.169742",282],["17.107011","48.169382",284],["17.105613","48.169629",289.6],["17.104634","48.17001",294.2],["17.103368","48.170781",299.4],["17.102677","48.171163",301],["17.101546","48.171194",306.6],["17.101151","48.171313",311.6],["17.1015","48.171711",313.8],["17.101545","48.171419",313.6],["17.102617","48.171122",307],["17.103468","48.170633",301.8],["17.104996","48.169778",297.8],["17.106457","48.169371",292],["17.106993","48.169289",288.6],["17.107993","48.169704",284],["17.109203","48.169571",281.2],["17.110712","48.168824",273.2],["17.112337","48.167816",262.8],["17.11341","48.167383",257.6],["17.11392","48.166962",251.8],["17.113714","48.165813",240.2],["17.114122","48.165349",233.8],["17.115219","48.164846",224.6],["17.115617","48.163347",215.4],["17.114997","48.162041",204],["17.114632","48.161378",198.2],["17.114511","48.160433",190.8],["17.113566","48.159585",181.8],["17.113952","48.159276",177.8],["17.113733","48.158341",173.6],["17.113187","48.156626",168.4],["17.112954","48.156522",167.6],["17.112902","48.156395",167.6],["17.111957","48.156247",168],["17.110784","48.155963",168.8],["17.110081","48.155941",169.8],["17.109103","48.155762",171.6],["17.108058","48.155515",173.6],["17.107388","48.155313",175],["17.106593","48.155172",176.8],["17.106333","48.154767",178.2],["17.106314","48.154476",177.6],["17.106235","48.15422",176.8],["17.106422","48.15339",176],["17.10673","48.151901",173.8],["17.106942","48.151403",173.2],["17.106972","48.150883",172.6],["17.106918","48.150498",172.4],["17.106137","48.150603",172.4],["17.104969","48.151122",176],["17.105","48.151691",179.2],["17.105012","48.15236",181.6],["17.105167","48.152796",184.6],["17.104956","48.153588",188.2],["17.10405","48.154969",187.2],["17.103861","48.155335",186.2],["17.102672","48.155695",193.6],["17.102062","48.155879",200],["17.101441","48.156146",205.8],["17.101122","48.156317",209],["17.099928","48.156813",221.6],["17.099263","48.157143",226.8],["17.098419","48.157447",231.8],["17.097691","48.157786",233.4],["17.096236","48.158763",228.8],["17.094873","48.159632",225],["17.093598","48.160289",223.2],["17.091835","48.160984",220],["17.090439","48.161978",214.8],["17.089834","48.162425",211.2],["17.088871","48.163044",207.8],["17.087078","48.16382",202],["17.084923","48.164486",198.6],["17.082498","48.165256",192],["17.082534","48.16544",192],["17.081963","48.165906",191],["17.081606","48.166318",191],["17.080585","48.166865",193.2],["17.079578","48.167696",190],["17.078951","48.168414",189],["17.078101","48.169207",189.2],["17.07761","48.169643",188.6],["17.077069","48.17019",188.2],["17.076678","48.170723",187.8],["17.075672","48.171264",185],["17.074556","48.171705",184.2],["17.073912","48.17193",185.4],["17.072823","48.171172",184.2],["17.070834","48.171997",186.4],["17.067703","48.173724",194],["17.066617","48.17434",197],["17.065482","48.174993",199.6],["17.065495","48.175297",200.2],["17.066327","48.175969",201.8],["17.065998","48.176309",203.4],["17.064981","48.176642",204.4],["17.063276","48.177527",205.6],["17.062866","48.178126",208.8],["17.06224","48.178905",212.2],["17.061553","48.17922",214.4],["17.059941","48.17997",218.8],["17.059009","48.180452",219],["17.059746","48.181455",224.4],["17.060292","48.182198",225.6],["17.059872","48.182526",225.6],["17.057868","48.184943",232.2],["17.057045","48.1857",232.4],["17.054318","48.185951",224.8],["17.052788","48.186214",219.4],["17.051296","48.18722",217.6],["17.050989","48.187974",226.2],["17.05085","48.188321",230.6],["17.050732","48.188669",234.2],["17.049466","48.18851",231.6],["17.04844","48.188527",221.8],["17.047516","48.189659",220.4],["17.0472","48.190638",222],["17.046701","48.19291",223.8]]}},{"type":"Feature","properties":{"type":99,"segment":"2088","segmentName":"V\u00fd\u0161lap k P\u00e4\u0165boju","segmentDistance":"D\u013a\u017eka: 578.10 metrov<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 11.2 %<\/b>","segmentNameHref":"vyslap-k-patboju"},"geometry":{"type":"LineString","coordinates":[["17.099074","48.194388",266.8],["17.099074","48.194388",266.8],["17.099387","48.193949",273.4],["17.099731","48.193642",278.6],["17.099966","48.19324",284.4],["17.099982","48.19267",292.8],["17.099921","48.192003",300],["17.100083","48.191632",304.8],["17.100386","48.191396",309.6],["17.100664","48.191196",313.4],["17.100989","48.190896",319],["17.101344","48.190642",323.8]]}},{"type":"Feature","properties":{"type":99,"segment":"2772","segmentName":"naKamzikOd5bojara","segmentDistance":"D\u013a\u017eka: 1.07 km<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 6.9 %<\/b>","segmentNameHref":"nakamzikod5bojara"},"geometry":{"type":"LineString","coordinates":[["17.102066","48.189971",331.2],["17.102066","48.189971",331.2],["17.102454","48.189616",335.6],["17.102454","48.189616",335.6],["17.103069","48.18914",338.8],["17.102983","48.188905",340],["17.102334","48.188962",343.4],["17.101447","48.189142",348.4],["17.101006","48.1893",352.8],["17.100773","48.189396",354.6],["17.100241","48.189568",359.8],["17.09981","48.189755",363.4],["17.099478","48.189979",367],["17.098546","48.190514",376],["17.098057","48.190507",378.8],["17.097994","48.19023",380.6],["17.098764","48.189507",382.8],["17.09921","48.189058",389],["17.09934","48.188695",393.2],["17.099157","48.188332",398],["17.099134","48.187698",404.4],["17.098888","48.186104",407.4]]}},{"type":"Feature","properties":{"type":99,"segment":"2090","segmentName":"Snezienka-Kamzik (posledna rampa)","segmentDistance":"D\u013a\u017eka: 483.10 metrov<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 5.7 %<\/b>","segmentNameHref":"snezienka-kamzik-posledna-rampa"},"geometry":{"type":"LineString","coordinates":[["17.098764","48.189507",382.8],["17.098764","48.189507",382.8],["17.09921","48.189058",389],["17.09934","48.188695",393.2],["17.099157","48.188332",398],["17.099134","48.187698",404.4],["17.098888","48.186104",407.4]]}},{"type":"Feature","properties":{"type":99,"segment":"2091","segmentName":"SK_BA: Kamz\u00edk les - Koliba stroodel (downhill)","segmentDistance":"D\u013a\u017eka: 996.70 metrov<\/b>","segmentGrade":"Priemern\u00e9 klesanie: -6.8 %<\/b>","segmentNameHref":"sk_ba-kamzik-les-koliba-stroodel-downhill"},"geometry":{"type":"LineString","coordinates":[["17.09853","48.182509",410.2],["17.09853","48.182509",410.2],["17.097663","48.180448",397.8],["17.097473","48.179145",390.2],["17.097394","48.178423",386.2],["17.098432","48.176958",376.6],["17.099336","48.176403",371.4],["17.099727","48.175748",363.4],["17.100597","48.175005",355.8]]}},{"type":"Feature","properties":{"type":99,"segment":"2220","segmentName":"Tretia\/Jes\u00e9niova","segmentDistance":"D\u013a\u017eka: 475.60 metrov<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 4 %<\/b>","segmentNameHref":"tretia-jeseniova"},"geometry":{"type":"LineString","coordinates":[["17.107993","48.169716",291.2],["17.107993","48.169716",291.2],["17.108828","48.169654",288.8],["17.109859","48.169316",285.4],["17.111489","48.16828",274]]}},{"type":"Feature","properties":{"type":99,"segment":"2218","segmentName":"koliba1","segmentDistance":"D\u013a\u017eka: 2.01 km<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 6.5 %<\/b>","segmentNameHref":"koliba1"},"geometry":{"type":"LineString","coordinates":[["17.113598","48.159666",187],["17.113598","48.159666",187],["17.113964","48.159307",184.6],["17.114151","48.159262",182.4],["17.114818","48.159564",180.2],["17.114925","48.159629",179.2],["17.114143","48.159383",179.8],["17.113982","48.159583",181.6],["17.113982","48.159583",181.6],["17.113736","48.159833",182.8],["17.113736","48.159833",182.8],["17.113965","48.16001",184.8],["17.114626","48.160537",188.4],["17.114744","48.161384",194.6],["17.114856","48.16191",197.4],["17.115138","48.162302",200.6],["17.11552","48.162704",204.6],["17.115708","48.163258",209.4],["17.115452","48.164225",217.2],["17.115088","48.16498",223],["17.11435","48.165293",227.6],["17.113714","48.165678",232.6],["17.113971","48.166731",241.8],["17.113789","48.167223",246],["17.113376","48.167466",249.2],["17.112548","48.167769",254.6],["17.111238","48.168508",263.4],["17.110533","48.169007",267.8],["17.109163","48.169635",276.4],["17.107904","48.169742",282],["17.107011","48.169382",284],["17.105613","48.169629",289.6],["17.104634","48.17001",294.2],["17.103368","48.170781",299.4],["17.102677","48.171163",301]]}},{"type":"Feature","properties":{"type":99,"segment":"2217","segmentName":"Zlata noha climb","segmentDistance":"D\u013a\u017eka: 923.30 metrov<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 7.6 %<\/b>","segmentNameHref":"zlata-noha-climb"},"geometry":{"type":"LineString","coordinates":[["17.113964","48.159307",184.6],["17.113964","48.159307",184.6],["17.114151","48.159262",182.4],["17.114818","48.159564",180.2],["17.114925","48.159629",179.2],["17.114143","48.159383",179.8],["17.114143","48.159383",179.8],["17.113982","48.159583",181.6],["17.113982","48.159583",181.6],["17.113736","48.159833",182.8],["17.113965","48.16001",184.8],["17.114626","48.160537",188.4],["17.114744","48.161384",194.6],["17.114856","48.16191",197.4],["17.115138","48.162302",200.6],["17.11552","48.162704",204.6],["17.115708","48.163258",209.4],["17.115452","48.164225",217.2],["17.115088","48.16498",223],["17.11435","48.165293",227.6],["17.113714","48.165678",232.6]]}},{"type":"Feature","properties":{"type":99,"segment":"2093","segmentName":"Bellova Podkolibska","segmentDistance":"D\u013a\u017eka: 1.94 km<\/b>","segmentGrade":"Priemern\u00e9 klesanie: -6.8 %<\/b>","segmentNameHref":"bellova-podkolibska"},"geometry":{"type":"LineString","coordinates":[["17.102677","48.171163",301],["17.102677","48.171163",301],["17.101546","48.171194",306.6],["17.101151","48.171313",311.6],["17.1015","48.171711",313.8],["17.101545","48.171419",313.6],["17.102617","48.171122",307],["17.102617","48.171122",307],["17.103468","48.170633",301.8],["17.104996","48.169778",297.8],["17.106457","48.169371",292],["17.106993","48.169289",288.6],["17.107993","48.169704",284],["17.109203","48.169571",281.2],["17.110712","48.168824",273.2],["17.112337","48.167816",262.8],["17.11341","48.167383",257.6],["17.11392","48.166962",251.8],["17.113714","48.165813",240.2],["17.114122","48.165349",233.8],["17.115219","48.164846",224.6],["17.115617","48.163347",215.4],["17.114997","48.162041",204],["17.114632","48.161378",198.2],["17.114511","48.160433",190.8]]}},{"type":"Feature","properties":{"type":99,"segment":"3452","segmentName":"Sancova 1 up","segmentDistance":"D\u013a\u017eka: 367.80 metrov<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 1.9 %<\/b>","segmentNameHref":"sancova-1-up"},"geometry":{"type":"LineString","coordinates":[["17.113187","48.156626",168.4],["17.113187","48.156626",168.4],["17.112954","48.156522",167.6],["17.112954","48.156522",167.6],["17.112902","48.156395",167.6],["17.112902","48.156395",167.6],["17.111957","48.156247",168],["17.110784","48.155963",168.8],["17.110081","48.155941",169.8],["17.109103","48.155762",171.6]]}},{"type":"Feature","properties":{"type":99,"segment":"212503","segmentName":"Climb ODBO\u010cKA - pod VE\u013dK\u00ddM JAVORN\u00cdKOM","segmentDistance":"D\u013a\u017eka: 800.30 metrov<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 3.3 %<\/b>","segmentNameHref":"climb-odbocka-pod-velkym-javornikom"},"geometry":{"type":"LineString","coordinates":[["17.106137","48.150603",172.4],["17.106137","48.150603",172.4],["17.104969","48.151122",176],["17.105","48.151691",179.2],["17.105012","48.15236",181.6],["17.105167","48.152796",184.6],["17.104956","48.153588",188.2],["17.10405","48.154969",187.2],["17.103861","48.155335",186.2],["17.102672","48.155695",193.6],["17.102062","48.155879",200],["17.101441","48.156146",205.8],["17.101122","48.156317",209]]}},{"type":"Feature","properties":{"type":99,"segment":"362107","segmentName":"LTP Zjazd Javorn\u00edk - Sne\u017eienka","segmentDistance":"D\u013a\u017eka: 12.56 km<\/b>","segmentGrade":"Priemern\u00e9 klesanie: -2.4 %<\/b>","segmentNameHref":"ltp-zjazd-javornik-snezienka"},"geometry":{"type":"LineString","coordinates":[["17.106137","48.150603",172.4],["17.106137","48.150603",172.4],["17.104969","48.151122",176],["17.105","48.151691",179.2],["17.105012","48.15236",181.6],["17.105167","48.152796",184.6],["17.104956","48.153588",188.2],["17.10405","48.154969",187.2],["17.103861","48.155335",186.2],["17.102672","48.155695",193.6],["17.102062","48.155879",200],["17.101441","48.156146",205.8],["17.101122","48.156317",209],["17.099928","48.156813",221.6],["17.099263","48.157143",226.8],["17.098419","48.157447",231.8],["17.097691","48.157786",233.4],["17.096236","48.158763",228.8],["17.094873","48.159632",225],["17.093598","48.160289",223.2],["17.091835","48.160984",220],["17.090439","48.161978",214.8],["17.089834","48.162425",211.2],["17.088871","48.163044",207.8],["17.087078","48.16382",202],["17.084923","48.164486",198.6],["17.082498","48.165256",192],["17.082534","48.16544",192],["17.081963","48.165906",191],["17.081606","48.166318",191],["17.080585","48.166865",193.2],["17.079578","48.167696",190],["17.078951","48.168414",189],["17.078101","48.169207",189.2],["17.07761","48.169643",188.6],["17.077069","48.17019",188.2],["17.076678","48.170723",187.8],["17.075672","48.171264",185],["17.074556","48.171705",184.2],["17.073912","48.17193",185.4],["17.072823","48.171172",184.2],["17.070834","48.171997",186.4],["17.067703","48.173724",194],["17.066617","48.17434",197],["17.065482","48.174993",199.6],["17.065495","48.175297",200.2],["17.066327","48.175969",201.8],["17.065998","48.176309",203.4],["17.064981","48.176642",204.4],["17.063276","48.177527",205.6],["17.062866","48.178126",208.8],["17.06224","48.178905",212.2],["17.061553","48.17922",214.4],["17.059941","48.17997",218.8],["17.059009","48.180452",219],["17.059746","48.181455",224.4],["17.060292","48.182198",225.6],["17.059872","48.182526",225.6],["17.057868","48.184943",232.2],["17.057045","48.1857",232.4],["17.054318","48.185951",224.8],["17.052788","48.186214",219.4],["17.051296","48.18722",217.6],["17.050989","48.187974",226.2],["17.05085","48.188321",230.6],["17.050732","48.188669",234.2],["17.049466","48.18851",231.6],["17.04844","48.188527",221.8],["17.047516","48.189659",220.4],["17.0472","48.190638",222],["17.046701","48.19291",223.8]]}},{"type":"Feature","properties":{"type":99,"segment":"174917","segmentName":"NTS reverse","segmentDistance":"D\u013a\u017eka: 781.70 metrov<\/b>","segmentGrade":"Priemern\u00e9 klesanie: -1.7 %<\/b>","segmentNameHref":"nts-reverse"},"geometry":{"type":"LineString","coordinates":[["17.106137","48.150603",172.4],["17.106137","48.150603",172.4],["17.104969","48.151122",176],["17.105","48.151691",179.2],["17.105012","48.15236",181.6],["17.105167","48.152796",184.6],["17.104956","48.153588",188.2],["17.10405","48.154969",187.2],["17.103861","48.155335",186.2],["17.102672","48.155695",193.6],["17.102062","48.155879",200],["17.101441","48.156146",205.8],["17.101122","48.156317",209]]}},{"type":"Feature","properties":{"type":99,"segment":"186101","segmentName":"Sne\u017eienka - Viadukt karpatska","segmentDistance":"D\u013a\u017eka: 5.56 km<\/b>","segmentGrade":"Priemern\u00e9 klesanie: -1.4 %<\/b>","segmentNameHref":"snezienka-viadukt-karpatska"},"geometry":{"type":"LineString","coordinates":[["17.106137","48.150603",172.4],["17.106137","48.150603",172.4],["17.104969","48.151122",176],["17.105","48.151691",179.2],["17.105012","48.15236",181.6],["17.105167","48.152796",184.6],["17.104956","48.153588",188.2],["17.10405","48.154969",187.2],["17.103861","48.155335",186.2],["17.102672","48.155695",193.6],["17.102062","48.155879",200],["17.101441","48.156146",205.8],["17.101122","48.156317",209],["17.099928","48.156813",221.6],["17.099263","48.157143",226.8],["17.098419","48.157447",231.8],["17.097691","48.157786",233.4],["17.096236","48.158763",228.8],["17.094873","48.159632",225],["17.093598","48.160289",223.2],["17.091835","48.160984",220],["17.090439","48.161978",214.8],["17.089834","48.162425",211.2],["17.088871","48.163044",207.8],["17.087078","48.16382",202],["17.084923","48.164486",198.6],["17.082498","48.165256",192],["17.082534","48.16544",192],["17.081963","48.165906",191],["17.081606","48.166318",191],["17.080585","48.166865",193.2],["17.079578","48.167696",190],["17.078951","48.168414",189],["17.078101","48.169207",189.2],["17.07761","48.169643",188.6],["17.077069","48.17019",188.2],["17.076678","48.170723",187.8],["17.075672","48.171264",185],["17.074556","48.171705",184.2],["17.073912","48.17193",185.4],["17.072823","48.171172",184.2],["17.070834","48.171997",186.4],["17.067703","48.173724",194],["17.066617","48.17434",197],["17.065482","48.174993",199.6],["17.065495","48.175297",200.2],["17.066327","48.175969",201.8],["17.065998","48.176309",203.4],["17.064981","48.176642",204.4],["17.063276","48.177527",205.6],["17.062866","48.178126",208.8],["17.06224","48.178905",212.2],["17.061553","48.17922",214.4],["17.059941","48.17997",218.8],["17.059009","48.180452",219],["17.059746","48.181455",224.4],["17.060292","48.182198",225.6],["17.059872","48.182526",225.6],["17.057868","48.184943",232.2],["17.057045","48.1857",232.4],["17.054318","48.185951",224.8]]}},{"type":"Feature","properties":{"type":99,"segment":"9931","segmentName":"Hlboka Kick","segmentDistance":"D\u013a\u017eka: 97.70 metrov<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 6.4 %<\/b>","segmentNameHref":"hlboka-kick"},"geometry":{"type":"LineString","coordinates":[["17.103861","48.155335",186.2],["17.103861","48.155335",186.2]]}},{"type":"Feature","properties":{"type":99,"segment":"9932","segmentName":"Hlbok\u00e1 cesta","segmentDistance":"D\u013a\u017eka: 467.10 metrov<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 10.2 %<\/b>","segmentNameHref":"hlboka-cesta"},"geometry":{"type":"LineString","coordinates":[["17.103861","48.155335",186.2],["17.103861","48.155335",186.2],["17.102672","48.155695",193.6],["17.102062","48.155879",200],["17.101441","48.156146",205.8],["17.101122","48.156317",209],["17.099928","48.156813",221.6],["17.099263","48.157143",226.8]]}},{"type":"Feature","properties":{"type":99,"segment":"4754","segmentName":"Suchy mlyn (pekaren) - Velocity","segmentDistance":"D\u013a\u017eka: 596.10 metrov<\/b>","segmentGrade":"Priemern\u00e9 klesanie: -0.1 %<\/b>","segmentNameHref":"suchy-mlyn-pekaren-velocity"},"geometry":{"type":"LineString","coordinates":[["17.079578","48.167696",190],["17.079578","48.167696",190],["17.078951","48.168414",189],["17.078101","48.169207",189.2],["17.07761","48.169643",188.6],["17.077069","48.17019",188.2],["17.076678","48.170723",187.8],["17.075672","48.171264",185]]}},{"type":"Feature","properties":{"type":99,"segment":"16085","segmentName":"sprint do kostola","segmentDistance":"D\u013a\u017eka: 181.40 metrov<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 7.6 %<\/b>","segmentNameHref":"sprint-do-kostola"},"geometry":{"type":"LineString","coordinates":[["17.051296","48.18722",217.6],["17.051296","48.18722",217.6],["17.050989","48.187974",226.2]]}}] var layerGroup = L.layerGroup().addTo(map_leaflet); var layerGroupAllSegments = L.layerGroup(); if (gpx_segments != undefined) { gpx_segments_layer = L.geoJson(gpx_segments, { style: function(feature, layer) { return { 'weight': 10, 'color': '#bb6300', 'opacity': 1, }; }, onEachFeature:onEachFeature, }); function onEachFeature(feature, layer) { sn++; var prop = layer.feature.properties; var desc = getDescription(prop.type, prop.trailName, prop.trailId, prop.trailStatus, prop.segmentName, prop.segment, prop.segmentDistance, prop.segmentGrade, prop.segmentNameHref); var sl = feature.geometry.coordinates[0][1]; var sr = feature.geometry.coordinates[0][0]; var el = feature.geometry.coordinates[feature.geometry.coordinates.length - 1][1]; var er = feature.geometry.coordinates[feature.geometry.coordinates.length - 1][0]; if (sl != '' && sr != '' && el != '' && er != '') { var sm = new L.marker(L.latLng(sl, sr), {icon: startIcon}); var em = new L.marker(L.latLng(el, er), {icon: endIcon}); } var layerGroup = L.featureGroup(); layerGroup.addLayer(sm); layerGroup.addLayer(em); sm.bindPopup(desc); em.bindPopup(desc); var popupLayer = L.popup().setLatLng(L.latLng(sl, sr)).setContent(desc); layerGroup.bindPopup(popupLayer).openPopup(); layerGroup.addLayer(layer); segments.push(layerGroup); layer.on("click", function(e) { var desc = getDescription(prop.type, prop.trailName, prop.trailId, prop.trailStatus, prop.segmentName, prop.segment, prop.segmentDistance, prop.segmentGrade, prop.segmentNameHref); if (desc) { var popup = L.popup() .setLatLng(e.latlng) .setContent(desc) .openOn(map_leaflet); } }); //controlLayers.addOverlay(layerGroup, 'Segmenty na trase - ' + feature.properties.segmentName); } var displaySeg = 0; function showSegment(seg) { segments[displaySeg].remove(map_leaflet); segments[displaySeg]._popup.remove(map_leaflet); segments[seg].addTo(map_leaflet); segments[seg]._popup.addTo(map_leaflet); displaySeg = seg; var bounds = segments[seg].getBounds(); map_leaflet.fitBounds(bounds, {padding: [30, 30]}); $.scrollTo( '#map_leaflet', 800, {offset: -120} ); } } // geo location through leaflet plugin var lc = L.control.locate({ drawCircle: false, follow: true, markerStyle: {color: '#000000',fillColor: '#ee7711',fillOpacity: 0.7,weight: 4,opacity: 0.7,radius: 7}, strings: { title: "Ukáž mi, kde sa nachádzam", // title of the locate control popup: "Si v okolí {distance} {unit} od tohto bodu", // text to appear if user clicks on circle outsideMapBoundsMsg: "Nachádzaš sa mimo oblasti tejto mapy" // default message for onLocationOutsideMapBounds } }).addTo(map_leaflet); map_leaflet.on('startfollowing', function() { map_leaflet.on('dragstart', lc.stopFollowing); }).on('stopfollowing', function() { map_leaflet.off('dragstart', lc.stopFollowing); }); $(document).ready(function() { map_leaflet.on('baselayerchange', function(){ var id = event.currentTarget.layerId; var layer = this._layers[id]; $.ajax({ type: "POST", url: "/ajax.php?u=Cyklotrasy&f=saveDefaultMap&a=" + layer.options.name, }); }) }); $('#elevationDiv').html(''); $('.elevation').appendTo('#elevationDiv'); //gallery carousel multiple items - hack $(function(){ // init arrows $('.gallery-carousel').each(function(){ var itemsPerSlide = 3; if ($(this).data('items-per-slide')) itemsPerSlide = $(this).data('items-per-slide'); if ($('.carousel-item', this).length <= itemsPerSlide){ $('.carousel-control-next', this).addClass('disabled'); } }); $('.gallery-carousel').on('slide.bs.carousel', function (e) { if (!window.matchMedia("(min-width: 768px)").matches) return; // default behaviour on mobile /* CC 2.0 License Iatek LLC 2018 - Attribution required */ var $e = $(e.relatedTarget); var idx = $e.index(); var itemsPerSlide = 3; if ($(this).data('items-per-slide')) itemsPerSlide = $(this).data('items-per-slide'); var totalItems = $('.carousel-item', this).length; if ($(this).data('ended')==true && e.direction=='left'){ return false; } if (e.to===0){ $('.carousel-control-prev', this).addClass('disabled'); }else{ $('.carousel-control-prev', this).removeClass('disabled'); } if (e.to>=totalItems - itemsPerSlide){ $('.carousel-control-next', this).addClass('disabled'); $(this).data('ended', true); }else{ $('.carousel-control-next', this).removeClass('disabled'); $(this).data('ended', false); } }); }); function initEkkoLightbox(){ $('[data-toggle="lightbox"]:not(.lightbox-ready)').on('click', function(event) { event.preventDefault(); event.stopImmediatePropagation(); //$(this).removeAttr('href').attr('role', 'button'); var $this = $(this); $this.ekkoLightbox({ alwaysShowClose: true, wrapping: false, //Whether the gallery should loop or not leftArrow: '', rightArrow: '', onNavigate: function(){ $('.ekko-lightbox').removeClass('zoomed'); }, onShow: function(){ if (!$this.hasClass('no-zoom')) { $('.ekko-lightbox .modal-header').prepend('zoom_inzoom_out'); } $('.ekko-lightbox .ekko-lightbox-item').bind('touchstart touchend touchup swipeLeft swipeRight', function(event) { if ($('.ekko-lightbox').hasClass('zoomed') || (window.visualViewport && window.visualViewport.scale > 1.02)){ event.stopPropagation(); } }); $('.ekko-lightbox .ekko-lightbox-nav-overlay').bind('touchstart touchend touchup swipeLeft swipeRight', function(event) { if ($('.ekko-lightbox').hasClass('pinch-zoomed') || (window.visualViewport && window.visualViewport.scale > 1.02)){ $('.ekko-lightbox').addClass('pinch-zoomed'); event.stopPropagation(); } if (window.visualViewport && window.visualViewport.scale <= 1.02){ setTimeout(function(){ if (window.visualViewport && window.visualViewport.scale <= 1.02){ //check again after timeout $('.ekko-lightbox').removeClass('pinch-zoomed'); } },100); } }); if (window.matchMedia("(min-width: 768px)").matches) { $('body').addClass('ekko-modal-open'); } onPopupOpened('ekko-lightbox'); }, onShown: function(){ }, onHidden: function(){ $('body').removeClass('ekko-modal-open'); onPopupClosed(); } }); return false; }); $('[data-toggle="lightbox"]').addClass('lightbox-ready'); } $(function(){ $('.show-alt-in-lightbox[data-toggle="lightbox"]').each(function(){ $(this).data('footer', $(this).find('img').attr('title')); }); $('body').on('click', '.ekko-lightbox-zoom', function(){ $('.ekko-lightbox').toggleClass('zoomed'); }); $('body').on('click', '.ekko-lightbox.zoomed .ekko-lightbox-item.show ', function(){ $('.ekko-lightbox').removeClass('zoomed'); }) initEkkoLightbox(); $(document).ajaxComplete(function(event, xhr, settings) { //if (xhr.responseText.indexOf('lightbox') >= 0){ initEkkoLightbox(); //} }); }); function favoriteRide(ride) { $.ajax({ type: "POST", data: {id : ride, ride : 1}, dataType: "json", url: "/ajax.php?u=cyklotrasy&f=toggleFavourite", success: function(data) { if (data.added === 1) { $('.btn-wishlist.show-add-to-wishlist').hide(); $('.btn-wishlist.show-remove-from-wishlist').show(); //potrebuje dllllho zobrazit showMessageBar('#favoriteSuccess', 60*1000); } else { $('.btn-wishlist.show-remove-from-wishlist').hide(); $('.btn-wishlist.show-add-to-wishlist').show(); showMessageBar('#favoriteSuccessRemove'); } } }); } $(document).ready(function(){ //mobile map popup $('.close-map-widget').click(function(){ $('#map-widget').removeClass('show'); return false; }); $('.show-map-widget').click(function(){ $('#map-widget').addClass('show'); return false; }); $('a[href="#comments"]').on('click', function(e){ e.preventDefault(); commentsScroll('#comments'); return false; }); if ($('#segmenty').length){ if (location.hash.indexOf('#segmenty')>=0){ if (window.innerWidth>=768){ $.scrollTo( '#segmenty', 800, {offset: -100} ); } $('#segmenty-expander').prop('checked', true); } var $pagination = $('#segmentyList table .pagination-wrap'); $pagination.appendTo('#segmentyList'); $('#segmentyList .row-pagination').remove(); } }); function showPhotoOnMap() { if (typeof L !== "undefined"){ var photos = [{"lat":"0","lng":"0","url":"https:\/\/images.mtbiker.sk\/vyjazdy\/big\/stravaPhoto2008053-0_66d62d985c114.jpg","thumbnail":"https:\/\/images.mtbiker.sk\/vyjazdy\/big\/stravaPhoto2008053-0_66d62d985c114.jpg"},{"lat":"0","lng":"0","url":"https:\/\/images.mtbiker.sk\/vyjazdy\/big\/stravaPhoto2008053-1_66d62d9bddb91.jpg","thumbnail":"https:\/\/images.mtbiker.sk\/vyjazdy\/big\/stravaPhoto2008053-1_66d62d9bddb91.jpg"}] var photoLayer = L.photo.cluster().on("click", function(evt) { var photo = evt.layer.photo; var template = ""; evt.layer.bindPopup(L.Util.template(template, photo), { className: "leafletresize", minWidth: 100, }).openPopup(); }); var photoOnMapLayer = photoLayer.add(photos); map_leaflet.addLayer(photoOnMapLayer); controlLayers.addOverlay(photoOnMapLayer, "Fotky na mape") } } $(function() { showPhotoOnMap(); }); var loadedComments_comments = false; function loadComments_comments(){ } // Comments $(function(){ $('.comment-form, .review-form', '#comments').on('submit', function(){ $(this).attr('autocomplete',"off"); // prevent prepopulating fields on backbtn click if (history.state && history.state.popupOpened === 'mobile-expander'){ $('.mobile-expander-content', '#comments').addClass('opened'); history.back(); } }); $('select[name=sort], select[name=filter]', '#comments').on('change', function() { let inputName = $(this).attr('name'); let sort = $('select[name=sort]', '#comments').val(); let filter = $('select[name=filter]', '#comments').length ? $('select[name=filter]', '#comments ').val() : ''; var url = "/ajax.php?m=komentare&f=loadCommentsWidget&a=bW9kdWw9dnlqYXpkeSZleHRlcm5hbElkPTIwMDgwNTMmaXRlbU5hbWU9ViVDMyVCRGphemQrJUM0JThELisyMDA4MDUzJmNvbW1lbnRUeXBlPWNvbW1lbnQmYXV0aG9yVXNlcklkPTg0NjgyNiZ3aWRnZXRJZD1jb21tZW50cyZhbGxvd0luc2VydD0xJmFsbG93UmVwbHk9MSZyZXR1cm5Vcmw9aHR0cHMlM0ElMkYlMkZ3d3cubXRoaWtlci5zayUyRmFrdGl2aXR5JTJGMjAwODA1MyUyRmJpY3lrZWwtanVyemlrLmh0bWwmcGFyc2VkVXJsJTVCc2NoZW1lJTVEPWh0dHBzJnBhcnNlZFVybCU1Qmhvc3QlNUQ9d3d3Lm10aGlrZXIuc2smcGFyc2VkVXJsJTVCcGF0aCU1RD0lMkZha3Rpdml0eSUyRjIwMDgwNTMlMkZiaWN5a2VsLWp1cnppay5odG1sJmluY2x1ZGVDb21tZW50SWQ9MA|" + sort + "|" + filter; if (inputName === 'filter') { if (parseInt(filter) === 3 && !customScoreDone) { loadScoreSettingsModal(); return false; } } $('#comments .comments-body-content').addClass('show-loading'); $.ajax({ url: url, success: function(data) { $('#comments .comments-body-content').html(data).removeClass('show-loading'); } }); }); }); // Comments function toggleHiddenComment(comment_id) { $("#commentBox" + comment_id + " .comment-hidden").remove(); $("#commentBox" + comment_id + " .comment-content").show(); } function closeScoreFilterBanner() { $('#commentsScoreFilterBanner').fadeOut(150); $.post('/ajax.php?m=komentare&f=closeScoreFilterBanner'); } function commentsScroll(toElement, offset, noAnimation){ // edit/reply from feed link if ((typeof toElement === 'string' || toElement instanceof String) && toElement.indexOf('#commentBox') >= 0) { let commentId = parseInt(toElement.replace('#commentBox', '')); if (!isNaN(commentId) && commentId) { if (parseInt(localStorage.getItem('replyToCommentId')) === commentId) { localStorage.removeItem('replyToCommentId'); if ($('.comment-reply-btn', toElement).length) { history.replaceState(null, null, ' '); setTimeout(function(){ $('.comment-reply-btn', toElement).first().click(); }, 0); return; } } else if(parseInt(localStorage.getItem('editCommentId')) === commentId) { localStorage.removeItem('editCommentId'); if ( $('.comment-edit-btn', toElement).length) { history.replaceState(null, null, ' '); $('.comment-edit-btn', toElement).first().click(); return; } } } } if (!offset) offset = 0; if (!window.matchMedia("(min-width: 768px)").matches && true) { if ($(toElement).length) { $(toElement).closest('.comments-body-content').scrollTo( toElement, 800, {offset: -10 + offset} ); } } else { if ($(toElement).length){ var headerhHeight = 120 + ($('#shop-info-bar').length ? $('#shop-info-bar').outerHeight() : 0); if (!window.matchMedia("(min-width: 768px)").matches){ headerhHeight = $('#header').outerHeight() + $('#shop-detail-nav').outerHeight() + 20; } if (noAnimation){ setTimeout(function(){ $(window).scrollTop($(toElement).offset().top - headerhHeight + offset); }, 100); var dontScrollAgain = false; setTimeout(function(){ dontScrollAgain = true; }, 3000); $(window).on('load', function(){ if (!dontScrollAgain) $(window).scrollTop($(toElement).offset().top - headerhHeight + offset); }); } else { $.scrollTo( toElement, 800, {offset: -headerhHeight + offset} ); } } } } var customScoreDone = false; function loadMoreComments(btn) { let $btn = $(btn); if ($btn.find('.spinner-border:visible').length) { return false; } let nextPage = parseInt($btn.data('page')) + 1; let perPage = parseInt($btn.data('per-page')); $btn.find('.spinner-border').css("display", "inline-block"); $btnWrap = $btn.closest('.comment-load-more-wrap'); $.get("/ajax.php?m=komentare&f=loadMoreComments&a=" + $btn.data('params') + "|" + $btn.data('sort') + '|' + $btn.data('score') + '|' + nextPage, "", function (data) { $data = $('
' + data + '
'); $btnWrap.before($data.html()); $btn.find('.spinner-border').css("display", "none"); $btn.data('page', nextPage); if ($data.find('.comment:not(.comment-reply)').length < perPage) { $btnWrap.hide(); } }); } function scrollAndHighlightComment(commentBoxId, noAnimation){ if ($(commentBoxId).length){ let commentEl = $(commentBoxId); $('.comments .highlighted-animated').removeClass('highlighted-animated'); setTimeout(function(){ commentEl.addClass('highlighted-animated'); commentsScroll( commentBoxId, null, noAnimation); }, 10); } } function resetCommentForm($parent) { $('.comment-form-title-insert', $parent).show(); $('.comment-form-title-reply', $parent).hide(); $("[name=parent]", $parent).val(''); $("textarea", $parent).val(''); let widgetId = $parent.attr('id'); let $legend = $(".comment-form legend", $parent); if ($legend.data('text-original')) { $legend.html($legend.data('text-original')); } let $btn = $(".comment-form button.btn-comment-submit", $parent); if ($btn.data('text-original')) { $btn.html($btn.data('text-original')); } if (typeof window['commentFileUploader' + widgetId] !== 'undefined') { window['commentFileUploader' + widgetId].resetFiles(); } } $(function(){ var scrollToComment = false; function handleCommentBoxHash() { if (location.hash.indexOf('commentBox')>=0 || location.hash.indexOf('#comments-')>=0){ var hash = location.hash; var widgetId = '#comments'; hashParts = hash.split('/'); if (hashParts.length > 1) { widgetId = hashParts[0]; hash = '#' + hashParts[1]; // location.hash = #reviews/commentBox224814 } if (!window.matchMedia("(min-width: 768px)").matches){ var commentId = hash.replace('#commentBox', '').replace('#comments-',''); $('#commentBox' + commentId).parents('.mobile-expander').find('.mobile-expander-check').prop('checked', 'checked').trigger('change'); } if (hash.indexOf('#comments-')>=0 || hash.indexOf('#commentBox')>=0){ // from foreign url - highlight comment hash = hash.replace('#comments-','#commentBox'); scrollAndHighlightComment(hash, true); history.replaceState(null, null, widgetId); scrollToComment = true; } else { commentsScroll( hash, null, true ); //remove hash history.replaceState(null, null, ' '); scrollToComment = false; } } else { scrollToComment = false; } } handleCommentBoxHash(); $(window).on('hashchange', function() { handleCommentBoxHash(); }); if (location.hash.indexOf('#form-')>=0){ var hash = location.hash; commentsScroll( hash, null, true ); //remove hash history.replaceState(null, null, ' '); } if (location.hash == '#questions' || location.hash == '#reviews' || location.hash == '#comments'){ var widgetId = location.hash; if (!$(widgetId).length) widgetId = '#questions'; if ($(widgetId).length && !scrollToComment){ if (!window.matchMedia("(min-width: 768px)").matches){ $(widgetId + '-expander').prop('checked', 'checked').trigger('change'); } if ($('.comment-unread', widgetId).length){ commentsScroll('#'+$('.comment-unread', widgetId).first().attr('id'), null, true); } else { commentsScroll(widgetId, null, true); } } } $('.comments').on('click', '.btn-comment-show-insert-popup', function(){ var $parent = $(this).closest('.comments'); resetCommentForm($parent); }); }); $(function(){ $('textarea', '.comments').on('input', function(){ if ($(this).val().length){ $('.comment-form .btn').addClass('mobile-active'); }else{ $('.comment-form .btn').removeClass('mobile-active'); } $(this).removeClass('is-invalid'); }); function setCommentTextareaPlaceholder(){ if (window.matchMedia("(min-width: 768px)").matches){ $('textarea', '.comments').attr('placeholder', $('textarea', '.comments').data('placeholder-desktop')); }else{ $('textarea', '.comments').attr('placeholder', $('textarea', '.comments').data('placeholder-mobile')); } } setCommentTextareaPlaceholder(); $(window).resize(function(){ setCommentTextareaPlaceholder(); }); }); $(function(){ $('.comment-form button[type=submit]').attr('disabled', 'disabled'); $('.comment-form textarea').click(function(){ $('#loginModal').modal('show'); }); }); // #TODO function hideForumPosts() { $('.forum_post_hidden').each(function(){ target = $(this).data('target'); forum_post = $(this).parent('.post_tools').siblings('.post_message'); $(this).show().insertAfter(forum_post); forum_post.hide(); forum_post.parent('.post_right').parent('.post_container').addClass('hiddenForumPost'); }); } $(function(){ hideForumPosts(); }); // #TODO function hideForumPost(postId) { el = $('#' + postId); message = el.siblings('.post_message'); el.remove(); message.show(); message.parent('.post_right').parent('.post_container').removeClass('hiddenForumPost'); } function close_what_we_can_do(id) { $('#we_can_do_better_' + id).hide(); return false; } function send_what_we_can_do(id, id_user) { var $el = $('#we_can_do_better_' + id); $el.addClass('show-loading'); var selectedOption = $('input:radio[name=input_we_can_do_input_' + id + ']:checked').val() var text = $('#input_we_can_do_textarea_' + id).val(); $.get('/ajax.php?u=misc&f=userVoteDownComment&a=' + selectedOption + '|' + id_user + '|' + text + '|' + id , function(data){ close_what_we_can_do(id); $el.removeClass('show-loading'); showMessage('Tvoja spätná väzba bola úspešne odoslaná.'); } ); } $(function() { $('body').on('click', '.user_votes a.user_votes_link', function(e){ if ($(this).hasClass('inactive')) return false; var fn = $(this).data('rel'); var hash = $(this).attr('hash'); var contentId = $(this).parent().attr('contentid'); var contentType = $(this).parent().attr('contenttype'); var contentUserId = $(this).parent().attr('contentuserid'); var parent = $(this).parent().parent(); var voteTop = 0; if($(this).closest(".metadata-line").length>0) { voteTop = 1; } $(this).tooltip('hide'); $.get('/ajax.php?u=misc&f=userContentVotesAjax&a=' + contentId + '|' + contentType + '|' + contentUserId + '|' + fn + '|' + hash + '|0|1', function(data){ if (data.startsWith('ok')) { data = data.substr(2); } $('.user_votes' + contentType + contentId).replaceWith(data); if (contentType === 'article') { if (fn === 'voteDown') { var position = parent.offset(); var topclick = position.top + 15 - parent.closest('.container.position-relative').offset().top; var leftclick = position.left + 20 - parent.closest('.container.position-relative').offset().left; $('#we_can_do_better_' + contentId).css({top: topclick, left: leftclick}); $('#we_can_do_better_' + contentId).show(); } else { $('#we_can_do_better_' + contentId).hide(); } } } ); return false; }); }); if (!showRideFormModal) { function showRideFormModal(id, asTemplate){ var $rideFormModal = $('#rideFormModal'); if (typeof id === 'undefined') id = ''; asTemplate = asTemplate ? 1 : 0; $.ajax({ url: '/ajax.php?m=Vyjazdy&f=ajaxFormModal&a=' + id + '|0' + '|' + asTemplate, success: function(data){ $rideFormModal.find('.modal-body').html(data); if (asTemplate){ $rideFormModal.find('.ride-form-edit, .ride-form-new').hide(); $rideFormModal.find('.ride-form-duplicate').show(); } else { $rideFormModal.find('.ride-form-duplicate').hide(); $rideFormModal.find('.ride-form-'+(id ? 'new' : 'edit')).hide(); $rideFormModal.find('.ride-form-'+(id ? 'edit' : 'new')).show(); } $rideFormModal.modal({ backdrop: 'static' }); }, error: function(data){ showMessage(data.responseText, 'error', data.responseText.indexOf('= 0 ? 10000 : 3500); } }); return false; } } var emailConsentModalActiveEl; var emailConsentModalActiveSection = false; var emailConsentModalAgreed = false; function emailConsentModal(el, section){ var $el = $(el); if ($el.is(':checked') || !$el.is("input")){ // checked checkbox, or button/link emailConsentModalActiveEl = $(el); var $modal = $('#modalEmailConsent'); emailConsentModalActiveSection = section; if (section){ $('[data-section="general"]', $modal).hide(); $('[data-section="newsletter"]', $modal).hide(); $('[data-section="shop"]', $modal).hide(); $('[data-section="sale"]', $modal).hide(); $('[data-section="' + section + '"]', $modal).show(); } else { $('.mec-title').hide(); $('[data-section="general"]', $modal).show(); } emailConsentModalSubOptions(); emailConsentModalAgreed = false; $('#modalEmailConsent').modal('show'); } } function emailConsentModalSubOptions(){ $('.sub-options-emails').each(function() { var $subOptions = $(this); if ($subOptions.parent().find('.custom-switch input:checked, .custom-checkbox input:checked').length){ $subOptions.show(); if (!$subOptions.find('input:checked').length){ $subOptions.find('input').first().prop('checked', true); } } else { $subOptions.hide(); $subOptions.find('input').prop('checked', false); } }); } function emailConsentModalOnAgreed(){ var $modal = $('#modalEmailConsent'); emailConsentModalAgreed = true; var sectionWrap = emailConsentModalActiveSection ? '[data-section="' + emailConsentModalActiveSection + '"] ' : ''; var inputs = ''; $(sectionWrap + 'input[type=hidden], input:checked', $modal).each(function(){ var $this = $(this); inputs = inputs + ''; }); emailConsentModalActiveEl.prev('.mec-inputs').remove(); $('' + inputs + '').insertBefore(emailConsentModalActiveEl); $('#modalEmailConsent').modal('hide'); } $(function() { $('input[name="agreed_emails"]').on('change', function(){ emailConsentModal(this); }); emailConsentModalSubOptions(); $('#mec_user_newsletter_agreed, #user_newsletter_agreed').on('change', emailConsentModalSubOptions ); $('input:radio, input:checkbox','#modalEmailConsent').on('change', function(){ $modal = $('#modalEmailConsent'); $('.modal-footer .btn', $modal).prop('disabled', !$('input:checked:visible', $modal).length); }); $('#modalEmailConsent').on('hidden.bs.modal', function (e) { $modal = $(this); if (!emailConsentModalAgreed){ if (emailConsentModalActiveEl.val() === 'weekly'){ $('input[value=monthly]', $modal).prop('checked', false); } else if (emailConsentModalActiveEl.val() === 'monthly'){ $('input[value=weekly]', $modal).prop('checked', false); } else { emailConsentModalActiveEl.prop('checked', false); } emailConsentModalActiveEl.prev('.mec-inputs').remove(); } emailConsentModalActiveSection = false; emailConsentModalSubOptions(); if ($('#registrationModal.modal').hasClass('show')) { setTimeout(function(){ $('body').addClass('modal-open'); // registration modal is still opened }, 20); } }); }); $(function(){ $(".js-reject-cookies").attr("role", "button"); $(".js-reject-cookies").click(function(e){ e.preventDefault(); $.ajax({type: "POST",url: "/account/cookie-consent",data: {functional:0,analytical:0,commercial:0} }); $("#biscuitModal").fadeOut(250); return false; }); $(".biscuit-close").click(function(){ $.ajax({type: "POST",url: "/account/cookie-consent",data: {necessary:1,functional:1,analytical:1,commercial:1} }); $("#biscuitModal").fadeOut(250); $(".biscuit-checkboxes .custom-control-input").attr("checked", true); updateGoogleAnalyticsConsent(); updateBingConsent(); sendGoogleAnalyticsPageview(); return false; }); $(".biscuit-settings").click(function(){ $(this).addClass("loading-simple"); $.ajax({type: "POST",url: "/account/cookie-consent",data: {functional:0,analytical:0,commercial:0} }).always(function(){ window.location = "https://www.mthiker.sk/cookies"; }); }); }); -->