Skip to content

Commit

Permalink
Update thumbnail for alternative basemap, updated Leaflet
Browse files Browse the repository at this point in the history
  • Loading branch information
brendan-ward committed Feb 15, 2017
1 parent 629c155 commit ddf2119
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion L.Control.Basemaps-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion L.Control.Basemaps.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ L.Control.Basemaps = L.Control.extend({
L.DomUtil.removeClass(document.getElementsByClassName('basemap active')[0], 'active');
L.DomUtil.addClass(basemapNode, 'active');

var altIdx = (i === 0)? 1: 0;
var altIdx = (i+1) % this.options.basemaps.length;
L.DomUtil.removeClass(document.getElementsByClassName('basemap alt')[0], 'alt');
L.DomUtil.addClass(document.getElementsByClassName('basemap')[altIdx], 'alt');
}
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Leaflet.Basemaps",
"version": "0.1.1",
"version": "0.1.2",
"homepage": "https://github.com/consbio/Leaflet.Basemaps",
"authors": [
"Brendan Ward <[email protected]>"
Expand Down
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
<head lang="en">
<meta charset="UTF-8">
<title>Leaflet Basemaps Control</title>
<link rel="stylesheet" href="//unpkg.com/[email protected]-rc.3/dist/leaflet.css" />
<link rel="stylesheet" href="//unpkg.com/[email protected]/dist/leaflet.css" />
<link rel="stylesheet" href="L.Control.Basemaps.css" />
</head>
<body>
<script src="//unpkg.com/[email protected]-rc.3/dist/leaflet-src.js"></script>
<script src="//unpkg.com/[email protected]/dist/leaflet.js"></script>
<script src="L.Control.Basemaps.js"></script>
<div id="map" style="position: absolute; top: 0; left:0; bottom:0; right: 0;"></div>

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "leaflet-basemaps",
"version": "0.1.1",
"version": "0.1.2",
"description": "Basemaps Control for Leaflet",
"homepage": "http://github.com/consbio/Leaflet.Basemaps",
"author": {
Expand Down

0 comments on commit ddf2119

Please sign in to comment.