Skip to content

Feature request: Add RTL (right-to-left) support for legend column layout #3634

@itaiITown

Description

@itaiITown

Feature request

What is missing?
Currently, when using legend templates with multiple columns in Mapfish Print, the columns are always rendered from left to right. This behavior does not support right-to-left (RTL) languages such as Hebrew or Arabic.

Why is it important?
In RTL documents and maps, the natural reading order starts from the right side of the page. When the legend columns are rendered left-to-right, it breaks the visual and linguistic consistency of the layout, especially in RTL environments.

Suggested solution
Introduce a configuration parameter (e.g., rtl: true) in the legend block, which reverses the column order so that columns are laid out from right to left. This would align with the direction of RTL languages and improve accessibility and usability.

Additional context
RTL support for legend layout would improve localization capabilities and ensure consistent presentation in documents using right-to-left languages. This is a common requirement in multilingual environments and aligns with internationalization best practices.

Thank you for considering this improvement!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions