Skip to content

Commit

Permalink
fixes mobile examples which were using ZoomPanel
Browse files Browse the repository at this point in the history
  • Loading branch information
tonio committed Mar 19, 2012
1 parent ed45ab6 commit d81f079
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 69 deletions.
30 changes: 0 additions & 30 deletions examples/mobile-drawing.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,36 +25,6 @@
bottom: 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 {
background-position: -1px -1px;
}
Expand Down
2 changes: 1 addition & 1 deletion examples/mobile-drawing.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function init() {
enableKinetic: true
}
}),
new OpenLayers.Control.ZoomPanel(),
new OpenLayers.Control.Zoom(),
toolbar
],
layers: [osm, vector],
Expand Down
36 changes: 0 additions & 36 deletions examples/mobile-layers.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,42 +39,6 @@
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 {
display: none;
}
Expand Down
2 changes: 1 addition & 1 deletion examples/mobile-layers.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function init() {
enableKinetic: true
}
}),
new OpenLayers.Control.ZoomPanel()
new OpenLayers.Control.Zoom()
]
});

Expand Down
2 changes: 1 addition & 1 deletion examples/mobile-navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function init() {
enableKinetic: true
}
}),
new OpenLayers.Control.ZoomPanel()
new OpenLayers.Control.Zoom()
],
layers: [
new OpenLayers.Layer.OSM("OpenStreetMap", null, {
Expand Down

0 comments on commit d81f079

Please sign in to comment.