<a href="https://www.npmjs.com/package/vue2-leaflet-draw-toolbar.svg"> <img src="https://img.shields.io/npm/dw/vue2-leaflet-draw-toolbar.svg" alt="Downloads"> </a> <a href="https://www.npmjs.com/package/vue2-leaflet-draw-toolbar.svg"> <img src="https:
npm install vue2-leaflet-draw-toolbarThis is a Vue2Leaflet plugin port to provide the
leaflet-draw-toolbar control
on Leaflet maps in Vue applications.
bash
npm install --save vue2-leaflet-draw-toolbar
`
Usage
$3
With the
LDrawToolbar component loaded into Vue (see below), simply add the
l-draw-toolbar element inside an l-map, optionally providing it with an
position prop to specify any the location of Toolbar.For example,
`html
`
$3
You can either install the control globally within your application at the point where you initially
configure Vue, or import the control only within the components that require it.
#### Option 1: Global install
Where you load and configure your Vue environment,
`js
import Vue from 'vue';
import LDrawToolbar from 'vue2-leaflet-draw-toolbar';
// ...
Vue.component('l-draw-toolbar', LDrawToolbar);
// ...
`
#### Option 2: Local import
In the