Use a PanZoom control on small screens instead of a PanZoomBar control.
This commit is contained in:
parent
843d601b0a
commit
78d4944caa
4 changed files with 13 additions and 0 deletions
|
@ -22,6 +22,7 @@ function createMap(divName, options) {
|
|||
new OpenLayers.Control.Attribution(),
|
||||
new OpenLayers.Control.LayerSwitcher(),
|
||||
new OpenLayers.Control.Navigation(),
|
||||
new OpenLayers.Control.PanZoom(),
|
||||
new OpenLayers.Control.PanZoomBar()
|
||||
],
|
||||
units: "m",
|
||||
|
|
|
@ -18,6 +18,10 @@
|
|||
display: none;
|
||||
}
|
||||
|
||||
.olControlPanZoom {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.olControlPanZoomBar {
|
||||
display: none;
|
||||
}
|
||||
|
|
|
@ -142,3 +142,7 @@ h1 {
|
|||
width: 100%;
|
||||
max-width: 18em;
|
||||
}
|
||||
|
||||
.olControlPanZoomBar {
|
||||
display: none;
|
||||
}
|
||||
|
|
|
@ -3,3 +3,7 @@
|
|||
#logo-img-sml {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.olControlPanZoom {
|
||||
display: none;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue