0.0.27 • Published 2 years ago
nuxt-leaflet v0.0.27
nuxt-leaflet
Nuxt module for leafletjs
Features
Nuxt module for vue2-leaflet.
See vue2-leaflet for more details.
Setup
- Add
nuxt-leaflet
dependency using yarn or npm to your project - Add
nuxt-leaflet
tomodules
section ofnuxt.config.js
{
modules: [
// Simple usage
'nuxt-leaflet',
// With options
['nuxt-leaflet', { /* module options */ }],
]
}
Usage
Add the map to your page
<div id="map-wrap" style="height: 100vh">
<no-ssr>
<l-map :zoom=13 :center="[47.413220, -1.219482]">
<l-tile-layer url="http://{s}.tile.osm.org/{z}/{x}/{y}.png"></l-tile-layer>
<l-marker :lat-lng="[47.413220, -1.219482]"></l-marker>
</l-map>
</no-ssr>
</div>
The Leaflet 'L' object can be found on vue component: this.$L
List of currently implemented components
See components supported
Development
- Clone this repository
- Install dependencies using
yarn install
ornpm install
- Start development server using
npm run dev
License
Copyright (c) Rasmus Schlunsen
0.0.26
2 years ago
0.0.27
2 years ago
0.0.25
3 years ago
0.0.24
3 years ago
0.0.23
3 years ago
0.0.22
4 years ago
0.0.20
4 years ago
0.0.21
4 years ago
0.0.19
5 years ago
0.0.18
5 years ago
0.0.17
5 years ago
0.0.16
5 years ago
0.0.15
5 years ago
0.0.14
5 years ago
0.0.13
5 years ago
0.0.12
5 years ago
0.0.11
5 years ago
0.0.10
6 years ago
0.0.9
6 years ago
0.0.8
6 years ago
0.0.7
6 years ago
0.0.6
6 years ago
0.0.5
6 years ago
0.0.4
6 years ago
0.0.3
6 years ago