riatelab/bertin

Add leg_top parameter for the legend

rysebaert opened this issue · 2 comments

if leg_top = TRUE (default value), then the legend is displayed on top of the map. To avoid overlapping with layers used for the map layout.

Ok. Thank you for the feed back. One solution might be to use the svg element. To be tested...
https://developer.mozilla.org/en-US/docs/Web/SVG/Element/use
Another solution would be to export the legend functions and make them accessible outside the cartographic representation function.

Fixed 4874ef9
just use require("bertin@0.9.18") and run your code.