Remove code that never gets called.

OpenLayers.Map has no wrapDateLine property.
This commit is contained in:
ahocevar
2011-12-02 23:57:39 +01:00
parent 88c203074f
commit c15631ae3e

View File

@@ -658,10 +658,6 @@ OpenLayers.Layer.Grid = OpenLayers.Class(OpenLayers.Layer.HTTPRequest, {
*/
calculateGridLayout: function(bounds, origin, resolution) {
bounds = bounds.clone();
var map = this.map;
if (map.wrapDateLine) {
bounds = bounds.wrapDateLine(map.getMaxExtent());
}
var tilelon = resolution * this.tileSize.w;
var tilelat = resolution * this.tileSize.h;