Overview map should use map.getMaxExtent
This commit is contained in:
@@ -453,7 +453,7 @@ OpenLayers.Control.OverviewMap = OpenLayers.Class(OpenLayers.Control, {
|
|||||||
*/
|
*/
|
||||||
isSuitableOverview: function() {
|
isSuitableOverview: function() {
|
||||||
var mapExtent = this.map.getExtent();
|
var mapExtent = this.map.getExtent();
|
||||||
var maxExtent = this.map.maxExtent;
|
var maxExtent = this.map.getMaxExtent();
|
||||||
var testExtent = new OpenLayers.Bounds(
|
var testExtent = new OpenLayers.Bounds(
|
||||||
Math.max(mapExtent.left, maxExtent.left),
|
Math.max(mapExtent.left, maxExtent.left),
|
||||||
Math.max(mapExtent.bottom, maxExtent.bottom),
|
Math.max(mapExtent.bottom, maxExtent.bottom),
|
||||||
|
|||||||
Reference in New Issue
Block a user