Sigma88 / Sigma-Cartographer

Map exporting tool for KSP
Other
8 stars 6 forks source link

`leaflet` doesn't generate maps correctly #19

Open krisalyssa opened 5 years ago

krisalyssa commented 5 years ago

Given this configuration, in GameData/Sigma/Cartographer/SigmaCartographer.cfg:

@SigmaCartographer
{
    // level 0
    Maps
    {
        body = Kerbin
        colorMap = true
        satelliteMap = true
        oceanFloor = false
        width = 512
        tile = 256
        exportFolder = 0
        leaflet = true
    }
}

SigmaCartographer creates a directory at GameData/Sigma/Cartographer/PluginData/Kerbin/0/ColorMap which is empty. There's no other output as far as I can tell.

If colorMap is changed to false, SigmaCartographer creates a directory at GameData/Sigma/Cartographer/PluginData/Kerbin/0/SatelliteMap containing a single image file which has the map for the "eastern" half of Kerbin (pole to pole latitude, 0 to +180 degrees longitude).

If leaflet is set to false, SigmaCartographer creates a directory at GameData/Sigma/Cartographer/PluginData/Kerbin/0/SatelliteMap containing two image files. Tile0000.png has the map for the "western" half of Kerbin, while Tile0001.png has the map for the "eastern" half.

For what it's worth, the tiles from kerbalmaps.com and ksp.deringineur.net were in a directory structure that looked something like

kerbin
  sat
    0
      0
        0.png
      1
        0.png

The general form is {body}/{style}/{zoom}/{x}/{y}.png. body, style, and zoom would all come from config values, I expect.

Sigma88 commented 5 years ago

sorry for the long absence, I just uploaded a new version of Cartographer, I am not sure this issue was fixed, if you could try and let me know it would be apreciated