0.3.1 • Published 7 months ago

leaflet-rotate-map v0.3.1

Weekly downloads
25
License
BSD-2-Clause
Repository
github
Last release
7 months ago

Rotate Leaflet Map

Enable to rotate Leaflet maps. The code is based on a merger between lastest official leaflet version and leaflet rotate branch. In addition, there are some improvements like:

  • Fix popup
  • Add getCircumscribedBounds
  • Fix Draggable
  • Fix map.setView
  • Fix _onDragStart when map has maxBounds and map is rotated

Demo

Look at index.html file in examples folder

Usage

Setup

  • Add script to html. You can use leaflet-src.js in ./dist folder.
<script src="leaflet-src.js"></script>
  • You can also use npm install leaflet-rotate-map or yarn add leaflet-rotate-map.

L.map(id, options)

To instantiate a L.Map with rotation, add rotate option

const map = L.map('map', { rotate: true });
0.3.1

7 months ago

0.3.0

1 year ago

0.2.6

3 years ago

0.2.5

3 years ago

0.2.4

3 years ago

0.2.3

3 years ago

0.2.2

3 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago