diff --git a/mapmaker/sources/svg/__init__.py b/mapmaker/sources/svg/__init__.py index 4e43ebf8..d7b1ad0e 100644 --- a/mapmaker/sources/svg/__init__.py +++ b/mapmaker/sources/svg/__init__.py @@ -405,7 +405,7 @@ def __process_element(self, wrapped_element: ElementWrapper, transform, parent_p properties = parent_properties.copy() for name in NON_INHERITED_PROPERTIES: properties.pop(name, None) - if 'id' in element.attrib: + if 'id' in element.attrib and element.tag != SVG_TAG('g'): properties['id'] = element.attrib.get('id') properties.update(properties_from_markup) shape_id = properties.get('id') ## versus element.attrib.get('id')