Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

Commit

Permalink
MINOR: Fixes support of definitions for min and maxZoomLevel attribut…
Browse files Browse the repository at this point in the history
…es in Theme

Signed-off-by: Frauke Fritz <frauke.fritz@here.com>
  • Loading branch information
Frauke Fritz committed Dec 10, 2021
1 parent b3ea60d commit 11ce0d5
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions @here/harp-datasource-protocol/lib/StyleSetEvaluator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -563,15 +563,17 @@ export class StyleSetEvaluator {
});

if (isJsonExpr(style.minZoomLevel)) {
style._minZoomLevelExpr = Expr.fromJSON(style.minZoomLevel).intern(
this.m_exprPool
);
style._minZoomLevelExpr = Expr.fromJSON(
style.minZoomLevel,
this.m_definitions
).intern(this.m_exprPool);
}

if (isJsonExpr(style.maxZoomLevel)) {
style._maxZoomLevelExpr = Expr.fromJSON(style.maxZoomLevel).intern(
this.m_exprPool
);
style._maxZoomLevelExpr = Expr.fromJSON(
style.maxZoomLevel,
this.m_definitions
).intern(this.m_exprPool);
}
} catch (err) {
logger.log(
Expand Down

0 comments on commit 11ce0d5

Please sign in to comment.