From 4c968327dd5cab6a06978d7603a7f47d087bc8f4 Mon Sep 17 00:00:00 2001 From: Alexander Shalamov Date: Wed, 20 Nov 2019 15:04:39 +0200 Subject: [PATCH] fixup add image to format expr --- src/style-spec/expression/types/formatted.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/style-spec/expression/types/formatted.js b/src/style-spec/expression/types/formatted.js index c89e1083237..224594f5360 100644 --- a/src/style-spec/expression/types/formatted.js +++ b/src/style-spec/expression/types/formatted.js @@ -62,6 +62,10 @@ export default class Formatted { serialize(): Array { const serialized = ["format"]; for (const section of this.sections) { + if (section.image) { + serialized.push(["image", section.image.name]); + continue; + } serialized.push(section.text); const options = {}; if (section.fontStack) {