diff --git a/src/control.js b/src/control.js
index 3188f54a..6117ea52 100644
--- a/src/control.js
+++ b/src/control.js
@@ -53,21 +53,34 @@ $.ControlAnchor = {
* to interact with the zoomable interface. Any control can be anchored to any
* element.
* @class
- * @param {Element} element - the contol element to be anchored in the container.
- * @param {OpenSeadragon.ControlAnchor} anchor - the location to anchor at.
+ * @param {Element} element - the control element to be anchored in the container.
+ * @param {Object } options - All required and optional settings for configuring a control element.
+ * @param {OpenSeadragon.ControlAnchor} [options.anchor=OpenSeadragon.ControlAnchor.NONE] - the position of the control
+ * relative to the container.
+ * @param {Boolean} [options.attachToViewer=true] - Whether the control should be added directly to the viewer, or
+ * directly to the container
+ * @param {Boolean} [options.autoFade=true] - Whether the control should have the autofade behavior
* @param {Element} container - the element to control will be anchored too.
- *
- * @property {Element} element - the element providing the user interface with
+ *
+ * @property {Element} element - the element providing the user interface with
* some type of control. Eg a zoom-in button
* @property {OpenSeadragon.ControlAnchor} anchor - the position of the control
* relative to the container.
- * @property {Element} container - the element within with the control is
+ * @property {Boolean} autoFade - Whether the control should have the autofade behavior
+ * @property {Element} container - the element within with the control is
* positioned.
- * @property {Element} wrapper - a nuetral element surrounding the control
+ * @property {Element} wrapper - a neutral element surrounding the control
* element.
*/
$.Control = function ( element, options, container ) {
var parent = element.parentNode;
+ if (typeof options === 'number')
+ {
+ $.console.error("Passing an anchor directly into the OpenSeadragon.Control constructor is deprecated; " +
+ "please use an options object instead. " +
+ "Support for this deprecated variant is scheduled for removal in December 2013");
+ options = {anchor: options};
+ }
options.attachToViewer = (typeof options.attachToViewer === 'undefined') ? true : options.attachToViewer;
this.autoFade = (typeof options.autoFade === 'undefined') ? true : options.autoFade;
this.element = element;
diff --git a/src/navigator.js b/src/navigator.js
index c09566f8..833b916e 100644
--- a/src/navigator.js
+++ b/src/navigator.js
@@ -138,6 +138,7 @@ $.Navigator = function( options ){
this.element.innerTracker = new $.MouseTracker({
element: this.element,
+ dragHandler: $.delegate( this, onCanvasDrag ),
clickHandler: $.delegate( this, onCanvasClick ),
releaseHandler: $.delegate( this, onCanvasRelease ),
scrollHandler: function(){
@@ -147,16 +148,6 @@ $.Navigator = function( options ){
}
}).setTracking( true );
- this.displayRegion.innerTracker = new $.MouseTracker({
- element: this.displayRegion,
- clickTimeThreshold: this.clickTimeThreshold,
- clickDistThreshold: this.clickDistThreshold,
-
- dragHandler: $.delegate( this, onCanvasDrag ),
- releaseHandler: $.delegate( this, onCanvasRelease ),
- scrollHandler: $.delegate( this, onCanvasScroll )
- }).setTracking( true ); // default state
-
/*this.displayRegion.outerTracker = new $.MouseTracker({
element: this.container,
clickTimeThreshold: this.clickTimeThreshold,
diff --git a/src/openseadragon.js b/src/openseadragon.js
index ee5e0dac..8e3b41be 100644
--- a/src/openseadragon.js
+++ b/src/openseadragon.js
@@ -208,6 +208,13 @@
* @param {Boolean} [options.showNavigationControl=true]
* Set to false to prevent the appearance of the default navigation controls.
*
+ * @param {Boolean} [options.showNavigator=false]
+ * Set to true to make the navigator minimap appear.
+ *
+ * @param {Boolean} [options.navigatorId=navigator-GENERATED DATE]
+ * Set the ID of a div to hold the navigator minimap. If one is not specified,
+ * one will be generated and placed on top of the main image
+ *
* @param {Number} [options.controlsFadeDelay=2000]
* The number of milliseconds to wait once the user has stopped interacting
* with the interface before begining to fade the controls. Assumes
@@ -523,7 +530,7 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){
mouseNavEnabled: true, //GENERAL MOUSE INTERACTIVITY
//VIEWPORT NAVIGATOR SETTINGS
- showNavigator: true, //promoted to default in 0.9.64
+ showNavigator: false,
navigatorId: null,
navigatorHeight: null,
navigatorWidth: null,
diff --git a/src/viewer.js b/src/viewer.js
index 84588565..624431e4 100644
--- a/src/viewer.js
+++ b/src/viewer.js
@@ -236,6 +236,7 @@ $.Viewer = function( options ) {
style.position = "absolute";
style.top = "0px";
style.left = "0px";
+ style.resize = "none";
}( this.keyboardCommandArea.style ));
this.container.insertBefore( this.canvas, this.container.firstChild );
diff --git a/test/demo/basic.html b/test/demo/basic.html
index 80a48d0d..b9a02aef 100644
--- a/test/demo/basic.html
+++ b/test/demo/basic.html
@@ -23,7 +23,8 @@
// debugMode: true,
id: "contentDiv",
prefixUrl: "../../build/openseadragon/images/",
- tileSources: "/test/data/testpattern.dzi"
+ tileSources: "../data/testpattern.dzi",
+ showNavigator:true
});
diff --git a/test/demo/navigatorcustomlocationdemo.html b/test/demo/navigatorcustomlocationdemo.html
deleted file mode 100644
index a8de7297..00000000
--- a/test/demo/navigatorcustomlocationdemo.html
+++ /dev/null
@@ -1,48 +0,0 @@
-
-
- OpenSeadragon Navigator in a custom location Demo
-
-
-
-
-
-
- Simple demo page to show how to put the navigator in a custom location
-