Adds first try to add key to cyclemap
BIN
app/assets/images/key/cyclemap/motorway.png
Normal file
After Width: | Height: | Size: 187 B |
BIN
app/assets/images/key/cyclemap/motorway12.png
Normal file
After Width: | Height: | Size: 232 B |
BIN
app/assets/images/key/cyclemap/primary.png
Normal file
After Width: | Height: | Size: 186 B |
BIN
app/assets/images/key/cyclemap/primary12.png
Normal file
After Width: | Height: | Size: 205 B |
BIN
app/assets/images/key/cyclemap/secondary.png
Normal file
After Width: | Height: | Size: 166 B |
BIN
app/assets/images/key/cyclemap/secondary12.png
Normal file
After Width: | Height: | Size: 203 B |
BIN
app/assets/images/key/cyclemap/trunk.png
Normal file
After Width: | Height: | Size: 192 B |
BIN
app/assets/images/key/cyclemap/trunk12.png
Normal file
After Width: | Height: | Size: 211 B |
|
@ -60,7 +60,7 @@ L.OSM.key = function (options) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function updateButton() {
|
function updateButton() {
|
||||||
var disabled = map.getMapBaseLayerId() !== 'mapnik';
|
var disabled = ['mapnik', 'cyclemap'].indexOf(map.getMapBaseLayerId()) === -1;
|
||||||
button
|
button
|
||||||
.toggleClass('disabled', disabled)
|
.toggleClass('disabled', disabled)
|
||||||
.attr('data-original-title',
|
.attr('data-original-title',
|
||||||
|
|
|
@ -50,3 +50,12 @@ mapnik:
|
||||||
- { min_zoom: 15, max_zoom: 19, name: permissive, image: permissive.png }
|
- { min_zoom: 15, max_zoom: 19, name: permissive, image: permissive.png }
|
||||||
- { min_zoom: 15, max_zoom: 19, name: destination, image: destination.png }
|
- { min_zoom: 15, max_zoom: 19, name: destination, image: destination.png }
|
||||||
- { min_zoom: 12, max_zoom: 19, name: construction, image: construction.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 }
|