diff --git a/map_machine/scheme.py b/map_machine/scheme.py index 84f81e6..1632841 100644 --- a/map_machine/scheme.py +++ b/map_machine/scheme.py @@ -407,9 +407,7 @@ class Scheme: extra_icons: list[Icon] = [] priority: int = 0 - index: int = 0 - - for matcher in self.node_matchers: + for index, matcher in enumerate(self.node_matchers): if not matcher.replace_shapes and main_icon: continue if not matcher.is_matched(tags, configuration): @@ -449,8 +447,6 @@ class Scheme: if matcher.set_opacity and main_icon: main_icon.opacity = matcher.set_opacity - index += 1 - color: Optional[Color] = None if "material" in tags: