camptocamp / cgxp

22 stars 22 forks source link

Print Plugin: deactivated legend as default #1038

Closed eleu closed 8 years ago

eleu commented 8 years ago

In the API Reference for the cgxp_print you can find a parameter checkLegend to set the initial status of the legend to false. We tried to do this in this line of the viewer.js: https://github.com/camptocamp/baselstadt_mapbs/blob/master/mapbs/templates/viewer.js#L547 Unhappily this did not work and the legend is printed for default.

Another way we tried is including following code: https://github.com/camptocamp/baselstadt_mapbs/blob/master/mapbs/templates/viewer.js#L585-L591 With this, the legend checkbox is deactivated, but the legend is printed anyway.

Do we do something wrong or is this a bug?

(from https://github.com/camptocamp/baselstadt_mapbs/issues/59)

eleu commented 8 years ago

fixed with https://github.com/camptocamp/cgxp/pull/1036