This is a Beta version! And may yet be instable! If you want to help please reach out in an issue or [discord](https://discord.gg/uVZAfUf)
This is a Beta version! And may yet be instable! If you want to help, please reach out in an
[issue](https://github.com/vue-leaflet/vue-leaflet/issues) or on [discord](https://discord.gg/uVZAfUf).
## What Works:
- LCircle
- LCircleMarker
- LControl
- LControlAttribution
- LControlLayers
- LControlScale
- LControlZoom
- LFeatureGroup
- LGeoJson
- LIcon
- LMap
- LMarker
@@ -16,17 +25,69 @@ This is a Beta version! And may yet be instable! If you want to help please reac
- LRectangle
- LTileLayer
- LTooltip
- LWmsTileLayer
Note that unlikely the version for vue2 this version is fully compatible with SSR
> Note that unlike the [Vue 2 version](https://github.com/vue-leaflet/Vue2Leaflet), this library is fully compatible with SSR.
## Installation
`npm i @vue-leaflet/vue-leaflet`
`yarn add @vue-leaflet/vue-leaflet`
or
`yarn add @vue-leaflet/vue-leaflet`
`npm i -D @vue-leaflet/vue-leaflet`
## Usage
Till the documentation is ready please check the [demo project](https://github.com/vue-leaflet/vue3-demo-project/blob/master/src/App.vue)
Until the complete documentation is ready, please check the [demo project](https://github.com/vue-leaflet/vue3-demo-project/blob/master/src/App.vue) for example usage.
### Working with Leaflet
> **N.B.** Using `import L from "leaflet"` or `import { ... } from "leaflet"` can lead to unexpected errors.
To provide server-side rendering and tree-shaking capabilities, vue-leaflet uses async imports from the Leaflet ESM.
This can lead to issues when importing additional methods from Leaflet, because the two instances of the Leaflet
classes are technically no longer the same. See [Issue 48](https://github.com/vue-leaflet/vue-leaflet/issues/48) for more.
To avoid these issues, import any Leaflet methods asynchronously in response to the LMap component's `@ready` event: