8 Replies Latest reply on Aug 7, 2017 10:37 PM by Yury Brunt

    Openseamap

    Yury Brunt

      Hello,

       

      I'm able to use openstreetmap via the custom map connection: Creating a Custom Map Connection | Tableau Software

      Is there anyone who know how to use openseamap as custom map in Tableau?

       

      Thanks,

        • 1. Re: Openseamap
          Sarah Battersby

          Hi Yury,

           

          I have never used openseamap, but it looks like there are a few tile servers that you might look into:

          OpenSeaMap-dev:Server – OpenSeaMap-dev

           

          -Sarah.

          Tableau Research

          • 2. Re: Openseamap
            Yury Brunt

            Hi Sarah,

             

            Thanks you for your response. I have tried the following servers:

            http://t1.openseamap.org/seamark/

            http://tiles.openseamap.org/seamark/

             

            I'm not able to retrieve the tile images with my workbook. Below the script I have used.
            Do you have any suggestions?

             

            <?xml version="1.0" encoding="utf-8"?>

            <mapsource inline="true" version="8.1">

            <connection class="OpenStreetMap" port="80" server="http://t1.openseamap.org/seamark" url-format="/{Z}/{X}/{Y}.png" />

            <layers>

            <layer display-name='Base' name='base' show-ui='false' type='features' request-string='/' />

            </layers>

            </mapsource>

             

            Thank you

            • 3. Re: Openseamap
              Sarah Battersby

              Hi Yury,

               

              I think you need a minor tweak to your TMS file - just move the /seamark part of the URL to the url-format section (in bold in my TMS file text below)

               

              <?xml version="1.0" encoding="utf-8"?>

              <mapsource inline="true" version="8.1">

              <connection class="OpenStreetMap" port="80" server="http://t1.openseamap.org/" url-format="/seamark/{Z}/{X}/{Y}.png" />

              <layers>

              <layer display-name='Base' name='base' show-ui='false' type='features' request-string='/' />

              </layers>

              </mapsource>

               

              Once you have that, it should load up the tiles: 

               

              Note that the OpenSeaMap tiles are just the sea-related data; they do not include other open street map data.  It also seems that they only have data in the tiles to about zoom level 9, so if you are zoomed out to a large region you will probably just see blank white tiles.

               

              -Sarah.

              • 4. Re: Openseamap
                Yury Brunt

                Thank you Sarah, this is perfect!

                One more question: now I see only the "seamarks" and I don't see the base map.

                Can you advise how to display the base map below the seamark layer? The same as your example?

                 

                Thank you

                Yury

                • 5. Re: Openseamap
                  Sarah Battersby

                  Unfortunately I do not think you can show multiple TMS files at the same time.  

                  • 6. Re: Openseamap
                    Yury Brunt

                    I don't mean another TMS file. The images below show the difference.

                    The one with the white background is in Tableau, the other one strait from openseamap.org.

                    I would like to see a similar image in Tableau, do you think that is possible?

                    Also your example contains more details than only the white background.

                    I guess I am doing something wrong here.

                    openseamap_tableau.pngopenseamap.png

                    • 7. Re: Openseamap
                      Sarah Battersby

                      The map on openseamap uses two different TMS files - one from Open Street Map and one from OpenSeaMap.  They are, essentially, layering two sets of map tiles and the transparent areas in the openseamap allow you to see through to the Open Street Map tiles. 

                       

                      If you want to see what is in each set of tiles, when you are on the openseamap web site you can right click on the map and select 'Inspect' and see the individual elements that make up the map.  For the area that you show, you can see the separate png files that make up the two different data sources (this is just one tile for an area...):

                      open street map tiles: http://b.tile.openstreetmap.org/9/265/164.png

                      and open sea map tiles: http://tiles.openseamap.org/seamark/9/265/164.png

                       

                      Since I don't think we can have multiple base map tile sets on at the same time in Tableau you wouldn't be able to see both of these at the same time.

                       

                      The other details in my map are just the polygons in the default dataset that I used to make a map so that I could test out the TMS file.  They are rendered in Tableau using the Tableau geocoding polygons...they aren't related to the Openseamap tiles at all

                       

                      -Sarah.

                      • 8. Re: Openseamap
                        Yury Brunt

                        Okay many thanks for your time and explanation Sarah.