Skip to content

Commit

Permalink
Remove MouseDefaults and MouseToolbar.
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaub committed Nov 9, 2011
1 parent f90d34f commit b7c826e
Show file tree
Hide file tree
Showing 9 changed files with 760 additions and 794 deletions.
10 changes: 0 additions & 10 deletions examples/panel.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,6 @@
background-color:white;
}

.olControlPanel .olControlMouseDefaultsItemActive {
background-color: blue;
background-image: url("../theme/default/img/pan_on.png");
}
.olControlPanel .olControlMouseDefaultsItemInactive {
background-color: orange;
background-image: url("../theme/default/img/pan_off.png");
}
.olControlPanel .olControlDrawFeatureItemActive {
width: 22px;
height: 22px;
Expand Down Expand Up @@ -75,8 +67,6 @@
{title:"Zoom box: Selecting it you can zoom on an area by clicking and dragging."});
var panel = new OpenLayers.Control.Panel({defaultControl: zb});
panel.addControls([
new OpenLayers.Control.MouseDefaults(
{title:'You can use the default mouse configuration'}),
zb,
new OpenLayers.Control.DrawFeature(vlayer, OpenLayers.Handler.Path,
{title:'Draw a feature'}),
Expand Down
6 changes: 0 additions & 6 deletions examples/zoomify.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@

/* Map with raster coordinates (pixels) from Zoomify image */
var options = {
controls: [],
maxExtent: new OpenLayers.Bounds(0, 0, zoomify_width, zoomify_height),
maxResolution: Math.pow(2, zoomify.numberOfTiers-1 ),
numZoomLevels: zoomify.numberOfTiers,
Expand All @@ -33,11 +32,6 @@
map = new OpenLayers.Map("map", options);
map.addLayer(zoomify);

map.addControl(new OpenLayers.Control.MousePosition());
map.addControl(new OpenLayers.Control.PanZoomBar());
map.addControl(new OpenLayers.Control.MouseDefaults());
map.addControl(new OpenLayers.Control.KeyboardDefaults());

map.setBaseLayer(zoomify);
map.zoomToMaxExtent();
};
Expand Down
2 changes: 0 additions & 2 deletions lib/OpenLayers.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,6 @@
"OpenLayers/Control/Navigation.js",
"OpenLayers/Control/PinchZoom.js",
"OpenLayers/Control/TouchNavigation.js",
"OpenLayers/Control/MouseDefaults.js",
"OpenLayers/Control/MousePosition.js",
"OpenLayers/Control/OverviewMap.js",
"OpenLayers/Control/KeyboardDefaults.js",
Expand Down Expand Up @@ -343,7 +342,6 @@
"OpenLayers/Format/OGCExceptionReport.js",
"OpenLayers/Layer/WFS.js",
"OpenLayers/Control/GetFeature.js",
"OpenLayers/Control/MouseToolbar.js",
"OpenLayers/Control/NavToolbar.js",
"OpenLayers/Control/PanPanel.js",
"OpenLayers/Control/Pan.js",
Expand Down
1 change: 0 additions & 1 deletion lib/OpenLayers/Control.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
* > var map = new OpenLayers.Map('map', { controls: [] });
* >
* > map.addControl(new OpenLayers.Control.PanZoomBar());
* > map.addControl(new OpenLayers.Control.MouseToolbar());
* > map.addControl(new OpenLayers.Control.LayerSwitcher({'ascending':false}));
* > map.addControl(new OpenLayers.Control.Permalink());
* > map.addControl(new OpenLayers.Control.Permalink('permalink'));
Expand Down
Loading

0 comments on commit b7c826e

Please sign in to comment.