Skip to content

Commit cf97e77

Browse files
committed
Moved index to master, updated readme and version
1 parent 5aa4bbf commit cf97e77

File tree

4 files changed

+57
-2
lines changed

4 files changed

+57
-2
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,3 +92,8 @@ map.addControl(L.control.basemaps({
9292

9393
## Credits:
9494
Developed with support from the [Peninsular Florida Landscape Conservation Cooperative](http://peninsularfloridalcc.org)
95+
96+
97+
## Contributors:
98+
* [Brendan Ward](https://github.com/brendan-ward)
99+
* [Nik Molnar](https://github.com/nikmolnar)

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Leaflet.Basemaps",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"homepage": "https://github.com/consbio/Leaflet.Basemaps",
55
"authors": [
66
"Brendan Ward <bcward@consbio.org>"

index.html

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head lang="en">
4+
<meta charset="UTF-8">
5+
<title>Leaflet Basemaps Control</title>
6+
<link rel="stylesheet" href="//cdn.leafletjs.com/leaflet/v1.0.0-rc.1/leaflet.css" />
7+
<link rel="stylesheet" href="L.Control.Basemaps.css" />
8+
</head>
9+
<body>
10+
<script src="//cdn.leafletjs.com/leaflet/v1.0.0-rc.1/leaflet.js"></script>
11+
<script src="L.Control.Basemaps.js"></script>
12+
<div id="map" style="position: absolute; top: 0; left:0; bottom:0; right: 0;"></div>
13+
14+
<script>
15+
var map = L.map('map').setView([44.07, -118.78], 5);
16+
17+
var basemaps = [
18+
L.tileLayer('//{s}.tile.stamen.com/toner-lite/{z}/{x}/{y}.png', {
19+
attribution: 'Map tiles by <a href="http://stamen.com">Stamen Design</a>, <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a> &mdash; Map data &copy; <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>',
20+
subdomains: 'abcd',
21+
maxZoom: 20,
22+
minZoom: 0,
23+
label: 'Toner Lite'
24+
}),
25+
L.tileLayer('//{s}.tile.stamen.com/toner/{z}/{x}/{y}.png', {
26+
attribution: 'Map tiles by <a href="http://stamen.com">Stamen Design</a>, <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a> &mdash; Map data &copy; <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>',
27+
subdomains: 'abcd',
28+
maxZoom: 20,
29+
minZoom: 0,
30+
label: 'Toner'
31+
}),
32+
L.tileLayer('//{s}.tile.stamen.com/watercolor/{z}/{x}/{y}.png', {
33+
attribution: 'Map tiles by <a href="http://stamen.com">Stamen Design</a>, <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a> &mdash; Map data &copy; <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>',
34+
subdomains: 'abcd',
35+
maxZoom: 16,
36+
minZoom: 1,
37+
label: 'Watercolor'
38+
})
39+
];
40+
41+
map.addControl(L.control.basemaps({
42+
basemaps: basemaps,
43+
tileX: 0,
44+
tileY: 0,
45+
tileZ: 1
46+
}));
47+
48+
</script>
49+
</body>
50+
</html>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "leaflet-basemaps",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"description": "Basemaps Control for Leaflet",
55
"homepage": "http://github.com/consbio/Leaflet.Basemaps",
66
"author": {

0 commit comments

Comments
 (0)