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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Aug 12 05:00:11 PDT 2014


Author: armin11
Date: 2014-08-12 05:00:11 -0700 (Tue, 12 Aug 2014)
New Revision: 9043

Modified:
   trunk/mapbender/http/javascripts/mb_downloadFeedClient.js
Log:
Enhancement for showing metadata polygon for internal metadatasets

Modified: trunk/mapbender/http/javascripts/mb_downloadFeedClient.js
===================================================================
--- trunk/mapbender/http/javascripts/mb_downloadFeedClient.js	2014-08-11 13:28:08 UTC (rev 9042)
+++ trunk/mapbender/http/javascripts/mb_downloadFeedClient.js	2014-08-12 12:00:11 UTC (rev 9043)
@@ -169,6 +169,7 @@
 			//add identifier anchor
 			identifierAnchor =  $(document.createElement('a')).appendTo('#dataset_identifier');
 			identifierAnchor.attr({'id':'dataset_identifier_link'});
+			identifierAnchor.attr({'uuid':featureCollection.features[i].properties.code});
 			identifierAnchor.attr({'href':'../php/mod_iso19139ToHtml.php?url='+encodeURIComponent(featureCollection.features[i].properties.metadataLink)});
 			identifierAnchor.text(featureCollection.features[i].properties.namespace+"#"+featureCollection.features[i].properties.code);
 		}
@@ -273,6 +274,11 @@
 			//extent size of outer fieldset
 			$("#client").css("height","900px");
 			bound = bboxFiles.getDataExtent();
+			//Add wms layer from mb_metadata table (bounding_geom column)
+	 		var wms222 = new OpenLayers.Layer.WMS( "Exterior polygon from metadata",
+                "http://localhost/cgi-bin/mapserv?map=/home/armin/GDI-RP/Geoportal/devel/mapbender_trunk/tools/wms_extent/extents.map&metadata_uuid="+$('#dataset_identifier_link').attr('uuid'), {layers: 'metadata_polygon',transparent: "true",format: "image/png"}, {singleTile: true, isBaseLayer: false});
+			mapframe_file_list.addLayers([wms222]);
+			//Add polygon layer from mb_metadata tables bounding_geom column
 			mapframe_file_list.zoomToExtent(bound);
 			bboxFiles.events.on({
    				featureselected: function(event) {



More information about the Mapbender_commits mailing list