This commit is contained in:
zakhy 2025-05-16 12:07:16 +07:00
parent b72f7f51d7
commit 67e7ab54b2

View File

@ -16,7 +16,7 @@ def get_layers(request):
static_layers_qs = StaticLayer.objects.all().order_by("-order")
res = {"static_layers": [], "dynamic_layers": []}
for static_layer in static_layers_qs:
if static_layer.file is None or static_layer.url is None:
if (static_layer.file is None and static_layer.layer_type == "Vector") or (static_layer.url is None and static_layer.layer_type == "Tile"):
continue
if static_layer.layer_type == "Vector":