Skip to content

Commit

Permalink
Update feature toolbar
Browse files Browse the repository at this point in the history
  • Loading branch information
rldhont committed Oct 15, 2024
1 parent 3ce0c08 commit 092b5e8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion assets/src/components/FeatureToolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,8 @@ export default class FeatureToolbar extends HTMLElement {
this._layouts = mainLizmap.config?.layouts;

mainLizmap.config?.printTemplates.map((template, index) => {
if (this._layerId === template?.atlas?.coverageLayer && template?.atlas?.enabled === '1') {
if (this._layerId === template?.atlas?.coverageLayer
&& (template?.atlas?.enabled === '1' || template?.atlas?.enabled === true)) {
// Lizmap >= 3.7
if (mainLizmap.config?.layouts?.list) {
if (mainLizmap.config?.layouts?.list?.[index]?.enabled) {
Expand Down

0 comments on commit 092b5e8

Please sign in to comment.