# Type alias OptionsLegendType

OptionsLegendType: { label: { [x: string]: boolean }; params: { [x: string]: { [x: string]: string } }; showGroupsTitle?: boolean; useBbox?: boolean }

#### Type declaration

- ##### label: { [x: string]: boolean }

  The key is the server type (`mapserver`, `qgis`, ...), if the value is `false` the name of the layer will be not displayed. This is used to avoid duplicated title, as text and in the legend image.

  - ##### [x: string]: boolean

- ##### params: { [x: string]: { [x: string]: string } }

  The key is the server type (`mapserver`, `qgis`, ...) or `image` for an URL from a metadata. The value is some additional parameters set in the query string.

  - ##### [x: string]: { [x: string]: string }

    - ##### [x: string]: string

- ##### `Optional` showGroupsTitle?: boolean

  Display or not groups title in the legend. default is true. Switching to false is useful to obtains a "flat" legend.

- ##### `Optional` useBbox?: boolean

  Use or not the bbox. Default to true. For QGIS server only.

- Defined in config.ts:893

Generated using TypeDoc