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)
|
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(
|
return MaplibreStyle(
|
||||||
paint=(await self.redis.get(self.get_mapbox_paint_channel(store_name))).decode(),
|
paint=loads(paint_raw.decode()),
|
||||||
layout=(await self.redis.get(self.get_mapbox_layout_channel(store_name))).decode(),
|
layout=loads(layout_raw.decode()),
|
||||||
)
|
)
|
||||||
|
|
||||||
async def get_layer_as_json(self, store_name):
|
async def get_layer_as_json(self, store_name):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue