fixes mobile examples which were using ZoomPanel
This commit is contained in:
@@ -25,36 +25,6 @@
|
|||||||
bottom: 5px;
|
bottom: 5px;
|
||||||
right: 5px;
|
right: 5px;
|
||||||
}
|
}
|
||||||
div.olControlZoomPanel .olControlZoomInItemInactive,
|
|
||||||
div.olControlZoomPanel .olControlZoomOutItemInactive {
|
|
||||||
background: rgba(0,0,0,0.2);
|
|
||||||
position: absolute;
|
|
||||||
}
|
|
||||||
div.olControlZoomPanel .olControlZoomInItemInactive {
|
|
||||||
border-radius: 5px 5px 0 0;
|
|
||||||
}
|
|
||||||
div.olControlZoomPanel .olControlZoomOutItemInactive {
|
|
||||||
border-radius: 0 0 5px 5px ;
|
|
||||||
top: 37px;
|
|
||||||
}
|
|
||||||
div.olControlZoomPanel .olControlZoomOutItemInactive:after,
|
|
||||||
div.olControlZoomPanel .olControlZoomInItemInactive:after {
|
|
||||||
font-weight: bold;
|
|
||||||
content: '+';
|
|
||||||
font-size: 36px;
|
|
||||||
padding: 7px;
|
|
||||||
z-index: 2000;
|
|
||||||
color: #fff;
|
|
||||||
line-height: 1em;
|
|
||||||
}
|
|
||||||
div.olControlZoomPanel .olControlZoomOutItemInactive:after {
|
|
||||||
content: '–';
|
|
||||||
line-height: 0.9em;
|
|
||||||
padding: 0 8px;
|
|
||||||
}
|
|
||||||
div.olControlZoomPanel .olControlZoomToMaxExtentItemInactive {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
.olControlEditingToolbar .olControlModifyFeatureItemInactive {
|
.olControlEditingToolbar .olControlModifyFeatureItemInactive {
|
||||||
background-position: -1px -1px;
|
background-position: -1px -1px;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ function init() {
|
|||||||
enableKinetic: true
|
enableKinetic: true
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
new OpenLayers.Control.ZoomPanel(),
|
new OpenLayers.Control.Zoom(),
|
||||||
toolbar
|
toolbar
|
||||||
],
|
],
|
||||||
layers: [osm, vector],
|
layers: [osm, vector],
|
||||||
|
|||||||
@@ -39,42 +39,6 @@
|
|||||||
border-radius: 5px 0 0 0;
|
border-radius: 5px 0 0 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
div.olControlZoomPanel .olControlZoomInItemInactive,
|
|
||||||
div.olControlZoomPanel .olControlZoomOutItemInactive {
|
|
||||||
background: rgba(0, 0, 0, 0.2);
|
|
||||||
position: absolute;
|
|
||||||
}
|
|
||||||
|
|
||||||
div.olControlZoomPanel .olControlZoomInItemInactive {
|
|
||||||
border-radius: 5px 5px 0 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
div.olControlZoomPanel .olControlZoomOutItemInactive {
|
|
||||||
border-radius: 0 0 5px 5px;
|
|
||||||
top: 37px;
|
|
||||||
}
|
|
||||||
|
|
||||||
div.olControlZoomPanel .olControlZoomOutItemInactive:after,
|
|
||||||
div.olControlZoomPanel .olControlZoomInItemInactive:after {
|
|
||||||
font-weight: bold;
|
|
||||||
content: '+';
|
|
||||||
font-size: 36px;
|
|
||||||
padding: 7px;
|
|
||||||
z-index: 2000;
|
|
||||||
color: #fff;
|
|
||||||
line-height: 1em;
|
|
||||||
}
|
|
||||||
|
|
||||||
div.olControlZoomPanel .olControlZoomOutItemInactive:after {
|
|
||||||
content: '–';
|
|
||||||
line-height: 0.9em;
|
|
||||||
padding: 0 8px;
|
|
||||||
}
|
|
||||||
|
|
||||||
div.olControlZoomPanel .olControlZoomToMaxExtentItemInactive {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
#title, #tags, #shortdesc {
|
#title, #tags, #shortdesc {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ function init() {
|
|||||||
enableKinetic: true
|
enableKinetic: true
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
new OpenLayers.Control.ZoomPanel()
|
new OpenLayers.Control.Zoom()
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ function init() {
|
|||||||
enableKinetic: true
|
enableKinetic: true
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
new OpenLayers.Control.ZoomPanel()
|
new OpenLayers.Control.Zoom()
|
||||||
],
|
],
|
||||||
layers: [
|
layers: [
|
||||||
new OpenLayers.Layer.OSM("OpenStreetMap", null, {
|
new OpenLayers.Layer.OSM("OpenStreetMap", null, {
|
||||||
|
|||||||
Reference in New Issue
Block a user