[Mapbender-commits] r9366 - in trunk/mapbender/http: javascripts plugins

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Jan 14 05:03:34 PST 2016


Author: armin11
Date: 2016-01-14 05:03:34 -0800 (Thu, 14 Jan 2016)
New Revision: 9366

Modified:
   trunk/mapbender/http/javascripts/mb_downloadFeedClient.php
   trunk/mapbender/http/plugins/mb_downloadFeedClient.php
Log:
Some enhancement for ATOM Feed Client

Modified: trunk/mapbender/http/javascripts/mb_downloadFeedClient.php
===================================================================
--- trunk/mapbender/http/javascripts/mb_downloadFeedClient.php	2016-01-14 10:38:35 UTC (rev 9365)
+++ trunk/mapbender/http/javascripts/mb_downloadFeedClient.php	2016-01-14 13:03:34 UTC (rev 9366)
@@ -108,7 +108,7 @@
 			//alert('click');
 			resetForm();
 			method =  "getServiceFeedObjectFromUrl";
-        		data = $( this ).text();
+        		data = $( this ).attr('value');
 			//call server by ajax function
 			callServer(data,method);
     		});
@@ -185,6 +185,7 @@
 	$("#tab_header_number_representations").text("");
 	$("#number_of_tiles").text("");
 	$('.selectpicker').selectpicker('destroy');
+	//$('.dropdown-toggle').dropdown()
 
 }
 

Modified: trunk/mapbender/http/plugins/mb_downloadFeedClient.php
===================================================================
--- trunk/mapbender/http/plugins/mb_downloadFeedClient.php	2016-01-14 10:38:35 UTC (rev 9365)
+++ trunk/mapbender/http/plugins/mb_downloadFeedClient.php	2016-01-14 13:03:34 UTC (rev 9366)
@@ -166,27 +166,27 @@
 <button class="btn btn-primary" type="button" id="download_feed_button">
   <?php echo _mb("Get feed content");?> 
 </button>
-	<p>
-		<label for="example_feeds"><?php echo _mb("Example feeds");?>:</label>
-		<ul class="list-group" id="example_feeds">
-			<li class="example_service_feed list-group-item-success">http://www.geoportal.rlp.de/mapbender/php/mod_inspireDownloadFeed.php?id=2b009ae4-aa3e-ff21-870b-49846d9561b2&type=SERVICE&generateFrom=wmslayer&layerid=30694</li>
-			<li class="example_service_feed list-group-item-info">http://www.geoportal.rlp.de/mapbender/php/mod_inspireDownloadFeed.php?id=c2019e4f-3a3b-1caf-5c61-98a4343bf249&type=SERVICE&generateFrom=wfs&wfsid=216</li>
-			<li class="example_service_feed list-group-item-warning">http://geo.noe.gv.at/inspire-download/download_service_feed.xml</li>
-			<li class="example_service_feed list-group-item-danger">http://ole.e-steiermark.com/inspire/DownloadServiceFeed.xml</li>
-			<li class="example_service_feed list-group-item-success">https://www.geoportal.ie/geoportal/download/ProtectedSites_SPA/npws-inspire-protected-sites-special-protection-areas.atom.en.xml</li>
-			<li class="example_service_feed list-group-item-info">http://catalogue.sigloire.fr/PRRA/atomfeed/topatom.php</li>
-			<li class="example_service_feed list-group-item-warning">https://www.regionalstatistik.de/genesisws/inspire/pd/03/feeds/sf_200-71-4-B.xml</li>
-			<li class="example_service_feed list-group-item-danger">http://sg.geodatenzentrum.de/web_download/downloadservice.atom.xml</li>
-			<li class="example_service_feed list-group-item-success">http://www.lfu.bayern.de/gdi/dls/biotopkartierung.xml</li>
-			<li class="example_service_feed list-group-item-info">http://www.geoportal.hessen.de/mapbender//php/mod_inspireDownloadFeed.php?id=5cf8456c-abf4-b593-0acc-0942341f0957&type=SERVICE&generateFrom=wfs&wfsid=264</li>
-			<li class="example_service_feed list-group-item-warning">http://rips-gdi.lubw.baden-wuerttemberg.de/Atom_feed/de-bw-lubw_inspire_downloadservice_rips_naturschutz/de-bw-lubw_inspire_downloadservice_rips_naturschutz.xml</li>
-			<li class="example_service_feed list-group-item-danger">http://maps.waterschapservices.nl/www/download/nl.xml</li>
-			<li class="example_service_feed list-group-item-success">http://services.rce.geovoorziening.nl/www/download/nl.xml</li>
-			<li class="example_service_feed list-group-item-info">http://mapy.geoportal.gov.pl/wss/service/ATOM/httpauth/atom/SR</li>
-			<li class="example_service_feed list-group-item-warning">http://sedsh127.sedsh.gov.uk/Atom_data/ScotGov/ProtectedSites/SG_ProtectedSites.atom.en.xml</li>
-			<li class="example_service_feed list-group-item-danger">http://geoportal.saarland.de/mapbender/php/mod_inspireDownloadFeed.php?id=de59f284-8abc-4989-9ef3-6544121da16d&type=SERVICE&generateFrom=wfs&wfsid=245</li>
+	<div class="dropdown" id="example_div">
+		<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><?php echo _mb("Example feeds");?> <span class="caret"></span></button>
+		<ul class="dropdown-menu" id="example_feeds">
+			<li><a class="example_service_feed" value="http://www.geoportal.rlp.de/mapbender/php/mod_inspireDownloadFeed.php?id=2b009ae4-aa3e-ff21-870b-49846d9561b2&type=SERVICE&generateFrom=wmslayer&layerid=30694">Orthofotos Rheinland-Pfalz (WFS Datenquelle)</a></li>
+			<li><a class="example_service_feed" value="http://www.geoportal.rlp.de/mapbender/php/mod_inspireDownloadFeed.php?id=c2019e4f-3a3b-1caf-5c61-98a4343bf249&type=SERVICE&generateFrom=wfs&wfsid=216">Naturschutzgebiete Rheinland-Pfalz (WFS Datenquelle)</a></li>
+			<li><a class="example_service_feed" value="http://geoportal.saarland.de/mapbender/php/mod_inspireDownloadFeed.php?id=de59f284-8abc-4989-9ef3-6544121da16d&type=SERVICE&generateFrom=wfs&wfsid=245">Bodenkarte Saarland (WFS Datenquelle)</a></li>
+			<li><a class="example_service_feed" value="http://www.geoportal.hessen.de/mapbender//php/mod_inspireDownloadFeed.php?id=5cf8456c-abf4-b593-0acc-0942341f0957&type=SERVICE&generateFrom=wfs&wfsid=264">Abflussgebiete HQ100 Hessen (WFS Datenquelle)</a></li>
+			<li><a class="example_service_feed" value="http://geo.noe.gv.at/inspire-download/download_service_feed.xml">Diverse Niederösterreich</a></li>
+			<li><a class="example_service_feed" value="http://ole.e-steiermark.com/inspire/DownloadServiceFeed.xml">Diverse Steiermark</a></li>
+			<li><a class="example_service_feed" value="https://www.geoportal.ie/geoportal/download/ProtectedSites_SPA/npws-inspire-protected-sites-special-protection-areas.atom.en.xml">Protected Sites Ireland</a></li>
+			<li><a class="example_service_feed" value="http://catalogue.sigloire.fr/PRRA/atomfeed/topatom.php">Diverse (730!) France</a></li>
+			<li><a class="example_service_feed" value="https://www.regionalstatistik.de/genesisws/inspire/pd/03/feeds/sf_200-71-4-B.xml">Statistik Niedersachsen (Destatis)</a></li>
+			<li><a class="example_service_feed" value="http://sg.geodatenzentrum.de/web_download/downloadservice.atom.xml">Basisdaten Geodatenzentrum BKG</a></li>
+			<li><a class="example_service_feed" value="http://www.lfu.bayern.de/gdi/dls/biotopkartierung.xml">Diverse Landesamt für Umwelt Bayern</a></li>
+			<li><a class="example_service_feed" value="http://rips-gdi.lubw.baden-wuerttemberg.de/Atom_feed/de-bw-lubw_inspire_downloadservice_rips_naturschutz/de-bw-lubw_inspire_downloadservice_rips_naturschutz.xml">Diverse Landesamt für Umwelt Baden-Württemberg</a></li>
+			<li><a class="example_service_feed" value="http://maps.waterschapservices.nl/www/download/nl.xml">Diverse 1 Netherlands</a></li>
+			<li><a class="example_service_feed" value="http://services.rce.geovoorziening.nl/www/download/nl.xml">Diverse 2 Netherlands</a></li>
+			<li><a class="example_service_feed" value="http://mapy.geoportal.gov.pl/wss/service/ATOM/httpauth/atom/SR">Diverse Cadastral Poland</a></li>
+			<li><a class="example_service_feed" value="http://sedsh127.sedsh.gov.uk/Atom_data/ScotGov/ProtectedSites/SG_ProtectedSites.atom.en.xml">Protected Sites Scotland</a></li>
 		</ul>
-	</p>
+	</div>
 	<!--<input type="button" title="Get Feed" id="download_feed_button" value="<?php echo _mb("Get feed content");?>"/>-->
       </form>
     </p>



More information about the Mapbender_commits mailing list