Unverified Commit 3028275d authored by Nicolò Maria Mezzopera's avatar Nicolò Maria Mezzopera
Browse files

chore: adjust import order and write down a readme

parent 15f32c76
Loading
Loading
Loading
Loading
+21 −2
Original line number Diff line number Diff line
@@ -2,9 +2,27 @@

> Vue Leaflet Next

## Description

This repo contains the WIP to rewrite the vue2-leaflet codebase for vue3 this is High experimental and can be broken at any time, is not actually working as a plugin for now.
The aim is to experiment with various techniques and architectures for vue3.

## Current architecture

- replace mixins with composition API
- use provide/inject instead of `findRealParent`
- simplify simplify and simplify the old codebase
- SSR compatible from the get-go

## What is available now

- a playground page with a working map
- example on how we should build the functions

## Build setup

### [yarn](https://yarnpkg.com) - recommend

```bash
# Install dependencies
yarn install
@@ -17,6 +35,7 @@ yarn run build
```

### [npm](https://www.npmjs.com/)

```bash
# Install dependencies
npm install
+2 −1
Original line number Diff line number Diff line
import { tileLayer } from 'leaflet/dist/leaflet-src.esm';
const { onMounted, ref, computed, inject } = window.Vue;
import { props as layerProps, setup as layerSetup } from '../functions/layer';
import {
  props as gridLayerProps,
@@ -10,6 +9,8 @@ import {
  setup as tileLayerSetup
} from '../functions/tileLayer';

const { onMounted, ref, computed, inject } = window.Vue;

export default {
  props: {
    ...layerProps,