Changeset 1339
- Timestamp:
- 08/23/06 16:39:22 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/openlayers/2.0/lib/OpenLayers/Control/MouseToolbar.js
r1338 r1339 48 48 this._addButton("pan", "panning-hand-off.png", "panning-hand-on.png", centered, sz, "Drag the map to pan."); 49 49 centered = centered.add((this.direction == "vertical" ? 0 : sz.w), (this.direction == "vertical" ? sz.h : 0)); 50 this._addButton("measure", "measuring-stick-off.png", "measuring-stick-on.png", centered, sz, "Hold alt when clicking to show distance between selected points");51 50 this.switchModeTo("pan"); 52 51 this.map.events.register("zoomend", this, function() { this.switchModeTo("pan"); });
