$(document).ready(function() { mapboxgl.accessToken = 'pk.eyJ1Ijoiam90dW50cmF2ZWwiLCJhIjoiY2pwYXlhYW4yMjBhazNwbzNkbDB0Z2FkcCJ9.puxFN_Tq9avC9vFwXfk-TQ'; var map85 = new mapboxgl.Map({ container: 'map85', style: 'mapbox://styles/jotuntravel/cjpayd53v05jr2st680kx34zn?optimize=true', center: [8.201600,61.169300], zoom: 9.00}); map85.on('load', function() { map85.addLayer({ "id": "134", "type": "line", "source": { "type": "geojson", "data": { "type": "FeatureCollection", "features": [ { "type": "Feature", "properties": { "name": "Vindellavegen" }, "geometry": { "type": "LineString", "coordinates": [ [ 7.8131853, 61.0495905 ], [ 7.8136573, 61.0487024 ], [ 7.8143654, 61.0484479 ], [ 7.8145156, 61.0482506 ], [ 7.8142045, 61.0481467 ], [ 7.8137539, 61.0480896 ], [ 7.8135179, 61.0479649 ], [ 7.813196, 61.0478818 ], [ 7.81296, 61.0477156 ], [ 7.8128741, 61.0475391 ], [ 7.8127776, 61.0473313 ], [ 7.8127239, 61.0470457 ], [ 7.8124128, 61.0469729 ], [ 7.8122733, 61.0468898 ], [ 7.8122089, 61.0466561 ], [ 7.8128956, 61.0464016 ], [ 7.8127883, 61.0460952 ], [ 7.8109537, 61.0466561 ], [ 7.8104601, 61.0476897 ], [ 7.811018, 61.0487076 ], [ 7.8094409, 61.0492945 ], [ 7.8074453, 61.0479026 ], [ 7.8068552, 61.0472067 ], [ 7.8053103, 61.0466353 ], [ 7.8039799, 61.0461731 ], [ 7.8036366, 61.0458822 ], [ 7.8034649, 61.0458199 ], [ 7.803186, 61.0458043 ], [ 7.8028212, 61.0457939 ], [ 7.8028212, 61.0457005 ], [ 7.8029607, 61.0456537 ], [ 7.8032396, 61.0455654 ], [ 7.8034006, 61.0454979 ], [ 7.8033898, 61.0452953 ], [ 7.8032718, 61.0451862 ], [ 7.8030894, 61.045207 ], [ 7.8030251, 61.0453213 ], [ 7.8029499, 61.0454459 ], [ 7.8027676, 61.0454979 ], [ 7.8026174, 61.0454615 ], [ 7.8025637, 61.0453005 ], [ 7.8025744, 61.0450564 ], [ 7.8024993, 61.0448694 ], [ 7.8022204, 61.0447811 ], [ 7.8013514, 61.0446824 ], [ 7.8004501, 61.0446564 ], [ 7.7992163, 61.0449317 ], [ 7.7987013, 61.0448902 ], [ 7.7983902, 61.0447707 ], [ 7.7979074, 61.0444798 ], [ 7.7976284, 61.0440643 ], [ 7.7972637, 61.0436124 ], [ 7.7971027, 61.0433787 ], [ 7.7968345, 61.043041 ], [ 7.7965985, 61.0429683 ], [ 7.796341, 61.0430566 ], [ 7.7963088, 61.04328 ], [ 7.7960406, 61.043441 ], [ 7.7959118, 61.0436176 ] ] } } ] } }, "layout": { "line-join": "round", "line-cap": "round" }, "paint": { "line-color": "#000000", "line-width": 3 } }); map85.addLayer({ "id": "155", "type": "line", "source": { "type": "geojson", "data": { "type": "FeatureCollection", "features": [ { "type": "Feature", "properties": {}, "geometry": { "type": "LineString", "coordinates": [ [ 8.39989, 61.167669, 482.6 ], [ 8.399528, 61.167713, 483.3 ], [ 8.391025, 61.170983, 476.4 ], [ 8.389873, 61.171522, 479.8 ], [ 8.388607, 61.172324, 485.6 ], [ 8.388292, 61.172683, 486.7 ], [ 8.38808, 61.173669, 483.8 ], [ 8.387551, 61.175007, 486.6 ], [ 8.387178, 61.175645, 491.4 ], [ 8.38707, 61.176363, 495.2 ], [ 8.386651, 61.177203, 506.5 ], [ 8.386655, 61.177437, 508.4 ], [ 8.386795, 61.177622, 508.5 ], [ 8.387652, 61.177887, 504.3 ], [ 8.387335, 61.177981, 507.5 ], [ 8.387085, 61.178231, 512.1 ], [ 8.386434, 61.178602, 523.2 ], [ 8.38603, 61.179089, 535.3 ], [ 8.385627, 61.180225, 551.4 ], [ 8.385006, 61.181148, 559.2 ], [ 8.38448, 61.182726, 558.9 ], [ 8.384348, 61.182901, 559.7 ], [ 8.384191, 61.183377, 557.2 ], [ 8.383787, 61.185545, 536 ], [ 8.38326, 61.186214, 534.9 ], [ 8.383329, 61.186372, 532 ], [ 8.382492, 61.187162, 532.4 ], [ 8.382011, 61.187801, 528.3 ], [ 8.381256, 61.188394, 530.6 ], [ 8.380761, 61.189166, 528.1 ], [ 8.379674, 61.190175, 531.3 ], [ 8.379057, 61.191074, 531.7 ], [ 8.378709, 61.191385, 533.4 ], [ 8.37814, 61.191296, 544.7 ], [ 8.376474, 61.192222, 558.5 ], [ 8.371932, 61.194426, 568.1 ], [ 8.369894, 61.196244, 543.7 ], [ 8.365327, 61.200531, 554.6 ], [ 8.363731, 61.202151, 571.7 ], [ 8.363362, 61.202415, 576.6 ], [ 8.363339, 61.202769, 576.2 ], [ 8.363209, 61.202937, 578.1 ], [ 8.362604, 61.20326, 588.2 ], [ 8.360784, 61.203882, 602.8 ], [ 8.359679, 61.204154, 603.2 ], [ 8.359016, 61.204161, 606.3 ], [ 8.358312, 61.204027, 612.6 ], [ 8.357049, 61.204067, 612.1 ], [ 8.356771, 61.204154, 609.7 ], [ 8.356558, 61.204343, 603.6 ], [ 8.356018, 61.204477, 601.1 ], [ 8.354479, 61.204509, 606 ], [ 8.352982, 61.204977, 596.2 ], [ 8.350115, 61.205334, 598.7 ], [ 8.350164, 61.20538, 597.4 ], [ 8.349469, 61.205536, 598.3 ], [ 8.347836, 61.205835, 600.1 ], [ 8.342131, 61.20625, 606.4 ], [ 8.334915, 61.206642, 632.7 ], [ 8.331336, 61.207138, 642.5 ], [ 8.329304, 61.20727, 657.2 ], [ 8.326847, 61.207299, 671.8 ], [ 8.319177, 61.206913, 700.3 ], [ 8.315575, 61.206675, 714.5 ], [ 8.312962, 61.206235, 726.7 ], [ 8.309908, 61.206266, 737.6 ], [ 8.307725, 61.206116, 755.5 ], [ 8.306306, 61.206385, 746.4 ], [ 8.30508, 61.206437, 745.6 ], [ 8.301897, 61.206442, 746.5 ], [ 8.299241, 61.206312, 753.3 ], [ 8.295993, 61.206473, 757.4 ], [ 8.292703, 61.206924, 750.9 ], [ 8.290423, 61.206996, 763.3 ], [ 8.289638, 61.207115, 762.9 ], [ 8.287209, 61.207093, 761.9 ], [ 8.285662, 61.206877, 759.4 ], [ 8.282311, 61.205904, 767.1 ], [ 8.279487, 61.205606, 786.6 ], [ 8.277998, 61.205129, 799.3 ], [ 8.275991, 61.204958, 796.4 ], [ 8.269293, 61.204002, 793.3 ], [ 8.265228, 61.203534, 798.8 ], [ 8.264698, 61.203534, 798.7 ], [ 8.260776, 61.204107, 808.9 ], [ 8.259062, 61.20454, 815 ], [ 8.258735, 61.204725, 813.9 ], [ 8.258304, 61.204817, 816.1 ], [ 8.258206, 61.204826, 816.8 ], [ 8.257862, 61.204534, 826.3 ], [ 8.257539, 61.204483, 830.2 ], [ 8.256919, 61.204484, 833.6 ], [ 8.255751, 61.204728, 831.5 ], [ 8.254597, 61.20452, 833.7 ], [ 8.248107, 61.202834, 841.3 ], [ 8.245947, 61.201969, 843.3 ], [ 8.242894, 61.201354, 840.2 ], [ 8.238687, 61.199961, 861.4 ], [ 8.235624, 61.198243, 895.9 ], [ 8.233665, 61.197342, 906.3 ], [ 8.233716, 61.197217, 905.5 ], [ 8.233559, 61.197283, 906.9 ], [ 8.233665, 61.197342, 906.3 ], [ 8.233848, 61.19694, 904.6 ], [ 8.234055, 61.196816, 904.1 ], [ 8.235357, 61.196547, 907.7 ], [ 8.235797, 61.196352, 913 ], [ 8.2357, 61.196392, 911.8 ], [ 8.235106, 61.196186, 913.9 ], [ 8.235156, 61.196089, 916.4 ], [ 8.235512, 61.196065, 918.6 ] ] } } ] } }, "layout": { "line-join": "round", "line-cap": "round" }, "paint": { "line-color": "#000000", "line-width": 3 } }); map85.addLayer({ "id": "163", "type": "line", "source": { "type": "geojson", "data": { "type": "FeatureCollection", "features": [ { "type": "Feature", "properties": {}, "geometry": { "type": "LineString", "coordinates": [ [ 8.03505, 61.11037, 810.06 ], [ 8.03494, 61.11025, 810 ], [ 8.03512, 61.11012, 810 ], [ 8.03569, 61.11011, 812.556 ], [ 8.03596, 61.11088, 820.872 ], [ 8.03627, 61.11133, 828.629 ], [ 8.03633, 61.1119, 837.386 ], [ 8.03683, 61.11282, 865.765 ], [ 8.03706, 61.11368, 892.465 ], [ 8.03732, 61.11408, 903.512 ], [ 8.03743, 61.11451, 909.523 ], [ 8.03778, 61.115, 919.016 ], [ 8.03848, 61.11529, 924.493 ], [ 8.04191, 61.11727, 950.924 ], [ 8.04399, 61.1186, 990.597 ], [ 8.04498, 61.1196, 1009.993 ], [ 8.04586, 61.12032, 1030.307 ], [ 8.04724, 61.12162, 1060.352 ], [ 8.04768, 61.12345, 1097.636 ], [ 8.04823, 61.12425, 1122.216 ], [ 8.04921, 61.12529, 1158.24 ], [ 8.05047, 61.1262, 1182.228 ], [ 8.0513, 61.12753, 1204.324 ], [ 8.05157, 61.12779, 1206.509 ], [ 8.05626, 61.13059, 1211.124 ], [ 8.05634, 61.13089, 1212.168 ], [ 8.05682, 61.13089, 1213.317 ], [ 8.06241, 61.13415, 1222.616 ], [ 8.064, 61.13527, 1224.506 ], [ 8.06504, 61.13615, 1219.86 ], [ 8.06511, 61.13688, 1219.768 ], [ 8.06499, 61.13744, 1220 ], [ 8.06408, 61.14058, 1238.872 ], [ 8.06411, 61.14155, 1222.26 ], [ 8.06393, 61.14368, 1226.544 ], [ 8.06397, 61.14464, 1229.168 ], [ 8.06434, 61.14531, 1229.568 ], [ 8.06576, 61.14692, 1219.912 ], [ 8.06629, 61.14733, 1217.086 ], [ 8.06718, 61.14842, 1210.688 ], [ 8.06843, 61.14964, 1213.348 ], [ 8.06929, 61.15096, 1219.444 ], [ 8.06932, 61.1512, 1219.552 ], [ 8.06913, 61.15295, 1246.976 ], [ 8.06808, 61.15532, 1243.341 ], [ 8.06756, 61.15678, 1238.8 ], [ 8.07095, 61.15889, 1212.652 ], [ 8.07387, 61.16048, 1191.496 ], [ 8.07406, 61.16068, 1189.056 ], [ 8.07444, 61.16085, 1187.549 ], [ 8.07611, 61.16201, 1175.572 ], [ 8.07642, 61.16212, 1176.912 ], [ 8.07796, 61.16319, 1165.434 ], [ 8.08153, 61.16519, 1140.073 ], [ 8.08269, 61.16559, 1131.76 ], [ 8.08444, 61.16589, 1121.76 ], [ 8.08665, 61.16659, 1105.424 ], [ 8.08742, 61.167, 1101.624 ], [ 8.08856, 61.16779, 1095.7 ], [ 8.08898, 61.16847, 1085.048 ], [ 8.09158, 61.16981, 1063.98 ], [ 8.09213, 61.17023, 1061.882 ], [ 8.09265, 61.17039, 1058.1 ], [ 8.09796, 61.17286, 1015.328 ], [ 8.09919, 61.17306, 1006.816 ], [ 8.09994, 61.1733, 999.458 ], [ 8.10127, 61.17338, 986.116 ], [ 8.10367, 61.17283, 969.2 ], [ 8.10461, 61.17283, 963.356 ], [ 8.10561, 61.17237, 965.652 ], [ 8.10869, 61.17213, 965.424 ], [ 8.11115, 61.17217, 965.215 ], [ 8.11344, 61.17247, 958.94 ], [ 8.11722, 61.17371, 959.628 ], [ 8.11768, 61.17399, 958.508 ], [ 8.11813, 61.17444, 960.236 ], [ 8.11896, 61.17495, 960.75 ], [ 8.11891, 61.17631, 966.152 ], [ 8.11898, 61.17662, 966.656 ], [ 8.12021, 61.17748, 965.442 ], [ 8.12144, 61.17776, 958.384 ], [ 8.12187, 61.1782, 960.04 ], [ 8.12209, 61.17865, 965.084 ], [ 8.12159, 61.17895, 967.229 ], [ 8.11889, 61.179, 960.8 ], [ 8.11873, 61.17917, 962.024 ], [ 8.11873, 61.1796, 965.68 ], [ 8.11856, 61.17971, 966.876 ], [ 8.11886, 61.17993, 969.244 ], [ 8.11864, 61.18008, 970.576 ], [ 8.1187, 61.17979, 967.732 ], [ 8.11822, 61.17978, 967.539 ] ] } } ] } }, "layout": { "line-join": "round", "line-cap": "round" }, "paint": { "line-color": "#000000", "line-width": 3 } }); // Add a layer showing the places. map85.addLayer({ "id": "places", "type": "symbol", "source": { "type": "geojson", "data": { "type": "FeatureCollection", "features": [ { "type": "Feature", "properties": { "description": "Bergo Hotel
", "icon": "lodging" }, "geometry": { "type": "Point", "coordinates": [8.904939,61.248140] } }, { "type": "Feature", "properties": { "description": "Bessheim Fjellstue og Hytter
", "icon": "lodging" }, "geometry": { "type": "Point", "coordinates": [8.853032,61.514633] } }, { "type": "Feature", "properties": { "description": "Bjørnhollia
", "icon": "lodging" }, "geometry": { "type": "Point", "coordinates": [10.009328,61.884619] } }, { "type": "Feature", "properties": { "description": "Brimi Sæter
", "icon": "lodging" }, "geometry": { "type": "Point", "coordinates": [8.914364,61.807016] } }, { "type": "Feature", "properties": { "description": "Bygdin Høifieldshotell
", "icon": "lodging" }, "geometry": { "type": "Point", "coordinates": [8.798933,61.327682] } }, { "type": "Feature", "properties": { "description": "Dovregubbens Hall
", "icon": "lodging" }, "geometry": { "type": "Point", "coordinates": [9.429248,62.174605] } }, { "type": "Feature", "properties": { "description": "Eidsbugarden
", "icon": "lodging" }, "geometry": { "type": "Point", "coordinates": [8.299659,61.375545] } }, { "type": "Feature", "properties": { "description": "Fagernes Camping Park
", "icon": "lodging" }, "geometry": { "type": "Point", "coordinates": [9.231487,60.981882] } }, { "type": "Feature", "properties": { "description": "Fannaråkhytta DNT
", "icon": "lodging" }, "geometry": { "type": "Point", "coordinates": [7.906140,61.516652] } }, { "type": "Feature", "properties": { "description": "Fondsbu DNT
", "icon": "lodging" }, "geometry": { "type": "Point", "coordinates": [8.297473,61.375190] } }, { "type": "Feature", "properties": { "description": "Gjendebu DNT
", "icon": "lodging" }, "geometry": { "type": "Point", "coordinates": [8.488513,61.451376] } }, { "type": "Feature", "properties": { "description": "Gjendesheim DNT
", "icon": "lodging" }, "geometry": { "type": "Point", "coordinates": [8.812676,61.494328] } }, { "type": "Feature", "properties": { "description": "Glitterheim DNT
", "icon": "lodging" }, "geometry": { "type": "Point", "coordinates": [8.632970,61.622873] } }, { "type": "Feature", "properties": { "description": "Gomobu Fjellstue
", "icon": "lodging" }, "geometry": { "type": "Point", "coordinates": [8.985942,60.980678] } }, { "type": "Feature", "properties": { "description": "Grimsdalshytta DNT
", "icon": "lodging" }, "geometry": { "type": "Point", "coordinates": [9.639533,62.091329] } }, { "type": "Feature", "properties": { "description": "Grønolen Fjellgard
", "icon": "lodging" }, "geometry": { "type": "Point", "coordinates": [8.841270,61.241373] } }, { "type": "Feature", "properties": { "description": "Hageseter Turisthytte
", "icon": "lodging" }, "geometry": { "type": "Point", "coordinates": [9.547282,62.195556] } }, { "type": "Feature", "properties": { "description": "Herangtunet
", "icon": "lodging" }, "geometry": { "type": "Point", "coordinates": [9.081765,61.130138] } }, { "type": "Feature", "properties": { "description": "Hjerkinn Fjellstue
", "icon": "lodging" }, "geometry": { "type": "Point", "coordinates": [9.547206,62.224448] } }, { "type": "Feature", "properties": { "description": "Indre Ofredal - ne fø' sjøen
", "icon": "lodging" }, "geometry": { "type": "Point", "coordinates": [7.532371,61.208726] } }, { "type": "Feature", "properties": { "description": "Jotunheimen Husky Lodge
", "icon": "lodging" }, "geometry": { "type": "Point", "coordinates": [9.051462,61.717341] } }, { "type": "Feature", "properties": { "description": "Jotunheimen Panorama
", "icon": "lodging" }, "geometry": { "type": "Point", "coordinates": [8.336045,61.717157] } }, { "type": "Feature", "properties": { "description": "Kamben Høyfjellshotell
", "icon": "lodging" }, "geometry": { "type": "Point", "coordinates": [8.979579,60.802287] } }, { "type": "Feature", "properties": { "description": "Klingenberg Hotel
", "icon": "lodging" }, "geometry": { "type": "Point", "coordinates": [7.701000,61.235398] } }, { "type": "Feature", "properties": { "description": "Leirvassbu Fjellstue
", "icon": "lodging" }, "geometry": { "type": "Point", "coordinates": [8.247085,61.549019] } }, { "type": "Feature", "properties": { "description": "Lemonsjøen Fjellstue
", "icon": "lodging" }, "geometry": { "type": "Point", "coordinates": [9.074385,61.759203] } }, { "type": "Feature", "properties": { "description": "Memurubu
", "icon": "lodging" }, "geometry": { "type": "Point", "coordinates": [8.630078,61.490802] } }, { "type": "Feature", "properties": { "description": "Nørdstedalseter DNT
", "icon": "lodging" }, "geometry": { "type": "Point", "coordinates": [7.790526,61.642778] } }, { "type": "Feature", "properties": { "description": "Nøsen Yoga and Mountain Resort
", "icon": "lodging" }, "geometry": { "type": "Point", "coordinates": [8.846820,60.938734] } }, { "type": "Feature", "properties": { "description": "Piltingsrud Gård
", "icon": "lodging" }, "geometry": { "type": "Point", "coordinates": [9.771409,60.655539] } }, { "type": "Feature", "properties": { "description": "Radisson BLU Mountain Resort Beitostølen
", "icon": "lodging" }, "geometry": { "type": "Point", "coordinates": [8.898775,61.249207] } }, { "type": "Feature", "properties": { "description": "Rondvassbu DNT
", "icon": "lodging" }, "geometry": { "type": "Point", "coordinates": [9.794238,61.878808] } }, { "type": "Feature", "properties": { "description": "Ruten Fjellstue
", "icon": "lodging" }, "geometry": { "type": "Point", "coordinates": [9.448610,61.472532] } }, { "type": "Feature", "properties": { "description": "Scandic Valdres
", "icon": "lodging" }, "geometry": { "type": "Point", "coordinates": [9.238262,60.985071] } }, { "type": "Feature", "properties": { "description": "Skogadalsbøen DNT
", "icon": "lodging" }, "geometry": { "type": "Point", "coordinates": [8.009270,61.462634] } }, { "type": "Feature", "properties": { "description": "Snøheim
", "icon": "lodging" }, "geometry": { "type": "Point", "coordinates": [9.351416,62.294039] } }, { "type": "Feature", "properties": { "description": "Snøheim DNT
", "icon": "lodging" }, "geometry": { "type": "Point", "coordinates": [9.349316,62.294061] } }, { "type": "Feature", "properties": { "description": "Sota Sæter DNT
", "icon": "lodging" }, "geometry": { "type": "Point", "coordinates": [7.708122,61.809172] } }, { "type": "Feature", "properties": { "description": "Spiterstulen turisthytte
", "icon": "lodging" }, "geometry": { "type": "Point", "coordinates": [8.404525,61.624846] } }, { "type": "Feature", "properties": { "description": "Storefjell Resort Hotel
", "icon": "lodging" }, "geometry": { "type": "Point", "coordinates": [8.952295,60.803816] } }, { "type": "Feature", "properties": { "description": "Syndinstøga
", "icon": "lodging" }, "geometry": { "type": "Point", "coordinates": [8.738664,61.089835] } }, { "type": "Feature", "properties": { "description": "Thon Hotel Astoria
", "icon": "lodging" }, "geometry": { "type": "Point", "coordinates": [10.746812,59.911162] } }, { "type": "Feature", "properties": { "description": "Thon Hotel Opera
", "icon": "lodging" }, "geometry": { "type": "Point", "coordinates": [10.753206,59.909483] } }, { "type": "Feature", "properties": { "description": "Toftemo Turiststasjon
", "icon": "lodging" }, "geometry": { "type": "Point", "coordinates": [9.220979,61.999496] } }, { "type": "Feature", "properties": { "description": "Torfinnsbu DNT
", "icon": "lodging" }, "geometry": { "type": "Point", "coordinates": [8.595949,61.356169] } }, { "type": "Feature", "properties": { "description": "Trolltun gjestegård
", "icon": "lodging" }, "geometry": { "type": "Point", "coordinates": [9.144226,62.077458] } }, { "type": "Feature", "properties": { "description": "Turtagrø Hotel
", "icon": "lodging" }, "geometry": { "type": "Point", "coordinates": [7.801624,61.504360] } }, { "type": "Feature", "properties": { "description": "Tyin Filefjellstuene
", "icon": "lodging" }, "geometry": { "type": "Point", "coordinates": [8.233433,61.195964] } }, { "type": "Feature", "properties": { "description": "Tyinholmen Høyfjellsstuer
", "icon": "lodging" }, "geometry": { "type": "Point", "coordinates": [8.257920,61.354764] } }, { "type": "Feature", "properties": { "description": "Vågå Hotel
", "icon": "lodging" }, "geometry": { "type": "Point", "coordinates": [9.098358,61.877716] } }, { "type": "Feature", "properties": { "description": "Vetti Gard Turiststasjon
", "icon": "lodging" }, "geometry": { "type": "Point", "coordinates": [7.926720,61.374821] } }, { "type": "Feature", "properties": { "description": "Avdalsfossen
", "icon": "attraction" }, "geometry": { "type": "Point", "coordinates": [7.887614,61.354128] } }, { "type": "Feature", "properties": { "description": "Besseggen
", "icon": "attraction" }, "geometry": { "type": "Point", "coordinates": [8.732235,61.503751] } }, { "type": "Feature", "properties": { "description": "Bitihorn
", "icon": "mountain" }, "geometry": { "type": "Point", "coordinates": [8.799419,61.294364] } }, { "type": "Feature", "properties": { "description": "Borgund Stave Church
", "icon": "religious-christian" }, "geometry": { "type": "Point", "coordinates": [7.812352,61.047251] } }, { "type": "Feature", "properties": { "description": "Falketind
", "icon": "mountain" }, "geometry": { "type": "Point", "coordinates": [8.087076,61.384517] } }, { "type": "Feature", "properties": { "description": "Galdhøpiggen
", "icon": "mountain" }, "geometry": { "type": "Point", "coordinates": [8.312798,61.636337] } }, { "type": "Feature", "properties": { "description": "Gjendebåten Harbour
", "icon": "harbor" }, "geometry": { "type": "Point", "coordinates": [8.633949,61.490515] } }, { "type": "Feature", "properties": { "description": "Gjendebåten Harbour
", "icon": "harbor" }, "geometry": { "type": "Point", "coordinates": [8.499444,61.453434] } }, { "type": "Feature", "properties": { "description": "Glittertind
", "icon": "mountain" }, "geometry": { "type": "Point", "coordinates": [8.556249,61.651136] } }, { "type": "Feature", "properties": { "description": "Hedalen Stave Church
", "icon": "religious-christian" }, "geometry": { "type": "Point", "coordinates": [9.690722,60.622458] } }, { "type": "Feature", "properties": { "description": "Hegge Stave Church
", "icon": "religious-christian" }, "geometry": { "type": "Point", "coordinates": [9.023674,61.157891] } }, { "type": "Feature", "properties": { "description": "Hjellefossen
", "icon": "attraction" }, "geometry": { "type": "Point", "coordinates": [7.881311,61.343956] } }, { "type": "Feature", "properties": { "description": "Hopperstad Stave Church
", "icon": "religious-christian" }, "geometry": { "type": "Point", "coordinates": [6.568880,61.077487] } }, { "type": "Feature", "properties": { "description": "Høre Stave Church
", "icon": "religious-christian" }, "geometry": { "type": "Point", "coordinates": [8.804541,61.153192] } }, { "type": "Feature", "properties": { "description": "Kaupanger Stave Church
", "icon": "religious-christian" }, "geometry": { "type": "Point", "coordinates": [7.233404,61.184168] } }, { "type": "Feature", "properties": { "description": "Knutshøe
", "icon": "mountain" }, "geometry": { "type": "Point", "coordinates": [8.755433,61.480078] } }, { "type": "Feature", "properties": { "description": "Kvitskardtinden
", "icon": "mountain" }, "geometry": { "type": "Point", "coordinates": [8.619846,61.399786] } }, { "type": "Feature", "properties": { "description": "Lom Stave Church
", "icon": "religious-christian" }, "geometry": { "type": "Point", "coordinates": [8.566227,61.839791] } }, { "type": "Feature", "properties": { "description": "Lomen Stave Church
", "icon": "religious-christian" }, "geometry": { "type": "Point", "coordinates": [8.890676,61.132829] } }, { "type": "Feature", "properties": { "description": "M/B Bitihorn - Harbour
", "icon": "harbor" }, "geometry": { "type": "Point", "coordinates": [8.299945,61.375461] } }, { "type": "Feature", "properties": { "description": "M/B Bitihorn - Harbour
", "icon": "harbor" }, "geometry": { "type": "Point", "coordinates": [8.795165,61.328534] } }, { "type": "Feature", "properties": { "description": "M/B Bitihorn - Harbour
", "icon": "harbor" }, "geometry": { "type": "Point", "coordinates": [8.595509,61.355922] } }, { "type": "Feature", "properties": { "description": "Mesmogtind
", "icon": "mountain" }, "geometry": { "type": "Point", "coordinates": [8.537838,61.404969] } }, { "type": "Feature", "properties": { "description": "Nørdre Kalvehølotinden
", "icon": "mountain" }, "geometry": { "type": "Point", "coordinates": [8.631152,61.371224] } }, { "type": "Feature", "properties": { "description": "Reinli Stave Church
", "icon": "religious-christian" }, "geometry": { "type": "Point", "coordinates": [9.492955,60.831504] } }, { "type": "Feature", "properties": { "description": "Svartdalen
", "icon": "attraction" }, "geometry": { "type": "Point", "coordinates": [8.563654,61.409720] } }, { "type": "Feature", "properties": { "description": "Synshorn
", "icon": "mountain" }, "geometry": { "type": "Point", "coordinates": [8.798034,61.336617] } }, { "type": "Feature", "properties": { "description": "The Knight’s leap (Ridderspranget)
", "icon": "attraction" }, "geometry": { "type": "Point", "coordinates": [9.094193,61.681322] } }, { "type": "Feature", "properties": { "description": "Uranostind
", "icon": "mountain" }, "geometry": { "type": "Point", "coordinates": [8.150264,61.426664] } }, { "type": "Feature", "properties": { "description": "Urnes Stave Church
", "icon": "religious-christian" }, "geometry": { "type": "Point", "coordinates": [7.322496,61.297989] } }, { "type": "Feature", "properties": { "description": "Vettifossen
", "icon": "attraction" }, "geometry": { "type": "Point", "coordinates": [7.940872,61.381340] } }, { "type": "Feature", "properties": { "description": "Vågå Stave Church
", "icon": "religious-christian" }, "geometry": { "type": "Point", "coordinates": [9.097187,61.875955] } }, { "type": "Feature", "properties": { "description": "Østre Torfinnstind
", "icon": "mountain" }, "geometry": { "type": "Point", "coordinates": [8.580219,61.372527] } }, { "type": "Feature", "properties": { "description": "Øye Stave Church
", "icon": "religious-christian" }, "geometry": { "type": "Point", "coordinates": [8.399859,61.167827] } },] } }, "layout": { "icon-image": "{icon}-15", "icon-allow-overlap": true } });// Add map layout. // Create a popup, but don't add it to the map yet. var popup = new mapboxgl.Popup({ closeButton: false, closeOnClick: false }); map85.on('mouseenter', 'places', function(e) { map85.getCanvas().style.cursor = 'pointer'; var coordinates2 = e.features[0].geometry.coordinates.slice(); var description = e.features[0].properties.description; while (Math.abs(e.lngLat.lng - coordinates2[0]) > 180) { coordinates2[0] += e.lngLat.lng > coordinates2[0] ? 360 : -360; } popup.setLngLat(coordinates2) .setHTML(description) .addTo(map85); }); map85.on('mouseleave', 'places', function() { map85.getCanvas().style.cursor = ''; popup.remove(); }); var coordinates = geojson.features[0].geometry.coordinates; var bounds = coordinates.reduce(function(bounds, coord) { return bounds.extend(coord); }, new mapboxgl.LngLatBounds(coordinates[0], coordinates[0])); map85.fitBounds(bounds, {padding: 20}); }); // Add zoom and rotation controls to the map. map85.addControl(new mapboxgl.NavigationControl()); // disable map zoom when using scroll map85.scrollZoom.disable(); // Add geolocate control to the map. map85.addControl( new mapboxgl.GeolocateControl({ positionOptions: { enableHighAccuracy: true }, trackUserLocation: true }) );});