1 Reply Latest reply on Nov 16, 2017 6:15 PM by Jim Walseth

    Add background color to TMS file

    siyang.teo

      Hi, I am trying to make a background color using a custom TMS file with the map service originating from GeoServer.

       

      I added the map-styles tag which I copied from Tableau's default TMS file signifying a black background of #000000. However it does work.

       

      Can anyone help?

       

      <?xml version='1.0' encoding='utf-8' ?>
      
      
      <!-- build 10400.17.0915.2112                               -->
      <mapsource inline='true' source-platform='win' version='10.4' xmlns:user='http://www.tableausoftware.com/xml/user'>
        <connection class='OGC-WMS' description='http://localhost:8080/geoserver/singapore/wms?' full-url='http://localhost:8080/geoserver/singapore/wms?' inline='true' offline='' port='8080' server='localhost' service='http' tileset='US\normal' url='/geoserver/singapore/wms?' use-tiled-maps='true' />
        <languages />
        <properties />
        <map-styles>
            <map-style display-name="Dark" name="tableau-z-black" wait-tile-color="#141414">
                <map-layer-style name="background_color" request-string="#000000"/>
            </map-style>
        </map-styles>
        <mapsource-defaults version='10.4'>
          <style>
            <style-rule element='map-layer'>
              <format attr='enabled' id='spearfish' value='true' />
            </style-rule>
          </style>
        </mapsource-defaults>
      </mapsource>