[Mapbender-commits] r9848 - trunk/mapbender/http/classes
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Mon Jan 22 01:26:32 PST 2018
Author: armin11
Date: 2018-01-22 01:26:32 -0800 (Mon, 22 Jan 2018)
New Revision: 9848
Modified:
trunk/mapbender/http/classes/class_kml_ows.php
Log:
Don't export description when converting geojson simplestyle-spec to kml cause google earth don't show attributes when description tag is set!
Modified: trunk/mapbender/http/classes/class_kml_ows.php
===================================================================
--- trunk/mapbender/http/classes/class_kml_ows.php 2018-01-17 14:45:06 UTC (rev 9847)
+++ trunk/mapbender/http/classes/class_kml_ows.php 2018-01-22 09:26:32 UTC (rev 9848)
@@ -484,7 +484,15 @@
// create a placemark tag with a geometry and add it to the document
if ($e_geometry) {
- $e_placemark = $doc->createElement("Placemark");
+ $e_placemark = $doc->createElement("Placemark");
+ if ($pl_name) {
+ $e_pl_name = $doc->createElement("name", $pl_name);
+ $e_placemark->appendChild($e_pl_name);
+ }
+ /*if ($pl_description) {
+ $e_pl_description = $doc->createElement("description", $pl_description);
+ $e_placemark->appendChild($e_pl_description);
+ }*/
if ($e_ExtendedData) {
$e_placemark->appendChild($e_ExtendedData);
}
@@ -492,14 +500,6 @@
if ($e_styleUrl) {
$e_placemark->appendChild($e_styleUrl);
}
- if ($pl_name) {
- $e_pl_name = $doc->createElement("name", $pl_name);
- $e_placemark->appendChild($e_pl_name);
- }
- if ($pl_description) {
- $e_pl_description = $doc->createElement("description", $pl_description);
- $e_placemark->appendChild($e_pl_description);
- }
$placemarkArray[] = $e_placemark;
}
}
More information about the Mapbender_commits
mailing list