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

Merge pull request #67 from vue-leaflet/playground-controls-zoom

Playground controls zoom
parents 02314c64 8dfd5809
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-zoom">Zoom</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>
+1 −0
Original line number Diff line number Diff line
@@ -8,6 +8,7 @@ const routes = [
  { path: "/", component: Home },
  { path: "/marker", component: () => import("./views/Marker.vue") },
  { path: "/circle", component: () => import("./views/Circle.vue") },
  { path: "/control-zoom", component: () => import("./views/ControlZoom.vue") },
  {
    path: "/control-attribution",
    component: () => import("./views/ControlAttribution.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-zoom position="bottomright" zoom-in-text="*" zoom-out-text="/" />
  </l-map>
</template>
<script>
import { LMap, LTileLayer, LControlZoom } from "./../../components";

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

<style></style>