[MapProxy] Transparent Tile Cache over Tile Server

Oliver Tonnhofer olt at omniscale.de
Fri Aug 3 00:02:36 PDT 2018


Hi,

sorry I haven't read your first mail careful enough. 

You second configuration does not work, because MapProxy does not load the OSM tile to place it behind you Special-Event tiles if there is already a tile in the cache.

You need something like:

layers:
  - name: combined_layer
    title: osm + osl
    sources: [combined_cache]

caches:
  combined_cache:
    grids: [webmercator]
    sources: [osm_cache, osl_cache]
    
  osl_cache:
    grids: [webmercator]
    sources: []
    format: custom_format
    cache:
      type: file
      directory: /mapproxy/osl/
      directory_layout: tms

sources:
  osm:
    type: tile
    grid: GLOBAL_WEBMERCATOR
    url: http://a.tile.openstreetmap.org/%(z)s/%(x)s/%(y)s.png
    transparent: true



Regards,
Oliver

-- 
Oliver Tonnhofer  | Omniscale GmbH & Co KG  | https://omniscale.com
OpenStreetMap WMS and tile services         | https://maps.omniscale.com







> On 1. Aug 2018, at 20:55, Greg Albrecht <gba at gregalbrecht.com> wrote:
> 
> Thanks for the help Oliver. I've updated the config as follows:
> 
> https://gist.github.com/ampledata/13434095e2923d25e2e4f36b1902b69e
> 
> Unfortunately what I'm seeing is the Special-Event tiles (right) as non-transparent over the OSM tiles (left) in the background:
> 
> https://www.dropbox.com/s/t8gkchp1o9le8jw/Screenshot%202018-08-01%2011.53.06.png?dl=0
> 
> Thanks,
> -g
> 
> 
> 
> On Wed, Aug 1, 2018 at 5:02 AM, Oliver Tonnhofer <olt at omniscale.de> wrote:
> Hi,
> 
> you need to 'mark' your tile source as transparent:
> https://mapproxy.org/docs/nightly/configuration_examples.html#merge-tile-sources
> 
> 
> Regards,
> Oliver
> 
> -- 
> Oliver Tonnhofer  | Omniscale GmbH & Co KG  | https://omniscale.com
> OpenStreetMap WMS and tile services         | https://maps.omniscale.com
> 
> 
> 
> 
> 
> 
> 
> > On 30. Jul 2018, at 20:37, Greg Albrecht <gba at gregalbrecht.com> wrote:
> > 
> > Hi All,
> > 
> > I'm trying to use a Special-Event PDF as a transparent layer overlay for an existing OSM Tile Source. I've already used MapTiler to split the PDF into the appropriate tiles and can export them as a TMS directory structure or as a mbtiles file. 
> > 
> > If I use a tile server to host the Special-Event tiles and use a combined cache to provide a layer to my web browser (via WMTS), the Special-Event tiles are transparent and I can see all the way through to the underlying OSM tiles.
> > 
> > Config: https://gist.github.com/ampledata/c60602300ea02adb744b216a0b21439a
> > 
> > If I use a local TMS file cache to host the Special-Event tiles and use a combined cache to provide a layer to my web browser (via WMTS), I can ONLY see the Special-Event tiles and I cannot see the underlying OSM tiles:
> > 
> > Config: https://gist.github.com/ampledata/e81f8848d92621774e0cb2d3973edb64
> > 
> > I'd prefer using a local TMS file cache to host the Special-Event tiles, and have them be transparent on top of the externally hosted OSM tiles. I appreciate any pointers on what might be wrong with my config.
> > 
> > The tile files themselves are: "PNG image data, 256 x 256, 8-bit colormap, non-interlaced"
> > 
> > Thanks,
> > -g
> > 
> > 
> > -- 
> > Greg Albrecht <gba at gregalbrecht.com> W2GMD
> > EMT, Emergency & Disaster Communications Supervisor
> > Mobile: 1-415-598-8226
> > http://ampledata.org/
> > http://twitter.com/ampledata
> > https://github.com/ampledata
> > _______________________________________________
> > MapProxy mailing list
> > MapProxy at lists.osgeo.org
> > https://lists.osgeo.org/mailman/listinfo/mapproxy
> 
> 
> 
> 
> -- 
> Greg Albrecht <gba at gregalbrecht.com> W2GMD
> EMT & Disaster Communications Specialist
> Mobile: 1-415-598-8226
> http://ampledata.org/
> http://twitter.com/ampledata
> https://github.com/ampledata



More information about the MapProxy mailing list