[Mapbender-commits] r8701 - in trunk/mapbender/http: javascripts php
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Fri Sep 6 04:19:15 PDT 2013
Author: armin11
Date: 2013-09-06 04:19:14 -0700 (Fri, 06 Sep 2013)
New Revision: 8701
Modified:
trunk/mapbender/http/javascripts/mb_downloadFeedClient.js
trunk/mapbender/http/php/mod_inspireDownloadFeed.php
Log:
Correction for bbox attribute of downloadlinks in INSPIRE downloadservice dataset feed. Should be separated with blank, not comma.
Modified: trunk/mapbender/http/javascripts/mb_downloadFeedClient.js
===================================================================
--- trunk/mapbender/http/javascripts/mb_downloadFeedClient.js 2013-09-04 13:15:47 UTC (rev 8700)
+++ trunk/mapbender/http/javascripts/mb_downloadFeedClient.js 2013-09-06 11:19:14 UTC (rev 8701)
@@ -235,7 +235,7 @@
} else {
ext = featureCollection.features[k].properties.link[i]['@attributes'].bbox;
extArrayNew = new Array();
- extArray = ext.split(",");
+ extArray = ext.split(" ");
//sort array to lat lon
extArrayNew[0] = extArray[1];
extArrayNew[1] = extArray[0];
Modified: trunk/mapbender/http/php/mod_inspireDownloadFeed.php
===================================================================
--- trunk/mapbender/http/php/mod_inspireDownloadFeed.php 2013-09-04 13:15:47 UTC (rev 8700)
+++ trunk/mapbender/http/php/mod_inspireDownloadFeed.php 2013-09-06 11:19:14 UTC (rev 8701)
@@ -1389,7 +1389,7 @@
$feedEntryLink->setAttribute("type", $furtherLinkType[$m]);
$feedEntryLink->setAttribute("hreflang", "de");
$feedEntryLink->setAttribute("title", $furtherLinkTitle[$m]);
- $feedEntryLink->setAttribute("bbox", $newBox);
+ $feedEntryLink->setAttribute("bbox", str_replace(","," ",$newBox));
$feedEntry->appendChild($feedEntryLink);
}
break;
@@ -1431,7 +1431,7 @@
$feedEntryLink->setAttribute("type", $furtherLinkType[$m]);
$feedEntryLink->setAttribute("hreflang", "de");
$feedEntryLink->setAttribute("title", $furtherLinkTitle[$m]);
- $feedEntryLink->setAttribute("bbox", $furtherLinkBbox[$m]);
+ $feedEntryLink->setAttribute("bbox", str_replace(","," ",$furtherLinkBbox[$m]));
$feedEntry->appendChild($feedEntryLink);
}
break;
More information about the Mapbender_commits
mailing list