leaflet-divide
v1.0.24
Published
forked from leaflet-compare, patched it to work with leaflet 1.8-1.9
Readme
leaflet-divide
A Leaflet control to compare layers in each side. This plugin was modified to work with leaflet version 1.8.0-1.9.x
This project is a fork of the fork (leaflet-compare) of the (leaflet-splitmap) of the leaflet-side-by-side plugin
L.control.divide(leftLayer[s], rightLayer[s], options)
Example
Live Example see source
Installation
leaflet-divide is compatible with Leaflet >=1.8.0 to 1.9.x versions.
To install it you can use npm:
npm install leaflet-divide
Then import it in your project:
import "leaflet-divide"
As an alternative you can import the Divide class directly:
import { Divide } from "leaflet-divide"
Be sure to have included the Leaflet css and js files and the plugin's files leaflet-divide.css before you use the plugin. Otherwise the slider will not be shown.
