diff --git a/mapcss_converter.py b/mapcss_converter.py index ee90039..516466e 100755 --- a/mapcss_converter.py +++ b/mapcss_converter.py @@ -216,7 +216,7 @@ def style_statement_as_js(self, subpart): value_tags.add(val) return " s_%s[%s] = MapCSS.e_localize(tags, %s);" % (subpart, k, val) else: - if self.key in ('icon-image', 'fill-image'): + if not isinstance(self.value, ast.Eval) and self.key in ('icon-image', 'fill-image'): images.add(self.value) return " s_%s[%s] = %s;" % (subpart, k, val)