Move projection information storage to map. Layer/Grid.js sets the projection when it creates a tile url, and it's no longer in the default params of WMS.js.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@240 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -27,6 +27,9 @@ OpenLayers.Map.prototype = {
|
||||
// float
|
||||
maxResolution: .3515625, // degrees per pixel
|
||||
|
||||
/* projection */
|
||||
projection: "EPSG:4326",
|
||||
|
||||
// DOMElement: the div that our map lives in
|
||||
div: null,
|
||||
|
||||
@@ -113,6 +116,7 @@ OpenLayers.Map.prototype = {
|
||||
*/
|
||||
addLayer: function (layer, zIndex) {
|
||||
layer.map = this;
|
||||
layer.projection = this.projection;
|
||||
layer.div.style.overflow = "";
|
||||
if (zIndex) {
|
||||
layer.div.style.zIndex = zIndex;
|
||||
|
||||
Reference in New Issue
Block a user