[MapProxy] Combining Mapbox Studio Style with WMS Layers from Geoserver in Mapproxy
Emily Hueni
emilyhueni1 at gmail.com
Mon Jan 15 23:38:50 PST 2018
Hello all,
I have just started using Mapproxy and I am having trouble with what seems
like a simple task. I would like to combine a mapbox style (created in
mapbox studio) with several wms layers that I have set up on geoserver. I
then would like to serve all of this up as a tile service to be consumed by
Tableau (via a tms custom connection). I have created the following YAML
file to test it out (I replaced some of the URL information from my mapbox
account). It seems like this should do the trick but when I view the
combined layers in mapproxy/demo the wms layer is not transparent and
completely covers the mappbox style. Any help/guidance you can offer is
greatly appreciated!
layers:
- name: geoserver
title: geoserver
sources: [gs_cache]
- name: mapbox
title: mapbox
sources: [mb_cache]
- name: geoservermapbox
title: gs_mb
tile_sources: [mb_cache, gs_cache]
caches:
mb_cache:
grids: [webmercator]
sources: [Mapbox_wmts]
gs_cache:
grids: [webmercator]
sources: [Geoserver_wms]
gs_mb_combined:
grids: [webmercator]
sources: [Mapbox_wmts, Geoserver_wms]
disable_storage: true
sources:
Mapbox_wmts:
type: tile
grid: GLOBAL_WEBMERCATOR
url:
https://api.mapbox.com/styles/v1/emilyh/xxxxxxxxxx/tiles/%(z)s/%(x)s/%(y)s?&access_token=pk.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
transparent: true
Geoserver_wms:
type: wms
req:
url: http://localhost:8080/geoserver/ows?SERVICE=WMS
layers: states
transparent: true
format: image/png
grids:
webmercator:
base: GLOBAL_WEBMERCATOR
origin: nw
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapproxy/attachments/20180116/802d2d8f/attachment.html>
More information about the MapProxy
mailing list