}
function updateButton() {
- var disabled = map.getMapBaseLayerId() !== 'mapnik';
+ var disabled = ['mapnik', 'cyclemap'].indexOf(map.getMapBaseLayerId()) === -1;
button
.toggleClass('disabled', disabled)
.attr('data-original-title',
- { 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 }
\ No newline at end of file