fix @-position url converter to properly parse the level
This commit is contained in:
parent
67be6f1131
commit
f8f8f9fdc7
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue