Closed sanak closed 4 months ago
The cause is that redmine_gtt main
branch doesn't expose App.getScale()
and App.getBasemapUrl()
compatible methods, so those values become empty when requesting print.
https://github.com/gtt-project/redmine_gtt_print/blob/1.2-stable/assets/javascripts/gtt_print.js#L20-L21
var _submit = function () {
$('input[name="gtt_print_job[scale]"]').val(App.getScale());
$('input[name="gtt_print_job[basemap_url]"]').val(App.getBasemapUrl());
}
Without changing redmine_gtt
plugin's TypeScript interface, getting basemap url and default scale (for point) from redmine_gtt
plugin setting may be possible as alternative.
This was solved in 1.1-stable
branch via PR:#35, so I close this.
(I will merge it to main
branch, later.)
Problem When printing with
redmine_gtt
plugin'smain
branch, I encountered the following error.To Reproduce Setup
redmine_gtt_print
settings withredmine_gtt
plugin'smain
branch, then click[Print]
button.Expectation The error should not happen.