diff --git a/public/resources/index.css b/public/resources/index.css index d4314f035..ab7cc9651 100644 --- a/public/resources/index.css +++ b/public/resources/index.css @@ -1,18 +1,18 @@ @font-face { font-family: 'OpenSans'; - src: url('/fonts/OpenSans-Regular.ttf'); + src: url('./fonts/OpenSans-Regular.ttf'); font-weight: normal; font-style: normal; } @font-face { font-family: 'OpenSans'; - src: url('/fonts/OpenSans-Italic.ttf'); + src: url('./fonts/OpenSans-Italic.ttf'); font-weight: normal; font-style: italic; } @font-face { font-family: 'OpenSans'; - src: url('/fonts/OpenSans-Bold.ttf'); + src: url('./fonts/OpenSans-Bold.ttf'); font-weight: bold; font-style: normal; } @@ -25,7 +25,7 @@ body{ margin:0; background-repeat:no-repeat !important; background-size: contain !important; - background-image: url(/images/header-map-1280px.png); + background-image: url(./images/header-map-1280px.png); } a{ color: #499DCE; diff --git a/public/templates/data.tmpl b/public/templates/data.tmpl index 203c45c83..e31cb6d9a 100644 --- a/public/templates/data.tmpl +++ b/public/templates/data.tmpl @@ -5,27 +5,29 @@ {{name}} - TileServer GL {{#is_vector}} - - - - - + + + + + + + {{/is_vector}} {{^is_vector}} - - - - - + + + + + {{/is_vector}} @@ -47,7 +49,7 @@ sources: { 'vector_layer_': { type: 'vector', - url: '{{public_url}}data/{{id}}.json' + keyParam + url: '../../data/{{id}}.json' + keyParam } }, layers: [] @@ -86,7 +88,7 @@ new L.Control.Zoom({ position: 'topright' }).addTo(map); var tile_urls = [], tile_attribution, tile_minzoom, tile_maxzoom; - var url = '{{public_url}}data/{{id}}.json' + keyParam; + var url = '../../data/{{id}}.json' + keyParam; var req = new XMLHttpRequest(); req.overrideMimeType("application/json"); req.open('GET', url, true); diff --git a/public/templates/index.tmpl b/public/templates/index.tmpl index 0763f3fc3..d26b5a0bc 100644 --- a/public/templates/index.tmpl +++ b/public/templates/index.tmpl @@ -4,8 +4,12 @@ TileServer GL - Server for vector and raster maps with GL styles - + - - - - + + + + + + + + + + + + + + +