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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Mon Sep 22 08:19:12 PDT 2014


Author: armin11
Date: 2014-09-22 08:19:12 -0700 (Mon, 22 Sep 2014)
New Revision: 9082

Modified:
   trunk/mapbender/http/javascripts/mb_downloadFeedClient.php
Log:
some optical enhancements

Modified: trunk/mapbender/http/javascripts/mb_downloadFeedClient.php
===================================================================
--- trunk/mapbender/http/javascripts/mb_downloadFeedClient.php	2014-09-22 10:27:59 UTC (rev 9081)
+++ trunk/mapbender/http/javascripts/mb_downloadFeedClient.php	2014-09-22 15:19:12 UTC (rev 9082)
@@ -135,6 +135,7 @@
 	//don't show elements of dataset feed
 	$("#representation_select").css("display","none");
 	$("#representation_info").css("display","none");
+	$("#capabilities_hybrid").css("display","none");
 	//change size of outer fieldset
 	$("#client").css("height","450px");
 	$("#download_link_list").remove();
@@ -171,8 +172,10 @@
 			identifierAnchor.attr({'id':'capabilities_link'});
 			identifierAnchor.attr({'href':featureCollection.features[i].properties.capabilitiesLink});
 			identifierAnchor.text(featureCollection.features[i].properties.capabilitiesLink);
-			//$('#capabilities_link').val(featureCollection.features[i].properties.capabilitiesLink);
-			
+			//show hybrid link only if it is there
+			if (typeof featureCollection.features[i].properties.capabilitiesLink !== 'undefined' && featureCollection.features[i].properties.capabilitiesLink !== '' && featureCollection.features[i].properties.capabilitiesLink !== null) {	
+				$("#capabilities_hybrid").css("display","block");
+			}
 			//add identifier anchor
 			identifierAnchor =  $(document.createElement('a')).appendTo('#dataset_identifier');
 			identifierAnchor.attr({'id':'dataset_identifier_link'});
@@ -181,6 +184,7 @@
 			identifierAnchor.text(featureCollection.features[i].properties.namespace+"#"+featureCollection.features[i].properties.code);
 		}
 		selectOptions = selectOptions+"<option value='"+featureCollection.features[i].properties.datasetFeedLink+"' url='"+featureCollection.features[i].properties.datasetFeedLink+"' optionid='"+i+"'>"+featureCollection.features[i].properties.title+"</option>";
+	
 	}
 	datasetSelect.append(selectOptions);
 	//preselect option
@@ -207,7 +211,6 @@
 		alert("No parseable content found");
 		return false;
 	}
-	//alert("test");
 	//remove select element for the different possible representations (formats, crs, ...)
 	$('#dataset_representation_select').remove();
 	//generate new select element 



More information about the Mapbender_commits mailing list