Skip to content

Commit

Permalink
updated example
Browse files Browse the repository at this point in the history
  • Loading branch information
Raruto committed Feb 13, 2021
1 parent 2d3c7f8 commit 96d24ed
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# leaflet-rotate

[![NPM version](https://img.shields.io/npm/v/@raruto/leaflet-rotate.svg?color=red)](https://www.npmjs.com/package/leaflet-rotate)
[![License](https://img.shields.io/badge/license-GPL%203-blue.svg?style=flat)](LICENSE)

A Leaflet plugin that allows to add rotation functionality to map tiles

_For a working example see the following [demo](https://raruto.github.io/leaflet-rotate/examples/leaflet-rotate.html)_
Expand Down
14 changes: 9 additions & 5 deletions examples/leaflet-rotate.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,18 @@
<title>leaflet-rotate.js</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<!-- Leaflet JS / CSS -->
<script src="https://unpkg.com/[email protected]/dist/leaflet-src.js"></script>
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css">

<script src="../leaflet-rotate.js"></script>
<!-- Leaflet-Rotate -->
<script src="https://unpkg.com/[email protected]/leaflet-rotate.js"></script>

<script src="../misc/route.js"></script>
<script src="../misc/places.js"></script>
<script src="../misc/loremIpsum.js"></script>
<script src="../lib/debug.js"></script>
<!-- include some miscellaneous -->
<script src="https://unpkg.com/[email protected]/misc/route.js"></script>
<script src="https://unpkg.com/[email protected]/misc/places.js"></script>
<script src="https://unpkg.com/[email protected]/misc/loremIpsum.js"></script>
<script src="https://unpkg.com/[email protected]/lib/debug.js"></script>

<style>
#map {
Expand Down Expand Up @@ -107,6 +110,7 @@
[52, 4]
]).addTo(map);

// Display some debug info
L.Rotate.debug(map);
</script>

Expand Down

0 comments on commit 96d24ed

Please sign in to comment.