Hi, We use the printing extension to let users of our brugis website (Mapstore2 based) print their map.
Everything works, but we added on the footer section of a mainPage, a text item that tells the scale of the map: footer: height: 30 items: - !columns items: - !text align: left text: '(c) Brugis for data. (c) CIRB for Urbis basemap' - !text align: center text: '${comment}' - !text align: right text: 'Scale: 1:${format %,d scale}' Sadly, on some scales (1/20.000 for example), the scale is a tad off, showing 1/19.999 in this case. I tried to round it the the closest tens with this (openai chatgpt bot suggestion): text: 'Scale: 1:${format %,d round(scale,-1)}' But it does not seem to be supported by Mapfish. I tried to add zoomLevels: - !zoomLevels scales: [50, 100, 125, 200, 250, 500, 1000, 2000, 2500, 5000, 7500, 10000, 12500, 20000, 25000, 50000, 75000, 100000, 150000] in the - !map section of the items of mainpage, to strictly constrain the possible sclaes available with no luck. And I have all the possible sclaes listed: #=========================================================================== # the allowed scales #=========================================================================== scales: - 50 - 100 - 125 - 200 - 250 - 500 - 1000 - 2000 - 2500 - 5000 - 7500 - 10000 - 12500 - 20000 - 25000 - 50000 - 75000 - 100000 - 150000 at the top of the config.yaml file... What can I do? Do I have to complete the dpis: section with truer ones (currently I have [90,180])? Thank you already, and Happy New Year to everyone here đŸ™‚. Greg
_______________________________________________ Geoserver-users mailing list Please make sure you read the following two resources before posting to this list: - Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/ - The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users