[GeoMoose-users] Print Layouts
Christopher Hughes
chughes at co.lincoln.or.us
Fri Mar 3 08:23:46 PST 2023
My assumption is that the label/orientation/page in your print template needs to match the format in the language json file here<https://github.com/geomoose/gm3/blob/main/src/gm3/lang/en.json> (or whichever language your site uses). I believe this change happened so that GeoMoose can more easily be translated into other languages.
So for example if you're trying to create/modify an 11x17 portrait layout the label would have to be tabloid-portrait, the orientation would have to be 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 files and rebuild the application. You also need to make sure that you're directing GeoMoose to use your custom layouts like this (I'm not sure if the way of doing that has change between 3.6 and 3.10):
var print_preview = app.add(gm3.components.PrintModal, 'print-preview', {
layouts: custom_layouts
});
If that doesn't help, sharing your print code in your app.js (including templates) might help debug what's going on.
Chris
--
Chris Hughes
GIS Analyst
Lincoln County GIS Department
880 NE 7th St. l Newport, OR 97365
Tel: (541) 574 1283
________________________________
From: GeoMoose-users <geomoose-users-bounces at lists.osgeo.org> on behalf of Anton Postl <anton.postl at zwinz.co.at>
Sent: Friday, March 3, 2023 12:57 AM
To: geomoose-users at lists.osgeo.org <geomoose-users at lists.osgeo.org>
Subject: [GeoMoose-users] Print Layouts
Hello,
I'm trying to define my own print layout.
according to the instructions:
https://docs.geomoose.org/3.x/howto/print-layouts.html<https://cas5-0-urlprotect.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fdocs.geomoose.org%2f3.x%2fhowto%2fprint%2dlayouts.html&umid=c51612d1-b9a3-11ed-8159-6045bd038605&auth=dc2ed28abfc38f9dccdc580b0625a9783b471d36-3ae64ebc1903a230e52614d8919b6b12ee162144>
in version 3.6.1 it worked without any problems.
under 3.10.1 only the default layouts are displayed, is there anything else to define?
Thank you
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geomoose-users/attachments/20230303/9bd1ba89/attachment-0001.htm>
More information about the GeoMoose-users
mailing list