Open GoogleCodeExporter opened 8 years ago
The DOM even shows the same entries for proj for these 2 external WMS (see
attached screenshot)
Original comment by Aleda.Fr...@state.ma.us
on 1 Apr 2014 at 8:27
Attachments:
I'm looking at what I think might be the relevant bit of code, but I can't
figure out enough to figure out why it's not working:
if (typeof url == 'string' && externalGetCaps[url.split('?')[0]]) {
// override projections for externalWMS
activeLyr[title].getFullRequestString = function(newParams, altUrl) {
var mapProjection = this.map.getProjectionObject();
var projectionCode = this.projection && this.projection.equals(mapProjection) ?
this.projection.getCode() :
mapProjection.getCode();
if (externalGetCaps[this.url.split('?')[0]].proj[mapProjection.getCode()]) {
projectionCode = externalGetCaps[this.url.split('?')[0]].proj[projectionCode];
}
var value = (projectionCode == "none") ? null : projectionCode;
if (parseFloat(this.params.VERSION) >= 1.3) {
this.params.CRS = value;
} else {
this.params.SRS = value;
}
Original comment by Aleda.Fr...@state.ma.us
on 1 Apr 2014 at 8:41
One difference is that there is an error in the console for the USGS and not
the NOAA:
See attached screenshot.
Original comment by Aleda.Fr...@state.ma.us
on 1 Apr 2014 at 8:50
Attachments:
Original issue reported on code.google.com by
Aleda.Fr...@state.ma.us
on 1 Apr 2014 at 8:22