<commit_before><template>
  <div class="leaflet-map">
  </div>
</template>

<script>
  import 'leaflet-map'
  import * as L from 'leaflet'

  export default {
    name: 'leaflet-map',

    mounted () {
      L.Icon.Default.imagePath = 'assets/vendor/leaflet'

      var map = L.map(this.$el).setView([51.505, -0.09], 13)

      L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {
        attribution: '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
      }).addTo(map)

      L.marker([51.5, -0.09]).addTo(map)
        .bindPopup('A pretty CSS3 popup.<br> Easily customizable.')
        .openPopup()
    }
  }
</script>

<style lang="scss">
  @import "../../../../node_modules/leaflet/dist/leaflet.css";
  @import "../../../sass/_variables.scss";
<commit_msg>fix(maps): leaflet image path<commit_after><template>
  <div class="leaflet-map">
  </div>
</template>

<script>
  import 'leaflet-map'
  import * as L from 'leaflet'

  export default {
    name: 'leaflet-map',

    mounted () {
//    L.Icon.Default.imagePath = 'assets/vendor/leaflet' TODO: make it work with webpack
      L.Icon.Default.imagePath = 'https://unpkg.com/leaflet@1.0.3/dist/images'

      var map = L.map(this.$el).setView([51.505, -0.09], 13)

      L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {
        attribution: '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
      }).addTo(map)

      L.marker([51.5, -0.09]).addTo(map)
        .bindPopup('A pretty CSS3 popup.<br> Easily customizable.')
        .openPopup()
    }
  }
</script>

<style lang="scss">
  @import "../../../../node_modules/leaflet/dist/leaflet.css";
  @import "../../../sass/_variables.scss";

{'fraction_non_alphanumeric': 0.21650087770626097, 'fraction_numerical': 0.021650087770626096, 'mean_word_length': 2.717391304347826, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5004410', 'n_tokens_mistral': 661, 'n_tokens_neox': 636, 'n_words': 107}