Fix live layers

This commit is contained in:
phil 2024-04-28 20:24:26 +02:00
parent ccf6710225
commit 6565e647fa

View file

@ -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):