Fix
This commit is contained in:
parent
b72f7f51d7
commit
67e7ab54b2
@ -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":
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user