Add OverviewMap control

This commit is contained in:
Alexandre Dubé
2014-10-09 10:10:14 -04:00
parent 5c514b36dd
commit ddc6138dbf
4 changed files with 633 additions and 0 deletions

View File

@@ -187,6 +187,20 @@ ol.MOUSEWHEELZOOM_MAXDELTA = 1;
ol.MOUSEWHEELZOOM_TIMEOUT_DURATION = 80;
/**
* @define {number} Maximum width and/or height extent ratio that determines
* when the overview map should be zoomed out.
*/
ol.OVERVIEWMAP_MAX_RATIO = 0.75;
/**
* @define {number} Minimum width and/or height extent ratio that determines
* when the overview map should be zoomed in.
*/
ol.OVERVIEWMAP_MIN_RATIO = 0.1;
/**
* @define {number} Rotate animation duration.
*/