Reply to topic

Using marblewidget with own tile server

dalishi
Registered Member
Posts
10
Karma
0
Hi,

I have set up my own openstreetmap mapnik rendered tile server according to the instruction https://switch2osm.org/serving-tiles/manually-building-a-tile-server-14-04/ and tested it is working using OpenLayer3 html script to retrieve tiles from the server using the following url setting:
url: 'http://localhost/osm_tiles/{z}/{x}/{y}.png'

Now I am trying to using marblewidget to display my own rendered tiles but got nothing to show when I using the following setting in my dgml theme file (I modified the theme file from openstreetmap.dgml):

Code: Select all
      <layer name="local-osm-theme" backend="texture">
        <!-- OpenStreetMap mapnik rendered tiles expire after seven days
                     or 604800 seconds -->
        <texture name="mapnik_data" expire="604800">
          <sourcedir format="PNG"> earth/local-osm-theme </sourcedir>
          <tileSize width="256" height="256"/>
          <storageLayout levelZeroColumns="1" levelZeroRows="1" maximumTileLevel="19" mode="OpenStreetMap"/>
          <projection name="Mercator"/>
          <downloadUrl protocol="https" host="localhost" path="/osm_tiles/"/>
          <downloadPolicy usage="Browse" maximumConnections="20"/>
          <downloadPolicy usage="Bulk" maximumConnections="2"/>
        </texture>
      </layer>


The widget only shows the root image background and nothing else. Is there any other specially setting I overlooked? Thanks guys.
User avatar Earthwings
KDE Developer
Posts
172
Karma
1
OS
On a quick look I wonder why you're setting protocol to https, not http.

If that doesn't help, try passing --debug-info as parameter to marble and watch the shell output. It will tell the URLs it tries to download to get tiles, and potentially errors that come up.
dalishi
Registered Member
Posts
10
Karma
0
Earthwings wrote:On a quick look I wonder why you're setting protocol to https, not http.

If that doesn't help, try passing --debug-info as parameter to marble and watch the shell output. It will tell the URLs it tries to download to get tiles, and potentially errors that come up.



Thanks Earthwings, that solved my problem and I did not realize the difference between http and https before. Thanks.

 
Reply to topic

Bookmarks



Who is online

Registered users: Baidu [Spider], Bing [Bot], Exabot [Bot], Google [Bot], jolugaju, Majestic-12 [Bot], ranksdirect, Snudl