# HG changeset patch # User Matti Hamalainen # Date 1395012084 -7200 # Node ID d858383547c7607e7252f8ceaf23c0480d0afed1 # Parent d0789eab0c47a8a25edb552e7e48a9741db09171 Comment cosmetics. diff -r d0789eab0c47 -r d858383547c7 tools/makegmaps.php --- a/tools/makegmaps.php Mon Mar 17 01:18:50 2014 +0200 +++ b/tools/makegmaps.php Mon Mar 17 01:21:24 2014 +0200 @@ -160,10 +160,10 @@ makeHtAccessFile(&$urlTilePrefix, $pathTileData, $i."/"); -/* - * Build maputils and fetch latest map data - */ if (!file_exists($pathMapUtils)) +// +// Build maputils and fetch latest map data +// { // If maputils does not exist, clone the repository $tmp = $binMercurial." clone http://pupunen.net/hg/maputils/ ".escapeshellarg($pathMapUtils); @@ -211,9 +211,9 @@ require $config; -/* - * Generate continents JavasScript data file - */ +// +// Generate continents JavasScript data file +/// echo "* Generating $worldJS ...\n"; $str = "var pmapWorld = {"; foreach ($worldMap as $wkey => $wval) @@ -238,9 +238,9 @@ -/* - * Generate marker files from LOC data - */ +// +// Generate marker files from LOC data +/// echo "Converting location data from LOC files to GMaps markers...\n"; foreach ($modes as $mode => $mdata) @@ -299,8 +299,9 @@ } -/* Export tradelane waypoint data - */ +// +// Export tradelane waypoint data +// if (!isset($tradelanePoints)) die("PHP array \$tradelanePoints not set, '$config' is old or incompatible.\n"); @@ -329,8 +330,9 @@ stOutputToJSONFile($tradelaneOut, $qdata); -/* Export tradelane polyline data - */ +// +// Export tradelane polyline data +// echo "\nCreating tradelane polyline data '".$tradelaneOverlay."' ...\n"; if (!isset($tradelaneDefs)) die("PHP array \$tradelaneDefs not set, '$config' is old or incompatible.\n"); @@ -357,9 +359,10 @@ stOutputToJSONFile($tradelaneOverlay, $qdata); -/* - * Generate PNG maps - */ + +// +// Generate PNG maps +// function makeMap($inFilename, $outFilename, $zlevel, $data) { global $mapPalette, $fontFile, $fontSize;