mirror of
https://github.com/enzet/map-machine.git
synced 2025-07-25 12:29:19 +02:00
Minor relations fix (issue #1).
This commit is contained in:
parent
a88c708878
commit
5b10e90e09
2 changed files with 1 additions and 1 deletions
|
@ -423,7 +423,7 @@ def construct_relations(drawing):
|
|||
for relation_id in relation_map:
|
||||
relation = relation_map[relation_id]
|
||||
tags = relation['tags']
|
||||
if tags['type'] == 'multipolygon':
|
||||
if 'type' in tags and tags['type'] == 'multipolygon':
|
||||
style = 'fill:#FFEEEE;stroke:#FF0000;stroke-width:0.5;'
|
||||
inners, outers = [], []
|
||||
for member in relation['members']:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue