loading

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.2684022130648356","path":"index.html","file":{"path":"index.html","content":{"asEncoding":{"base64":"PCFkb2N0eXBlIGh0bWw+CjxodG1sPgogIDxoZWFkPgogICAgPHRpdGxlPk1hcCBMZWFmbGV0IC0gZXhhbXBsZTwvdGl0bGU+CiAgICA8IS0tIGluY2x1ZGUgTGVhZmxldCBsaWJyYXJpZXMgLS0+CiAgICA8bGluayByZWw9InN0eWxlc2hlZXQiIGhyZWY9Imh0dHBzOi8vdW5wa2cuY29tL2xlYWZsZXRAMS4zLjEvZGlzdC9sZWFmbGV0LmNzcyIKICAgICAgaW50ZWdyaXR5PSJzaGE1MTItUmtzbTVSZW5CRUtTS0ZqZ0kzYTQxdnJqa3c0RVZQbEozK09pSTY1dlRqSWRvOWJybEFhY0V1S09pUTVPRmg3Y09JMWJrRHdMcWRMdzNaZzBjUkpBQVE9PSIKICAgICAgY3Jvc3NvcmlnaW49IiIvPgogICAgPHNjcmlwdCBzcmM9Imh0dHBzOi8vdW5wa2cuY29tL2xlYWZsZXRAMS4zLjEvZGlzdC9sZWFmbGV0LmpzIgogICAgICBpbnRlZ3JpdHk9InNoYTUxMi0vTnN4OVg0SGViYXZvQnZFQnV5cDNJN29kNXRBMFV6QXhzK2o4M0tnQzhQVTBrZ0I0WGlLNExmZTR5NGNnQnRhUkpRRUlGQ1crb0M1MDZhUFQyTDF6dz09IgogICAgICBjcm9zc29yaWdpbj0iIj48L3NjcmlwdD4KICA8L2hlYWQ+CiAgPGJvZHk+CiAgICA8ZGl2IGlkPSJtYXAiIHN0eWxlPSJoZWlnaHQ6MjgwcHg7IHdpZHRoOjUwMHB4OyIvPgoKICAgIDxzY3JpcHQ+CiAgICAgIHZhciBtYXAgPSBMLm1hcCgnbWFwJykuc2V0VmlldyhbNjAuMTkyMDU5LDI0Ljk0NTgzMV0sIDEzKTsKCiAgICAgIHZhciBub3JtYWxUaWxlcyA9IEwudGlsZUxheWVy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J4LnBuZycsIHsKICAgICAgICBhdHRyaWJ1dGlvbjogJ01hcCBkYXRhICZjb3B5OyA8YSBocmVmPSJodHRwOi8vb3BlbnN0cmVldG1hcC5vcmciPk9wZW5TdHJlZXRNYXA8L2E+IGNvbnRyaWJ1dG9ycywgJyArCiAgICAgICAgICAnPGEgaHJlZj0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbGljZW5zZXMvYnktc2EvMi4wLyI+Q0MtQlktU0E8L2E+JywKICAgICAgICBtYXhab29tOiAxOSwKICAgICAgICB0aWxlU2l6ZTogNTEyLAogICAgICAgIHpvb21PZmZzZXQ6IC0xLAogICAgICAgIGlkOiAnaHNsLW1hcCd9KTsKICAgICAgICAKICAgICAgTC5jb250cm9sLmxheWVycyh7CiAgICAgICAgIk5vcm1hbCI6IG5vcm1hbFRpbGVzLCAKICAgICAgICAiU3dlZGlzaCI6IHN3ZWRpc2gsCiAgICAgICAgIkhpZ2gtZGVuc2l0eSI6IGhkVGlsZXMKICAgICAgICB9LCBudWxsLCB7CiAgICAgICAgICBjb2xsYXBzZWQ6IGZhbHNlCiAgICAgICAgfSkuYWRkVG8obWFwKTsKICAgIDwvc2NyaXB0PgogIDwvYm9keT4KPC9odG1sPgo="},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<!doctype html>
<html>
  <head>
    <title>Map Leaflet - example</title>
    <!-- include Leaflet libraries -->
    <link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css"
      integrity="sha512-Rksm5RenBEKSKFjgI3a41vrjkw4EVPlJ3+OiI65vTjIdo9brlAacEuKOiQ5OFh7cOI1bkDwLqdLw3Zg0cRJAAQ=="
      crossorigin=""/>
    <script src="https://unpkg.com/[email protected]/dist/leaflet.js"
      integrity="sha512-/Nsx9X4HebavoBvEBuyp3I7od5tA0UzAxs+j83KgC8PU0kgB4XiK4Lfe4y4cgBtaRJQEIFCW+oC506aPT2L1zw=="
      crossorigin=""></script>
  </head>
  <body>
    <div id="map" style="height:280px; width:500px;"/>

    <script>
      var map = L.map('map').setView([60.192059,24.945831], 13);

      var normalTiles = L.tileLayer('https://cdn.digitransit.fi/map/v1/{id}/{z}/{x}/{y}.png', {
        attribution: 'Map data &copy; <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, ' +
          '<a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>',
        maxZoom: 19,
        tileSize: 512,
        zoomOffset: -1,
        id: 'hsl-map'}).addTo(map);

      var swedish = L.tileLayer('https://cdn.digitransit.fi/map/v1/{id}/{z}/{x}/{y}@2x.png', {
        attribution: 'Map data &copy; <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, ' +
          '<a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>',
        maxZoom: 19,
        tileSize: 512,
        zoomOffset: -1,
        id: 'hsl-map-sv'});

      var hdTiles = L.tileLayer('https://cdn.digitransit.fi/map/v1/{id}/{z}/{x}/{y}@2x.png', {
        attribution: 'Map data &copy; <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, ' +
          '<a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>',
        maxZoom: 19,
        tileSize: 512,
        zoomOffset: -1,
        id: 'hsl-map'});
        
      L.control.layers({
        "Normal": normalTiles, 
        "Swedish": swedish,
        "High-density": hdTiles
        }, null, {
          collapsed: false
        }).addTo(map);
    </script>
  </body>
</html>
result
console