0.0.27 • Published 4 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
4 years ago
0.0.27
4 years ago
0.0.25
4 years ago
0.0.24
4 years ago
0.0.23
4 years ago
0.0.22
5 years ago
0.0.20
5 years ago
0.0.21
5 years ago
0.0.19
6 years ago
0.0.18
6 years ago
0.0.17
6 years ago
0.0.16
6 years ago
0.0.15
6 years ago
0.0.14
6 years ago
0.0.13
6 years ago
0.0.12
6 years ago
0.0.11
6 years ago
0.0.10
7 years ago
0.0.9
7 years ago
0.0.8
7 years ago
0.0.7
7 years ago
0.0.6
7 years ago
0.0.5
7 years ago
0.0.4
7 years ago
0.0.3
7 years ago