camptocamp / cgxp

22 stars 22 forks source link

Disable legend with print v2 #1033

Open rbovard opened 8 years ago

rbovard commented 8 years ago

When removing the legend checkbox with (see #1007 for history):

    additionalAttributes: [{
        name: "title",
        label: "Title",
        type: "String"
    }, {
        name: "comment",
        label: "Comment",
        type: "String",
        useTextArea: true
    }]

The legend is still requested to the server, because the param legends is sent to create.json

sbrunner commented 8 years ago

Hello,

For this you should add includeLegend: false in the options of the plugin configuration :-)

rbovard commented 8 years ago

Thanks @sbrunner!

BTW you should add it to the docs ;)