Unverified Commit 6574a160 authored by Nicolò Maria Mezzopera's avatar Nicolò Maria Mezzopera
Browse files

chore: add new component to playground

- route
- links
parent e8888ec3
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  <div class="main-wrapper">
    <div class="menu">
      <router-link to="/">Home</router-link>
      <router-link to="/feature-group">Feature Group</router-link>
      <router-link to="/marker">Marker</router-link>
    </div>
    <div class="map-wrapper">
+4 −0
Original line number Diff line number Diff line
@@ -6,6 +6,10 @@ import Home from "./views/Home.vue";

const routes = [
  { path: "/", component: Home },
  {
    path: "/feature-group",
    component: () => import("./views/FeatureGroup.vue"),
  },
  { path: "/marker", component: () => import("./views/Marker.vue") },
];

+31 −0
Original line number Diff line number Diff line
<template>
  <l-map ref="map" v-model:zoom="zoom" :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-feature-group>
      <l-marker :lat-lng="[50, 50]"> </l-marker>
    </l-feature-group>
  </l-map>
</template>
<script>
import { LMap, LTileLayer, LMarker, LFeatureGroup } from "./../../components";

export default {
  components: {
    LMap,
    LTileLayer,
    LMarker,
    LFeatureGroup,
  },
  data() {
    return {
      zoom: 2,
    };
  },
};
</script>

<style></style>