Making it possible to use a custom SRS identifier for spherical mercator layers. r=bartvde (closes #2665)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@10384 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Tim Schaub
2010-06-08 21:37:33 +00:00
parent d0a2edbebd
commit 71482163cf
4 changed files with 124 additions and 1 deletions

View File

@@ -63,7 +63,7 @@ OpenLayers.Layer.SphericalMercator = {
this.RESOLUTIONS[zoom] = maxResolution / Math.pow(2, zoom);
}
this.units = "m";
this.projection = "EPSG:900913";
this.projection = this.projection || "EPSG:900913";
},
/**