leaflet.zoompanel

1.0.0 • Public • Published

Leaflet.ZoomPanel

A Zoom Panel Plugin Of Leaflet.

DEMO

Installation

Install via npm

npm install leaflet.zoompanel

Install Manually

Download L.Control.ZoomPanel.css and L.Control.ZoomPanel.js and include them in your project.

Include as ES6 Module

import "leaflet.zoompanel";
import "leaflet.zoompanel/dist/leaflet.zoompanel.css";

Development

Install the needed dependencies:

npm install

Getting Started

var layer = L.tileLayer("http://{s}.tile.osm.org/{z}/{x}/{y}.png", {
  attribution:
    '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
});
 
// You can add the control via the settings object
var map = L.map("map", {
  layers: [layer]
}).setView([57.7, 11.9], 8);
new L.zoompanel().addTo(map);

Readme

Keywords

none

Package Sidebar

Install

npm i leaflet.zoompanel

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

56.5 kB

Total Files

8

Last publish

Collaborators

  • will4906