<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi Joel,</p>
<p>I did not test your QGIS projects but you can set the default
extent of your project centered on your data in QGIS Server tab of
your project properties. Then click on the check box "Advertised
extent" and set your extent (or click on the button to use the
current canvas extent).</p>
<p>Also, you can customize your projects by filling the form and
check "Service Capabilities". Then, you have to upload your QGIS
project in your QGIS Server container at the right location.</p>
<p><br>
</p>
<p><img src="cid:part1.NihsuWaJ.RZAF6t5C@oslandia.com" alt=""></p>
<p>Hope it will help you !<br>
</p>
<pre class="moz-signature" cols="72">Benoît Blanc
Développeur SIG
Oslandia
<a class="moz-txt-link-abbreviated" href="mailto:benoit.blanc@oslandia.com">benoit.blanc@oslandia.com</a></pre>
<div class="moz-cite-prefix">Le 07/06/2022 à 00:09, Joel Tejeda a
écrit :<br>
</div>
<blockquote type="cite"
cite="mid:2AC9BD10-5BFA-4B92-968C-9C057DA25B20@karmacomputing.co.uk">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"
class="">Hi Qgis-qwc2 contributors,</span><br
style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class="">
<br style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"
class="">
<span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"
class="">We have managed to install the docker qwc2 to a test
server, but we have a problem when the some maps load. There are
several maps are not being centered correctly which make it hard
to find one the qgis load.</span><br style="caret-color: rgb(0,
0, 0); color: rgb(0, 0, 0);" class="">
<br style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"
class="">
<span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"
class="">Here we have two examples:</span><br
style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class="">
<span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"
class="">1. Working qgis map:</span>
<div class=""><a
href="https://maps.jtkarma.co.uk/?t=BroadwayGC/BroadwayGC/Broadway"
class="moz-txt-link-freetext" moz-do-not-send="true">https://maps.jtkarma.co.uk/?t=BroadwayGC/BroadwayGC/Broadway</a><font
class="" color="#000000"><span style="caret-color: rgb(0, 0,
0);" class=""><br class="">
</span></font>
<div class=""><img apple-inline="yes"
id="59E0A8CE-ECDE-433D-A440-6DFA29FCA632"
src="cid:part2.7D5nNHW0.0ejl1sdE@oslandia.com" class=""><br
style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"
class="">
<br style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"
class="">
<span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"
class="">2. Non centered qgis map:</span><br
style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"
class="">
<a
href="https://maps.jtkarma.co.uk/?t=OrsettGC/OrsettGC/OrsettGC"
class="moz-txt-link-freetext" moz-do-not-send="true">https://maps.jtkarma.co.uk/?t=OrsettGC/OrsettGC/OrsettGC</a><br
style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"
class="">
<img apple-inline="yes"
id="EA5E9BB9-954F-40D7-AF16-63A2AEC0EDA6"
src="cid:part3.xJIZfERo.mZYFTvYX@oslandia.com" class=""><br
style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"
class="">
<span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"
class="">The configuration:</span><br style="caret-color:
rgb(0, 0, 0); color: rgb(0, 0, 0);" class="">
<a href="https://maps.jtkarma.co.uk/config.json"
class="moz-txt-link-freetext" moz-do-not-send="true">https://maps.jtkarma.co.uk/config.json</a><br
style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"
class="">
<br style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"
class="">
<span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"
class="">Things we have tried:</span><br style="caret-color:
rgb(0, 0, 0); color: rgb(0, 0, 0);" class="">
<span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"
class="">. Opening in QGIS Desktop to find any problems with
labels.</span></div>
<div class="">
<div style="margin: 0px; font-stretch: normal; font-size:
13px; line-height: normal; font-family: "Helvetica
Neue"; min-height: 15px;" class=""><br class="">
</div>
<span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"
class="">. Changing config.json settings such as:</span><br
style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"
class="">
<span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"
class=""><span class="Apple-tab-span" style="white-space:pre"> </span>urlPositionFormat:
changed to centerAndZoom or extent</span><br
style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"
class="">
<span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"
class=""><span class="Apple-tab-span" style="white-space:pre"> </span>preserveExtentOnThemeSwitch:
true or false</span></div>
<div class=""><br style="caret-color: rgb(0, 0, 0); color:
rgb(0, 0, 0);" class="">
<span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"
class="">. Checking the difference between both qgis files.</span></div>
<div class=""><br style="caret-color: rgb(0, 0, 0); color:
rgb(0, 0, 0);" class="">
<span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);
font-family: "Helvetica Neue"; font-size: 13px;"
class="">It is important to note: The exact same map project
files open just fine (centered correctly) in qgis desktop
version 3.22.2-Białowieża, on operating system Ubuntu and
Mac, and I have also seen it working on an older version of
qgis with the format .ecw which now is not supported so
converted to .tiff </span></div>
<div class=""><font class="" size="2" face="Helvetica Neue"><br
style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"
class="">
</font><span style="caret-color: rgb(0, 0, 0); color: rgb(0,
0, 0);" class="">I've uploaded 2 zips one with the qgis
file, layers and tiff image from the one thats working and
the other one that is not centered.</span><br
style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"
class="">
<br style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"
class="">
<span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"
class="">Can you please help us or guide us on how to fix
this error?</span><br style="caret-color: rgb(0, 0, 0);
color: rgb(0, 0, 0);" class="">
<br style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"
class="">
<span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"
class="">The qgis map files of the centered and working map</span><br
style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"
class="">
<a
href="https://drive.google.com/file/d/1_WL4MR2YruoCJOY_RxX9WibYn1tm1dhB/view?usp=sharing"
class="moz-txt-link-freetext" moz-do-not-send="true">https://drive.google.com/file/d/1_WL4MR2YruoCJOY_RxX9WibYn1tm1dhB/view?usp=sharing</a><br
style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"
class="">
<br style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"
class="">
<span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"
class="">THe qgis map files of the non centered maps</span><br
style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"
class="">
<a
href="https://drive.google.com/file/d/1FVwGmA0i8qVMZcyYyzzsW83e8pVxMe7i/view?usp=sharing"
class="moz-txt-link-freetext" moz-do-not-send="true">https://drive.google.com/file/d/1FVwGmA0i8qVMZcyYyzzsW83e8pVxMe7i/view?usp=sharing</a><br
style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"
class="">
<br style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"
class="">
<br style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"
class="">
<span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"
class="">kind regards,</span><br style="caret-color: rgb(0,
0, 0); color: rgb(0, 0, 0);" class="">
<span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"
class="">Joel</span></div>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
qgis-qwc2 mailing list
<a class="moz-txt-link-abbreviated" href="mailto:qgis-qwc2@lists.osgeo.org">qgis-qwc2@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-qwc2">https://lists.osgeo.org/mailman/listinfo/qgis-qwc2</a>
</pre>
</blockquote>
</body>
</html>