<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi Michael,</p>
<p><br>
</p>
<p>You should switch the order of the layers sources, so that it
reads <br>
</p>
<p>sources: [basemap_cache_schumm, basemap_cache_tiles]</p>
<p><br>
</p>
<p>Besides, you need to move the opacity parameter to the layers
cache image options like this:</p>
<p><br>
</p>
<p>caches:<br>
basemap_cache_tiles:<br>
sources: [basemap_tiles]<br>
request_format: image/png<br>
image:<br>
format: image/png<br>
#mode: RGBA<br>
#transparent: true<br>
opacity: 0.5<br>
grids: [GLOBAL_WEBMERCATOR]</p>
<p><br>
</p>
<p>You dont need all those transparent and mode settings for your
usecase and they can be removed.</p>
<p><br>
</p>
<p>Greetings,</p>
<p>Johannes</p>
<p><br>
</p>
<p><img src="cid:part1.LqnWJUXi.FhYFc9ru@terrestris.de" alt=""></p>
<p><br>
</p>
<div class="moz-cite-prefix">Am 04.12.24 um 15:14 schrieb Michael
Heerdegen via MapProxy:<br>
</div>
<blockquote type="cite" cite="mid:87cyi7pmc0.fsf@web.de">
<pre class="moz-quote-pre" wrap="">Daniel Cebulla via MapProxy <a class="moz-txt-link-rfc2396E" href="mailto:mapproxy@lists.osgeo.org"><mapproxy@lists.osgeo.org></a> writes:
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">Is there a chance, that the term you are looking for in your use case
is "opacity" instead?? ...
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
Of course. Thank you for mentioning that point.
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">From the docs:
opacity
Configures the opacity of a layer or cache. This value is used when the source or cache
is placed on other layers and it can be used to overlay non-transparent images. It does
not alter the image itself, and only effects when multiple layers are merged to one
image. The value should be between 0.0 (full transparent) and 1.0 (opaque, i.e. the
layers below will not be rendered).
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
I played with it for quite a while and didn't get it work. Specifying
opacity is not rejected (don't get a warning) but it has no effect.
There are opacity related bugs, but maybe I'm trying wrong. Tried a
lot, though.
There are also "transparent_color" and "transparent_color_tolerance",
but also these don't have an effect. Tried different combinations with
different numbers of caches.
I attach the end result of my today's trials, if somebody wants to play
with it... Is there something obviously wrong?
Thx, Michael.
</pre>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
MapProxy mailing list
<a class="moz-txt-link-abbreviated" href="mailto:MapProxy@lists.osgeo.org">MapProxy@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/mapproxy">https://lists.osgeo.org/mailman/listinfo/mapproxy</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
Dipl.-Geogr. Johannes Weskamm
— Anwendungsentwickler —
terrestris GmbH & Co. KG
Kölnstraße 99
53111 Bonn
Tel: +49 (0)228 / 96 28 99 -51
Fax: +49 (0)228 / 96 28 99 -57
Email: <a class="moz-txt-link-abbreviated" href="mailto:weskamm@terrestris.de">weskamm@terrestris.de</a>
Web: <a class="moz-txt-link-freetext" href="https://www.terrestris.de">https://www.terrestris.de</a>
Amtsgericht Bonn, HRA 6835
Komplementärin: terrestris Verwaltungsgesellschaft mbH
vertreten durch: Torsten Brassat, Marc Jansen
Informationen über Ihre gespeicherten Daten finden Sie auf
unserer Homepage unter folgendem Link:
<a class="moz-txt-link-freetext" href="https://www.terrestris.de/datenschutzerklaerung/">https://www.terrestris.de/datenschutzerklaerung/</a></pre>
</body>
</html>