<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof ContentPasted0 ContentPasted1">
I'm not sure what's going on for you. When I copy and paste that code into my application the defaults are overridden and I just have the single A4 template.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof ContentPasted0 ContentPasted1">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof ContentPasted0 ContentPasted1">
If I were you I might try recreating the demo on 3.10 and adding custom layouts there. If that works you could compare the demo code in the app.js to your own to see what's changed.</div>
<div class="elementToProof">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="Signature">
<div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-family: "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; font-size: 15px; text-align: start; background-color: rgb(255, 255, 255); display: inline !important;">--</span><br style="font-family: "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; font-size: 15px; text-align: start; background-color: rgb(255, 255, 255);">
<div dir="ltr" style="font-size: 15px; font-family: "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; margin: 0px; text-align: start; background-color: rgb(255, 255, 255);">
<div dir="ltr" style="margin:0px"><font size="4">Chris Hughes</font>
<div style="font-size:12.79px;margin:0px"><br>
</div>
<div style="font-size:12.79px;margin:0px">GIS Analyst</div>
<div style="font-size:12.79px;margin:0px"><font size="1">Lincoln County GIS Department </font></div>
<div style="margin:0px"><font size="1"><span style="font-family:Roboto, arial, sans-serif;margin:0px">880 NE 7th S</span><span style="font-family:Roboto, arial, sans-serif;margin:0px">t</span>. l Newport, OR 97365</font></div>
<div style="font-size:12.79px;margin:0px"><font size="1">Tel: (541) 574 1283</font></div>
</div>
</div>
<br>
</div>
</div>
</div>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Anton Postl <anton.postl@zwinz.co.at><br>
<b>Sent:</b> Sunday, March 5, 2023 11:59 PM<br>
<b>To:</b> Christopher Hughes <chughes@co.lincoln.or.us>; geomoose-users@lists.osgeo.org <geomoose-users@lists.osgeo.org><br>
<b>Subject:</b> AW: Print Layouts</font>
<div> </div>
</div>
<style>
<!--
@font-face
        {font-family:"Cambria Math"}
@font-face
        {font-family:Calibri}
p.x_MsoNormal, li.x_MsoNormal, div.x_MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}
a:link, span.x_MsoHyperlink
        {color:#0563C1;
        text-decoration:underline}
p.x_MsoPlainText, li.x_MsoPlainText, div.x_MsoPlainText
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}
p.x_xmsonormal, li.x_xmsonormal, div.x_xmsonormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}
span.x_E-MailFormatvorlage21
        {font-family:"Calibri",sans-serif;
        color:windowtext}
span.x_NurTextZchn
        {font-family:"Calibri",sans-serif}
.x_MsoChpDefault
        {font-size:10.0pt}
@page WordSection1
        {margin:70.85pt 70.85pt 2.0cm 70.85pt}
div.x_WordSection1
        {}
-->
</style>
<div lang="DE-AT" link="#0563C1" vlink="purple" style="word-wrap:break-word">
<div class="x_WordSection1">
<p class="x_MsoPlainText">thanks for the reply, this is how it worked in the old version</p>
<p class="x_MsoPlainText"> </p>
<p class="x_MsoPlainText">my code in the app.js looks like this:</p>
<p class="x_MsoPlainText"> </p>
<p class="x_MsoPlainText">var custom_layouts = [</p>
<p class="x_MsoPlainText">  {</p>
<p class="x_MsoPlainText">    label: 'A4 Quer',</p>
<p class="x_MsoPlainText">    orientation: 'landscape',</p>
<p class="x_MsoPlainText">    page: 'a4',</p>
<p class="x_MsoPlainText">    units: 'mm',</p>
<p class="x_MsoPlainText">    elements: [</p>
<p class="x_MsoPlainText">        {</p>
<p class="x_MsoPlainText">            type: 'text',</p>
<p class="x_MsoPlainText">            size: 15, fontStyle: 'bold',</p>
<p class="x_MsoPlainText">            x: 10, y: 12, text: '{{title}}'</p>
<p class="x_MsoPlainText">        },</p>
<p class="x_MsoPlainText">        {</p>
<p class="x_MsoPlainText">            type: 'map',</p>
<p class="x_MsoPlainText">            x: 10, y: 15,</p>
<p class="x_MsoPlainText">            width: 280, height: 185</p>
<p class="x_MsoPlainText">        },</p>
<p class="x_MsoPlainText">        {</p>
<p class="x_MsoPlainText">            type: 'text',</p>
<p class="x_MsoPlainText">                                               size: 8,</p>
<p class="x_MsoPlainText">            x: 10, y: 205, text: 'gedruckt am {{day}}.{{month}}.{{year}}'</p>
<p class="x_MsoPlainText">        }</p>
<p class="x_MsoPlainText">    ]</p>
<p class="x_MsoPlainText">  }</p>
<p class="x_MsoPlainText">];</p>
<p class="x_MsoPlainText"> </p>
<p class="x_MsoPlainText"> </p>
<p class="x_MsoPlainText">var print_preview = app.add(gm3.components.PrintModal, 'print-preview', {</p>
<p class="x_MsoPlainText" style="text-indent:35.4pt">layouts: custom_layouts </p>
<p class="x_MsoPlainText">});</p>
<p class="x_MsoPlainText"> </p>
<p class="x_MsoPlainText"> </p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">Thank you</p>
<p class="x_MsoNormal"><span style=""> </span></p>
<p class="x_MsoNormal"><span style=""> </span></p>
<p class="x_MsoNormal"><span style=""> </span></p>
<div style="border:none; border-top:solid #E1E1E1 1.0pt; padding:3.0pt 0cm 0cm 0cm">
<p class="x_MsoNormal"><b><span lang="DE">Von:</span></b><span lang="DE"> Christopher Hughes <chughes@co.lincoln.or.us>
<br>
<b>Gesendet:</b> Freitag, 3. März 2023 17:23<br>
<b>An:</b> Anton Postl <anton.postl@zwinz.co.at><br>
<b>Betreff:</b> Re: Print Layouts</span></p>
</div>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">P {margin-top:0;margin-bo=tom:0;} </p>
<div>
<p class="x_MsoNormal" style="background:white"><span style="color:black">My assumption is that the label/orientation/page in your print template nee=s to match the format in the language json file <a href="https://gi=hub.com/geomoose/gm3/blob/main/src/gm3/lang/en.json" title="https://gith=b.com/geomoose/gm3/blob/main/src/gm3/lang/en.json">here=/a> (or
 whichever language your site uses). I believe this change happened so that=eoMoose can more easily be translated into other languages.</a></span></p>
</div>
<div>
<p class="x_MsoNormal" style="background:white"><u><span style="color:black"><a href="https://gi=hub.com/geomoose/gm3/blob/main/src/gm3/lang/en.json" title="https://gith=b.com/geomoose/gm3/blob/main/src/gm3/lang/en.json"><span style="color:black"><br>
<br>
</span><span style="color:black; text-decoration:none"></span></a></span></u></p>
</div>
<div>
<p class="x_MsoNormal" style="background:white"><u><span style="color:black"><a href="https://gi=hub.com/geomoose/gm3/blob/main/src/gm3/lang/en.json" title="https://gith=b.com/geomoose/gm3/blob/main/src/gm3/lang/en.json"><span style="color:black">So for example
 if you're trying to create/modify an 11x17 portrait layout t=e label would have to be tabloid-portrait, the orientation would have to b= portrait, and the page would have to be tabloid. If you're trying to =create a new template that's not in the language
 json files you probably would have to add them to the json fi=es and rebuild the application. You also need to make sure that you're dir=cting GeoMoose to use your custom layouts like this (I'm not sure if the w=y of doing that has change between 3.6 and 3.10):</span></a></span></u></p>
</div>
<div>
<p class="x_MsoNormal" style="background:white"><u><span style="color:black"><a href="https://gi=hub.com/geomoose/gm3/blob/main/src/gm3/lang/en.json" title="https://gith=b.com/geomoose/gm3/blob/main/src/gm3/lang/en.json"><span style="color:black"><br>
<br>
</span></a></span></u></p>
</div>
<div>
<p class="x_MsoNormal" style="background:white"><u><span style="color:black"><a href="https://gi=hub.com/geomoose/gm3/blob/main/src/gm3/lang/en.json" title="https://gith=b.com/geomoose/gm3/blob/main/src/gm3/lang/en.json"><span style="color:black">var print_preview
 = app.add(gm3.components.PrintModal, 'print-preview', { </span></a></span></u></p>
<div>
<p class="x_MsoNormal" style="background:white"><u><span style="color:black"><a href="https://gi=hub.com/geomoose/gm3/blob/main/src/gm3/lang/en.json" title="https://gith=b.com/geomoose/gm3/blob/main/src/gm3/lang/en.json"><span style="color:black">   layouts:
 custom_layouts</span></a></span></u></p>
</div>
<p class="x_MsoNormal" style="background:white"><u><span style="color:black"><a href="https://gi=hub.com/geomoose/gm3/blob/main/src/gm3/lang/en.json" title="https://gith=b.com/geomoose/gm3/blob/main/src/gm3/lang/en.json"><span style="color:black"> });<br>
<br>
</span></a></span></u></p>
</div>
<div>
<p class="x_MsoNormal" style="background:white"><u><span style="color:black"><a href="https://gi=hub.com/geomoose/gm3/blob/main/src/gm3/lang/en.json" title="https://gith=b.com/geomoose/gm3/blob/main/src/gm3/lang/en.json"><span style="color:black"><br>
<br>
</span></a></span></u></p>
</div>
<div>
<p class="x_MsoNormal" style="background:white"><u><span style="color:black"><a href="https://gi=hub.com/geomoose/gm3/blob/main/src/gm3/lang/en.json" title="https://gith=b.com/geomoose/gm3/blob/main/src/gm3/lang/en.json"><span style="color:black">If that doesn't
 help, sharing your print code in your app.js (including tem=lates) might help debug what's going on.</span></a></span></u></p>
</div>
<div>
<p class="x_MsoNormal" style="background:white"><u><span style="color:black"><a href="https://gi=hub.com/geomoose/gm3/blob/main/src/gm3/lang/en.json" title="https://gith=b.com/geomoose/gm3/blob/main/src/gm3/lang/en.json"><span style="color:black"><br>
<br>
</span></a></span></u></p>
</div>
<div>
<p class="x_MsoNormal" style="background:white"><u><span style="color:black"><a href="https://gi=hub.com/geomoose/gm3/blob/main/src/gm3/lang/en.json" title="https://gith=b.com/geomoose/gm3/blob/main/src/gm3/lang/en.json"><span style="color:black">Chris</span></a></span></u></p>
</div>
<p class="x_MsoNormal"><u><span style="color:blue"><a href="https://gi=hub.com/geomoose/gm3/blob/main/src/gm3/lang/en.json" title="https://gith=b.com/geomoose/gm3/blob/main/src/gm3/lang/en.json"><span style="color:blue"><br>
<br>
</span></a></span></u></p>
<div>
<div>
<p class="x_MsoNormal"><u><span style="color:black"><a href="https://gi=hub.com/geomoose/gm3/blob/main/src/gm3/lang/en.json" title="https://gith=b.com/geomoose/gm3/blob/main/src/gm3/lang/en.json"><span style="color:black"><br>
<br>
</span><span style="color:black; text-decoration:none"></span></a></span></u></p>
</div>
<div id="x_Signature">
<div>
<div>
<p class="x_MsoNormal"><u><span style="color:black"><a href="https://gi=hub.com/geomoose/gm3/blob/main/src/gm3/lang/en.json" title="https://gith=b.com/geomoose/gm3/blob/main/src/gm3/lang/en.json"><span style="color:black">=-<br>
<br>
</span></a></span></u></p>
<div>
<div>
<p class="x_MsoNormal"><u><span style="font-size:13.5pt; color:black"><a href="https://gi=hub.com/geomoose/gm3/blob/main/src/gm3/lang/en.json" title="https://gith=b.com/geomoose/gm3/blob/main/src/gm3/lang/en.json"><span style="color:black">Chris Hughes</span><span style="font-size:11.0pt; color:black">
</span></a></span></u></p>
<div>
<p class="x_MsoNormal"><u><span style="font-size:9.5pt; color:black"><a href="https://gi=hub.com/geomoose/gm3/blob/main/src/gm3/lang/en.json" title="https://gith=b.com/geomoose/gm3/blob/main/src/gm3/lang/en.json"><span style="color:black"><br>
<br>
</span></a></span></u></p>
</div>
<div>
<p class="x_MsoNormal"><u><span style="font-size:9.5pt; color:black"><a href="https://gi=hub.com/geomoose/gm3/blob/main/src/gm3/lang/en.json" title="https://gith=b.com/geomoose/gm3/blob/main/src/gm3/lang/en.json"><span style="color:black">GIS Analyst</span></a></span></u></p>
</div>
<div>
<p class="x_MsoNormal"><u><span style="font-size:7.5pt; color:black"><a href="https://gi=hub.com/geomoose/gm3/blob/main/src/gm3/lang/en.json" title="https://gith=b.com/geomoose/gm3/blob/main/src/gm3/lang/en.json"><span style="color:black">Lincoln County=IS
 Department </span><span style="font-size:9.5pt; color:black"></span></a></span></u></p>
</div>
<div>
<p class="x_MsoNormal"><u><span style="font-size:7.5pt; font-family:"Arial",sans-serif; color:black"><a href="https://gi=hub.com/geomoose/gm3/blob/main/src/gm3/lang/en.json" title="https://gith=b.com/geomoose/gm3/blob/main/src/gm3/lang/en.json"><span style="color:black">880
 NE 7th S</span><span style="font-family:"Calibri",sans-serif; color:black">t. l Newport, OR 97365</span></a></span></u></p>
</div>
<div>
<p class="x_MsoNormal"><u><span style="font-size:7.5pt; color:black"><a href="https://gi=hub.com/geomoose/gm3/blob/main/src/gm3/lang/en.json" title="https://gith=b.com/geomoose/gm3/blob/main/src/gm3/lang/en.json"><span style="color:black">Tel: (541) 574=283</span><span style="font-size:9.5pt; color:black"></span></a></span></u></p>
</div>
</div>
</div>
<p class="x_MsoNormal"><u><span style="font-size:7.5pt; color:black"><a href="https://gi=hub.com/geomoose/gm3/blob/main/src/gm3/lang/en.json" title="https://gith=b.com/geomoose/gm3/blob/main/src/gm3/lang/en.json"><span style="color:black"><br>
<br>
</span></a></span></u></p>
</div>
</div>
</div>
</div>
<div class="x_MsoNormal" align="center" style="text-align:center"><span class="x_MsoHyperlink"><span style="font-size:7.5pt"><a href="https://gi=hub.com/geomoose/gm3/blob/main/src/gm3/lang/en.json" title="https://gith=b.com/geomoose/gm3/blob/main/src/gm3/lang/en.json">
<hr size="2" width="98%" align="center">
</a></span></span></div>
<div id="x_divRplyFwdMsg">
<p class="x_MsoNormal"><b><u><span style="font-size:7.5pt; color:black"><a href="https://gi=hub.com/geomoose/gm3/blob/main/src/gm3/lang/en.json" title="https://gith=b.com/geomoose/gm3/blob/main/src/gm3/lang/en.json"><span style="color:black">From:</span><span style="color:black; font-weight:normal">
 GeoMoose-users on behalf of Anton Postl <br>
</span><span style="color:black">Sent:</span><span style="color:black; font-weight:normal"> Friday, March 3, 2023 12:57 AM<br>
</span><span style="color:black">To:</span><span style="color:black; font-weight:normal"> geomoose-users@lists.osgeo.org
<br>
</span><span style="color:black">Subject:</span><span style="color:black; font-weight:normal"> [GeoMoose-users] Print Layouts</span><span style="color:blue; font-weight:normal">
</span><span style="font-size:11.0pt; color:windowtext; font-weight:normal; text-decoration:none"></span></a></span></u></b></p>
<div>
<p class="x_MsoNormal"><u><span style="font-size:7.5pt; color:blue"><a href="https://gi=hub.com/geomoose/gm3/blob/main/src/gm3/lang/en.json" title="https://gith=b.com/geomoose/gm3/blob/main/src/gm3/lang/en.json"><span style="color:blue"> </span></a></span></u></p>
</div>
</div>
<div>
<div>
<p class="x_xmsonormal"><u><span style="color:blue"><a href="https://gi=hub.com/geomoose/gm3/blob/main/src/gm3/lang/en.json" title="https://gith=b.com/geomoose/gm3/blob/main/src/gm3/lang/en.json"><span style="color:blue">Hello,</span></a></span></u></p>
<p class="x_xmsonormal"><u><span style="color:blue"><a href="https://gi=hub.com/geomoose/gm3/blob/main/src/gm3/lang/en.json" title="https://gith=b.com/geomoose/gm3/blob/main/src/gm3/lang/en.json"><span style="color:blue"> </span></a></span></u></p>
<p class="x_xmsonormal"><u><span style="color:blue"><a href="https://gi=hub.com/geomoose/gm3/blob/main/src/gm3/lang/en.json" title="https://gith=b.com/geomoose/gm3/blob/main/src/gm3/lang/en.json"><span style="color:blue">I'm trying to define my own print layout.</span></a></span></u></p>
<p class="x_xmsonormal"><u><span style="color:blue"><a href="https://gi=hub.com/geomoose/gm3/blob/main/src/gm3/lang/en.json" title="https://gith=b.com/geomoose/gm3/blob/main/src/gm3/lang/en.json"><span style="color:blue">according to the instructions:</span></a></span></u></p>
<p class="x_xmsonormal"><a href="https://cas5-0-urlprotect.trendmicro.co=:443/wis/clicktime/v1/query?url=https%3a%2f%2fdocs.geomoose.org%2f3.x%2f=owto%2fprint%2dlayouts.html&umid=c51612d1-b9a3-11ed-8159-6045bd03860=&auth=dc2ed28abfc38f9dccdc580b0625a9783b471d36-3ae64ebc1903a230e5261=d8919b6b12ee162144">https://docs.geomoose.org/3.x/howto/print-layouts.html=/a></a></p>
<p class="x_xmsonormal"><u><span style="color:#0563C1"><a href="https://cas5-0-urlprotect.trendmicro.co=:443/wis/clicktime/v1/query?url=https%3a%2f%2fdocs.geomoose.org%2f3.x%2f=owto%2fprint%2dlayouts.html&umid=c51612d1-b9a3-11ed-8159-6045bd03860=&auth=dc2ed28abfc38f9dccdc580b0625a9783b471d36-3ae64ebc1903a230e5261=d8919b6b12ee162144"> <span style="color:windowtext; text-decoration:none"></span></a></span></u></p>
<p class="x_xmsonormal"><u><span style="color:#0563C1"><a href="https://cas5-0-urlprotect.trendmicro.co=:443/wis/clicktime/v1/query?url=https%3a%2f%2fdocs.geomoose.org%2f3.x%2f=owto%2fprint%2dlayouts.html&umid=c51612d1-b9a3-11ed-8159-6045bd03860=&auth=dc2ed28abfc38f9dccdc580b0625a9783b471d36-3ae64ebc1903a230e5261=d8919b6b12ee162144">in
 version 3.6.1 it worked without any problems. </a></span></u></p>
<p class="x_xmsonormal"><u><span style="color:#0563C1"><a href="https://cas5-0-urlprotect.trendmicro.co=:443/wis/clicktime/v1/query?url=https%3a%2f%2fdocs.geomoose.org%2f3.x%2f=owto%2fprint%2dlayouts.html&umid=c51612d1-b9a3-11ed-8159-6045bd03860=&auth=dc2ed28abfc38f9dccdc580b0625a9783b471d36-3ae64ebc1903a230e5261=d8919b6b12ee162144">under
 3.10.1 only the default layouts are displaye=, is there anything else to define?</a></span></u></p>
<p class="x_xmsonormal"><u><span style="color:#0563C1"><a href="https://cas5-0-urlprotect.trendmicro.co=:443/wis/clicktime/v1/query?url=https%3a%2f%2fdocs.geomoose.org%2f3.x%2f=owto%2fprint%2dlayouts.html&umid=c51612d1-b9a3-11ed-8159-6045bd03860=&auth=dc2ed28abfc38f9dccdc580b0625a9783b471d36-3ae64ebc1903a230e5261=d8919b6b12ee162144"> </a></span></u></p>
<p class="x_xmsonormal"><u><span style="color:#0563C1"><a href="https://cas5-0-urlprotect.trendmicro.co=:443/wis/clicktime/v1/query?url=https%3a%2f%2fdocs.geomoose.org%2f3.x%2f=owto%2fprint%2dlayouts.html&umid=c51612d1-b9a3-11ed-8159-6045bd03860=&auth=dc2ed28abfc38f9dccdc580b0625a9783b471d36-3ae64ebc1903a230e5261=d8919b6b12ee162144">Thank
 you</a></span></u></p>
</div>
</div>
<p class="x_MsoNormal"> </p>
</div>
</div>
</body>
</html>