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

Merge pull request #63 from vue-leaflet/playground-circle

Playground circle
parents ea3c8bdc 3d9a49e4
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@
    <div class="menu">
      <router-link to="/">Home</router-link>
      <router-link to="/marker">Marker</router-link>
      <router-link to="/circle">Circle</router-link>
    </div>
    <div class="map-wrapper">
      <router-view />
+1 −0
Original line number Diff line number Diff line
@@ -7,6 +7,7 @@ import Home from "./views/Home.vue";
const routes = [
  { path: "/", component: Home },
  { path: "/marker", component: () => import("./views/Marker.vue") },
  { path: "/circle", component: () => import("./views/Circle.vue") },
];

const router = createRouter({
+29 −0
Original line number Diff line number Diff line
<template>
  <l-map ref="map" v-model:zoom="zoom" :center="[44.48865, 11.3317]">
    <l-tile-layer
      url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
      layer-type="base"
      name="OpenStreetMap"
    ></l-tile-layer>

    <l-circle :lat-lng="[44.48865, 11.3317]" :radius="5000" color="green" />
  </l-map>
</template>
<script>
import { LMap, LTileLayer, LCircle } from "./../../components";

export default {
  components: {
    LMap,
    LTileLayer,
    LCircle,
  },
  data() {
    return {
      zoom: 11,
    };
  },
};
</script>

<style></style>