Adds first try to add key to cyclemap

This commit is contained in:
Emersion 2015-07-11 12:56:20 +02:00
parent d28ae2ad0a
commit 56316e17ad
10 changed files with 10 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 187 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 232 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 186 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 205 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 166 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 203 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 192 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 211 B

View file

@ -60,7 +60,7 @@ L.OSM.key = function (options) {
}
function updateButton() {
var disabled = map.getMapBaseLayerId() !== 'mapnik';
var disabled = ['mapnik', 'cyclemap'].indexOf(map.getMapBaseLayerId()) === -1;
button
.toggleClass('disabled', disabled)
.attr('data-original-title',

View file

@ -50,3 +50,12 @@ mapnik:
- { min_zoom: 15, max_zoom: 19, name: permissive, image: permissive.png }
- { min_zoom: 15, max_zoom: 19, name: destination, image: destination.png }
- { min_zoom: 12, max_zoom: 19, name: construction, image: construction.png }
cyclemap:
- { min_zoom: 0, max_zoom: 11, name: motorway, image: motorway.png }
- { min_zoom: 12, max_zoom: 19, name: motorway, image: motorway12.png }
- { min_zoom: 0, max_zoom: 11, name: trunk, image: trunk.png }
- { min_zoom: 12, max_zoom: 19, name: trunk, image: trunk12.png }
- { min_zoom: 7, max_zoom: 11, name: primary, image: primary.png }
- { min_zoom: 12, max_zoom: 19, name: primary, image: primary12.png }
- { min_zoom: 9, max_zoom: 11, name: secondary, image: secondary.png }
- { min_zoom: 12, max_zoom: 19, name: secondary, image: secondary12.png }