Fix live layers
This commit is contained in:
parent
ccf6710225
commit
6565e647fa
1 changed files with 4 additions and 2 deletions
|
@ -286,9 +286,11 @@ class Store:
|
|||
"""
|
||||
Get the http headers (mapbox style) from the store name (layer_def)
|
||||
"""
|
||||
paint_raw = await self.redis.get(self.get_mapbox_paint_channel(store_name))
|
||||
layout_raw = await self.redis.get(self.get_mapbox_layout_channel(store_name))
|
||||
return MaplibreStyle(
|
||||
paint=(await self.redis.get(self.get_mapbox_paint_channel(store_name))).decode(),
|
||||
layout=(await self.redis.get(self.get_mapbox_layout_channel(store_name))).decode(),
|
||||
paint=loads(paint_raw.decode()),
|
||||
layout=loads(layout_raw.decode()),
|
||||
)
|
||||
|
||||
async def get_layer_as_json(self, store_name):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue