changeset 96:1b637dd0b944 gmap2

Remove some unnecessary references to XML.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 16 Oct 2011 03:27:49 +0300
parents 38cec25e5f36
children 0b5fc283ed0c
files tools/makegmaps.php
diffstat 1 files changed, 8 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/tools/makegmaps.php	Sun Oct 16 02:30:12 2011 +0300
+++ b/tools/makegmaps.php	Sun Oct 16 03:27:49 2011 +0300
@@ -23,8 +23,8 @@
  */
 $locPath = $mapUtils."maps/";
 $continentJS = $markerPath."continents.js";
-$tradelaneOutXML = $markerPath."tradelane.xml";
-$tradelaneOverXML = $markerPath."troverlay.xml";
+$tradelaneOut = $markerPath."tradelane.xml";
+$tradelaneOver = $markerPath."troverlay.xml";
 $mkloc = $mapUtils."mkloc";
 
 $modes = array(
@@ -357,12 +357,13 @@
 
 
 /*
- * Export tradelane data to XML
+ * Export tradelane data
  */
 if (!isset($tradelanePoints))
   die("PHP array \$tradelanePoints not set, '$config' is old or incompatible.\n");
 
-echo "\nCreating tradelane waypoint data '".$tradelaneOutXML."' ...\n";
+echo "\nCreating tradelane waypoint data '".$tradelaneOut."' ...\n";
+
 $doc = new DOMDocument("1.0", "UTF-8");
 $node = $doc->createElement("markers");
 $parnode = $doc->appendChild($node);
@@ -383,10 +384,10 @@
   $newnode->setAttribute("continent", "");
   $newnode->setAttribute("type", "tradelane");
 }
-$doc->save($tradelaneOutXML);
+$doc->save($tradelaneOut);
 
 
-echo "\nCreating tradelane line data '".$tradelaneOverXML."' ...\n";
+echo "\nCreating tradelane line data '".$tradelaneOver."' ...\n";
 $doc = new DOMDocument("1.0", "UTF-8");
 $node = $doc->createElement("tradelanes");
 $parnode = $doc->appendChild($node);
@@ -410,7 +411,7 @@
     $point->setAttribute("y", $yc);
   }
 }
-$doc->save($tradelaneOverXML);
+$doc->save($tradelaneOver);
 
 
 /*