Skip to content

Commit df5e346

Browse files
committed
SFD-255 Updated the projection for the preview layer to the official projection.
1 parent fd0fa80 commit df5e346

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

oscar/src/main/javascript/oscar/lib/oscar/Layer/GetCoveragePreview.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,12 @@ oscar.Layer.GetCoveragePreview = new oscar.BaseClass(OpenLayers.Layer.WMS, {
4040
newparams.IDENTIFIER = this.params.IDENTIFIER;
4141
newparams.SERVICEENDPOINT = this.params.SERVICEENDPOINT;
4242
newparams.RANGESUBSET = this.params.RANGESUBSET;
43-
newparams.GRIDBASECRS = oscar.Util.EpsgConversion.epsgToUrn(this.map.getProjection())
43+
44+
if(projection == "EPSG:900913") {
45+
projection = "EPSG:3857";
46+
}
47+
48+
newparams.GRIDBASECRS = oscar.Util.EpsgConversion.epsgToUrn(projection);
4449
var qString = OpenLayers.Layer.WMS.prototype.getFullRequestString.apply(this, [ newparams, altUrl ]);
4550

4651
return qString;

0 commit comments

Comments
 (0)