fix @-position url converter to properly parse the level

This commit is contained in:
Gwendolyn 2023-12-03 21:08:14 +01:00
parent 67be6f1131
commit f8f8f9fdc7

View file

@ -31,10 +31,10 @@ class AtPositionConverter:
if not value:
return None
value = AtPos(*value.split(','))
return AtPos(value.level, float(value.x), float(value.y), float(value.zoom))
return AtPos(value.level[1:], float(value.x), float(value.y), float(value.zoom))
def to_url(self, value):
return ','.join(str(s) for s in value)
return '@' + ','.join(str(s) for s in value)
class ConditionalConverter: