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

Merge pull request #69 from vue-leaflet/playground-controls-scale

Playground controls scale
parents 4bb0a11f 56d235f6
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-scale">Scale</router-link>
      <router-link to="/control-layers">Layers</router-link>
      <router-link to="/control-zoom">Zoom</router-link>
      <router-link to="/control-attribution">Attribution</router-link>
+2 −0
Original line number Diff line number Diff line
@@ -9,6 +9,8 @@ const routes = [
  { path: "/marker", component: () => import("./views/Marker.vue") },
  { path: "/circle", component: () => import("./views/Circle.vue") },
  {
    path: "/control-scale",
    component: () => import("./views/ControlScale.vue"),
    path: "/control-layers",
    component: () => import("./views/ControlLayers.vue"),
  { path: "/control-zoom", component: () => import("./views/ControlZoom.vue") },
+23 −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-scale position="bottomleft" />
  </l-map>
</template>
<script>
import { LMap, LTileLayer, LControlScale } from "./../../components";

export default {
  components: {
    LMap,
    LTileLayer,
    LControlScale,
  },
};
</script>

<style></style>