XYZ.js trips-up JavaScript minify tools, no functional change (#3314)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12016 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -140,10 +140,10 @@ OpenLayers.Layer.XYZ = OpenLayers.Class(OpenLayers.Layer.Grid, {
|
|||||||
*/
|
*/
|
||||||
getXYZ: function(bounds) {
|
getXYZ: function(bounds) {
|
||||||
var res = this.map.getResolution();
|
var res = this.map.getResolution();
|
||||||
var x = Math.round((bounds.left - this.maxExtent.left)
|
var x = Math.round((bounds.left - this.maxExtent.left) /
|
||||||
/ (res * this.tileSize.w));
|
(res * this.tileSize.w));
|
||||||
var y = Math.round((this.maxExtent.top - bounds.top)
|
var y = Math.round((this.maxExtent.top - bounds.top) /
|
||||||
/ (res * this.tileSize.h));
|
(res * this.tileSize.h));
|
||||||
var z = this.serverResolutions != null ?
|
var z = this.serverResolutions != null ?
|
||||||
OpenLayers.Util.indexOf(this.serverResolutions, res) :
|
OpenLayers.Util.indexOf(this.serverResolutions, res) :
|
||||||
this.map.getZoom() + this.zoomOffset;
|
this.map.getZoom() + this.zoomOffset;
|
||||||
|
|||||||
Reference in New Issue
Block a user