Unverified Commit 02314c64 authored by Nicolò Maria Mezzopera's avatar Nicolò Maria Mezzopera Committed by GitHub
Browse files

Merge pull request #66 from vue-leaflet/playground-controls-attribution

Playground controls attribution
parents ffcbad69 187e2ee9
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -4,6 +4,7 @@
      <router-link to="/">Home</router-link>
      <router-link to="/marker">Marker</router-link>
      <router-link to="/circle">Circle</router-link>
      <router-link to="/control-attribution">Attribution</router-link>
      <router-link to="/icon">Icon</router-link>
      <router-link to="/control-custom-message">Custom Message</router-link>
    </div>
+3 −0
Original line number Diff line number Diff line
@@ -8,6 +8,9 @@ const routes = [
  { path: "/", component: Home },
  { path: "/marker", component: () => import("./views/Marker.vue") },
  { path: "/circle", component: () => import("./views/Circle.vue") },
  {
    path: "/control-attribution",
    component: () => import("./views/ControlAttribution.vue"),
  { path: "/icon", component: () => import("./views/Icon.vue") },
  {
    path: "/control-custom-message",
+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>