Commit cbd50415 authored by Culdred's avatar Culdred
Browse files

Add Attribution component

parent 4690c6b1
Loading
Loading
Loading
Loading
+32 −0
Original line number Diff line number Diff line
<template>
  <l-map ref="map" :zoom="2" :center="[47.41322, -1.219482]">
    <l-tile-layer
      url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
      layer-type="base"
      name="OpenStreetMap"
    ></l-tile-layer>
    <l-control-attribution
      position="bottomleft"
      :prefix="customAttributionPrefix"
    />
  </l-map>
</template>
<script>
import { LMap, LTileLayer, LControlAttribution } from "./../../components";

export default {
  components: {
    LMap,
    LTileLayer,
    LControlAttribution,
  },
  data() {
    return {
      customAttributionPrefix:
        "<strong>Custom bottom left attribution</strong>",
    };
  },
};
</script>

<style></style>