Remove code that never gets called.
OpenLayers.Map has no wrapDateLine property.
This commit is contained in:
@@ -658,10 +658,6 @@ OpenLayers.Layer.Grid = OpenLayers.Class(OpenLayers.Layer.HTTPRequest, {
|
|||||||
*/
|
*/
|
||||||
calculateGridLayout: function(bounds, origin, resolution) {
|
calculateGridLayout: function(bounds, origin, resolution) {
|
||||||
bounds = bounds.clone();
|
bounds = bounds.clone();
|
||||||
var map = this.map;
|
|
||||||
if (map.wrapDateLine) {
|
|
||||||
bounds = bounds.wrapDateLine(map.getMaxExtent());
|
|
||||||
}
|
|
||||||
|
|
||||||
var tilelon = resolution * this.tileSize.w;
|
var tilelon = resolution * this.tileSize.w;
|
||||||
var tilelat = resolution * this.tileSize.h;
|
var tilelat = resolution * this.tileSize.h;
|
||||||
|
|||||||
Reference in New Issue
Block a user