sensible default initial bounds

This commit is contained in:
Laura Klünder 2018-12-09 00:11:01 +01:00
parent 47c661095c
commit 4ec2a7bb8b

View file

@ -1,4 +1,5 @@
import json
from itertools import chain
from typing import Optional
import qrcode
@ -115,7 +116,7 @@ def map_index(request, mode=None, slug=None, slug2=None, details=None, options=N
initial_bounds = settings.INITIAL_BOUNDS
if not initial_bounds:
initial_bounds = (0, 0, 10, 10)
initial_bounds = tuple(chain(*Source.max_bounds()))
ctx = {
'bounds': json.dumps(Source.max_bounds(), separators=(',', ':')),