<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>Hi Julierme,</p>
<p>It is the client that requests a certain layer order, not the server. Unless you request a group layer/top level layer.</p>
<p>You find the information on the initial layer order in the GetProjectSettings response: <a href="https://docs.qgis.org/3.16/en/docs/server_manual/services.html#server-wms-getprojectsettings">https://docs.qgis.org/3.16/en/docs/server_manual/services.html#server-wms-getprojectsettings</a></p>
<p>The information of the GetProjectSettings response can be parsed by the client and used to generate an appropriate GetMap request with the correct layer order.</p>
<p>Hope this helps,</p>
<p>Andreas</p>
<p id="reply-intro">On 2021-03-31 18:07, 1520 gis wrote:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">
<div id="replybody1">
<div>
<div dir="ltr">Hi developers,
<div> </div>
<div>I have tried to change the QGIS-Server layer order using QGIS Desktop  Layers Panel and L.TileLayer.WMS (Leaflet) zIndex options. None of them could change the layer order. It seems that QGIS-Server always serves from bottom to Top: raster images, polygons, lines and points by default. Is there any way to change these settings?</div>
<div> </div>
<div>Kind regards</div>
<div> </div>
<div>Julierme</div>
<div> </div>
<div> </div>
</div>
</div>
</div>
<br />
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">_______________________________________________<br />Qgis-user mailing list<br /><a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br />List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank" rel="noopener noreferrer">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br />Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank" rel="noopener noreferrer">https://lists.osgeo.org/mailman/listinfo/qgis-user</a></div>
</blockquote>
<p><br /></p>

</body></html>