Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support line/polygon type geometry printing #25

Open
sanak opened this issue Apr 6, 2023 · 1 comment
Open

Support line/polygon type geometry printing #25

sanak opened this issue Apr 6, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@sanak
Copy link
Member

sanak commented Apr 6, 2023

Problem
I haven't checked this actually, but from the following code part, only point type geometry printing seems to be supported now.
https://github.com/gtt-project/redmine_gtt_print/blob/1.1-stable/lib/redmine_gtt_print/issue_to_json.rb#L211-L227

style: {
  val1: "#FF4500",
  "*": {
    symbolizers: [{
    fillColor: "#FF0000",
    strokeWidth: 5,
    fillOpacity: 0,
    graphicName: "circle",
    rotation: "30",
    strokeDashstyle: "solid",
    strokeLinecap: "round",
    type: "point",
    graphicOpacity: 0.4,
    strokeColor: " ${val1}",
    pointRadius: 8,
    strokeOpacity: 1
  }]},

Improvement
It would be nice to support line/polygon type geometry printing.
https://mapfish.github.io/mapfish-print-doc/styles.html#stylev2
https://github.com/mapfish/mapfish-print/tree/master/examples/src/test/resources/examples/json_styling

@sanak sanak added the enhancement New feature or request label Apr 6, 2023
@sanak
Copy link
Member Author

sanak commented Apr 6, 2023

Alternatives
Something style JSON configuration in plugin's setting view may be good alternative like GTT plugin's geocoder option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant