<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
I'm seeing an issue with MapProxy 1.5.0 and trunk (1.6.0a-20130215) whereby a tile source used as an overlay obscures wms sources below it in a layer with multiple sources.
<div><br>
</div>
<div>Interestingly the first time the image is requested it renders correctly, however when it is re-requested only the wms sources above the tile source appear in the image.  It appears that this is somehow related to retrieving the tiles from the cache rather
 than over the network as if I specify the 'disable_storage' option on the cache the image is rendered correctly every time.</div>
<div><br>
</div>
<div>A sample request from a Leaflet client looks like this: <a href="http://mapproxy.geosmart.co.nz/service?SERVICE=WMS&REQUEST=GetMap&VERSION=1.1.1&LAYERS=geosmart:traffic_incidents_nz&format=image/png&TRANSPARENT=true&HEIGHT=256&WIDTH=256&CQL_FILTER=status='current'%20AND%20(priority='0'%20OR%20priority='1'%20OR%20priority='2'%20OR%20priority='3'%20OR%20priority='7')">http://mapproxy.geosmart.co.nz/service?SERVICE=WMS&REQUEST=GetMap&VERSION=1.1.1&LAYERS=geosmart:traffic_incidents_nz&format=image/png&TRANSPARENT=true&HEIGHT=256&WIDTH=256&CQL_FILTER=status='current'%20AND%20(priority='0'%20OR%20priority='1'%20OR%20priority='2'%20OR%20priority='3'%20OR%20priority='7')</a></div>
<div><br>
</div>
<div>The relevant sections of my config are:</div>
<div><br>
</div>
<div>
<div>layers:                                                                                                                                                                                                                                                     
                                                                   </div>
<div>  - name: geosmart:traffic_incidents_nz                                                                                                                                              </div>
<div>    title: GeoSmart Traffic                                                                                                                                                                                                                                 
                                        </div>
<div>    sources: [geosmart_traffic_flow, geosmart_street_labels_cache, geosmart_traffic_incidents]</div>
</div>
<div><br>
</div>
<div>caches:</div>
<div>
<div>  geosmart_street_labels_cache:</div>
<div>    sources: [geosmart_street_labels]</div>
<div>    grids: [osm_grid]</div>
</div>
<div><br>
</div>
<div>
<div>sources:</div>
<div>  geosmart_traffic_incidents:</div>
<div>    type: wms</div>
<div>    wms_opts:</div>
<div>      version: 1.1.1</div>
<div>    supported_srs: ['EPSG:3857', 'EPSG:4326']</div>
<div>    req:</div>
<div>      url: <a href="http://geoserver.geosmart.co.nz/geoserver2.1/wms">http://geoserver.geosmart.co.nz/geoserver2.1/wms</a></div>
<div>      layers: geosmart:traffic_incidents_nz</div>
<div>      transparent: true</div>
<div>    forward_req_params: ['cql_filter']</div>
<div><br>
</div>
<div>  geosmart_traffic_flow:</div>
<div>    type: wms</div>
<div>    wms_opts:</div>
<div>      version: 1.1.1</div>
<div>    supported_srs: ['EPSG:3857', 'EPSG:4326']</div>
<div>    req:</div>
<div>      url: <a href="http://geoserver.geosmart.co.nz/geoserver_flow/wms">http://geoserver.geosmart.co.nz/geoserver_flow/wms</a></div>
<div>      layers: gps_flow_data</div>
<div>      transparent: true</div>
<div><br>
</div>
<div>  geosmart_street_labels:</div>
<div>    type: tile</div>
<div>    url: <a href="http://mt0.geosmart.co.nz/new/world/hires/labels/%(z)s/%(x)s/%(y)s.png">
http://mt0.geosmart.co.nz/new/world/hires/labels/%(z)s/%(x)s/%(y)s.png</a></div>
<div>    transparent: true</div>
<div>    grid: osm_grid</div>
</div>
<div><br>
</div>
<div>
<div>grids:</div>
<div>  osm_grid:</div>
<div>    base: GLOBAL_MERCATOR</div>
<div>    origin: nw</div>
</div>
<div><br>
</div>
<div>Cheers<br>
<div>
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; ">
<b><span style="font-size: 10pt; font-family: Arial, sans-serif; color: blue; "><br class="Apple-interchange-newline">
Adam Ratcliffe</span></b><span style="color: rgb(31, 73, 125); "><o:p></o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; "><font color="#0000ff" face="Arial, sans-serif"><span style="font-size: 13px; "><b>Software Developer</b></span></font></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; ">
<b><span style="font-size: 10pt; font-family: Arial, sans-serif; color: blue; ">GeoSmart</span></b><span style="color: rgb(31, 73, 125); "><o:p></o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; ">
<span style="font-size: 7.5pt; font-family: Arial, sans-serif; color: rgb(31, 73, 125); ">PO Box 101001</span><span style="color: rgb(31, 73, 125); "><o:p></o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; ">
<span style="font-size: 7.5pt; font-family: Arial, sans-serif; color: rgb(31, 73, 125); ">29 Apollo Drive, Mairangi Bay, Auckland, NZ</span><span style="color: rgb(31, 73, 125); "><o:p></o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; ">
<span style="font-size: 7.5pt; font-family: Arial, sans-serif; color: rgb(31, 73, 125); ">Ph: +64 9 966 8757</span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; ">
<span style="font-size: 7.5pt; font-family: Arial, sans-serif; color: rgb(31, 73, 125); ">Fx: +64 9 966 8721</span><span style="color: rgb(31, 73, 125); "><o:p></o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; ">
<span style="font-size: 7.5pt; font-family: Arial, sans-serif; color: rgb(31, 73, 125); ">Email:  </span><span style="font-family: Arial, sans-serif; color: rgb(31, 73, 125); "><a href="mailto:Phil.Allen@geosmart.co.nz" style="color: purple; "><span style="font-size: 7.5pt; color: blue; ">adam.ratcliffe@geosmart.co.nz</span></a></span><span style="color: rgb(31, 73, 125); "><o:p></o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; ">
<span style="font-size: 7.5pt; font-family: Arial, sans-serif; color: rgb(31, 73, 125); ">Web:   </span><span style="font-size: 10pt; font-family: Arial, sans-serif; color: rgb(31, 73, 125); "><a href="http://www.geosmart.co.nz/" style="color: purple; "><span style="font-size: 7.5pt; color: blue; ">www.GeoSmart.co.nz</span></a></span></div>
</div>
<div><br>
</div>
</div>
<br class="Apple-interchange-newline" style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">
<br class="Apple-interchange-newline">
</div>
<br>
</div>
</body>
</html>