[Mapbender-commits] r8772 - trunk/mapbender/http/javascripts

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Fri Feb 7 04:51:57 PST 2014


Author: armin11
Date: 2014-02-07 04:51:56 -0800 (Fri, 07 Feb 2014)
New Revision: 8772

Modified:
   trunk/mapbender/http/javascripts/map_obj.js
Log:
Bugfix for missing layer_style elements in map_obj

Modified: trunk/mapbender/http/javascripts/map_obj.js
===================================================================
--- trunk/mapbender/http/javascripts/map_obj.js	2014-02-07 12:46:44 UTC (rev 8771)
+++ trunk/mapbender/http/javascripts/map_obj.js	2014-02-07 12:51:56 UTC (rev 8772)
@@ -994,7 +994,7 @@
 				featureInfoRequest = changeURLParameterValue(featureInfoRequest,"LAYERS", this.wms[i].objLayer[j].layer_name);
 				featureInfoObj.request = featureInfoRequest;
 				//get url to legend
-				if (typeof(this.wms[i].objLayer[j].layer_style[0].legendurl) !== 'undefined') {
+				if (if typeof(this.wms[i].objLayer[j].layer_style[0]) !=='undefined' && typeof(this.wms[i].objLayer[j].layer_style[0].legendurl) !== 'undefined') {
 					featureInfoObj.legendurl = this.wms[i].objLayer[j].layer_style[0].legendurl;
 				} else {
 					featureInfoObj.legendurl = "empty";



More information about the Mapbender_commits mailing list