Skip to content
This repository has been archived by the owner on Oct 20, 2019. It is now read-only.

xrnv2/nuxt-leaflet

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nuxt-leaflet

npm (scoped with tag) npm CircleCI Codecov Dependencies js-standard-style

Nuxt module for leafletjs

📖 Release Notes

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 to modules section of nuxt.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: 100%">
 <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>

List of currently implemented components

See components supported

Development

  • Clone this repository
  • Install dependnecies using yarn install or npm install
  • Start development server using npm run dev

License

MIT License

Copyright (c) Rasmus Schlunsen

Packages

No packages published

Languages

  • JavaScript 97.0%
  • Vue 3.0%