getFullRequestString fails when layer has no projection, r=ahocevar (closes #3244)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11867 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
1 parent
0527f120a8
commit
8596bbc779
2 files changed
+16
-2
No files matched your search
@@ -237,7 +237,7 @@ OpenLayers.Layer.WMS = OpenLayers.Class(OpenLayers.Layer.Grid, {
|
||||
*/
|
||||
getFullRequestString:function(newParams, altUrl) {
|
||||
var mapProjection = this.map.getProjectionObject();
|
||||
var projectionCode = this.projection.equals(mapProjection) ?
|
||||
var projectionCode = this.projection && this.projection.equals(mapProjection) ?
|
||||
this.projection.getCode() :
|
||||
mapProjection.getCode();
|
||||
var value = (projectionCode == "none") ? null : projectionCode;
|
||||
|
||||
Reference in new issue
Block a user