fixes issue with db lock when writing mbtiles

This commit is contained in:
saber 2019-05-27 12:55:04 +01:00 committed by Martin Dobias
parent b5459794f8
commit 169e246fdc

View File

@ -307,6 +307,7 @@ class MBTilesWriter:
conn.close()
def _init_zoom_layer(self, zoom):
self._zoom_ds = None
west_edge, south_edge, east_edge, north_edge = self.extent
first_tile = Tile(*deg2num(north_edge, west_edge, zoom), zoom)
last_tile = Tile(*deg2num(south_edge, east_edge, zoom), zoom)
@ -409,7 +410,7 @@ LEAFLET_TEMPLATE = '''
right: 10px;
top: 10px;
bottom: 10px;
width: 600px;
width: 600px;
height: 400px;
}}
</style>