Use the small zoom control in the small screen layout
This commit is contained in:
parent
f6ac8ffbab
commit
0c2d538aa7
4 changed files with 20 additions and 1 deletions
|
@ -78,7 +78,7 @@ var layers = [
|
||||||
];
|
];
|
||||||
|
|
||||||
function createMap(divName, options) {
|
function createMap(divName, options) {
|
||||||
options = $.extend({zoomControl: false, panZoomControl: true, layerControl: true}, options);
|
options = $.extend({zoomControl: true, panZoomControl: true, layerControl: true}, options);
|
||||||
|
|
||||||
map = L.map(divName, $.extend({}, options, {panControl: false, zoomsliderControl: false, maxZoom: 18}));
|
map = L.map(divName, $.extend({}, options, {panControl: false, zoomsliderControl: false, maxZoom: 18}));
|
||||||
|
|
||||||
|
|
|
@ -1005,6 +1005,15 @@ p#contributorGuidance {
|
||||||
|
|
||||||
/* Rules for the user map */
|
/* Rules for the user map */
|
||||||
|
|
||||||
|
.user_map .leaflet-control-pan,
|
||||||
|
.user_map .leaflet-control-zoomslider {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.user_map .leaflet-control-zoom {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
/* Rules for user popups on maps */
|
/* Rules for user popups on maps */
|
||||||
|
|
||||||
.user_popup {
|
.user_popup {
|
||||||
|
|
|
@ -5,3 +5,9 @@
|
||||||
#small-greeting {
|
#small-greeting {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Rules for OpenLayers maps */
|
||||||
|
|
||||||
|
.leaflet-control-zoom {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
|
@ -92,6 +92,10 @@ h1 {
|
||||||
border: 0;
|
border: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.leaflet-control-pan, .leaflet-control-zoomslider {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
.site-index .leaflet-top .leaflet-control,
|
.site-index .leaflet-top .leaflet-control,
|
||||||
.site-export .leaflet-top .leaflet-control {
|
.site-export .leaflet-top .leaflet-control {
|
||||||
margin-top: 10px !important;
|
margin-top: 10px !important;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue