From 0e1d6a686cdbdae46363164eeee4fc8b68dbacc4 Mon Sep 17 00:00:00 2001 From: Gerald Kogler Date: Mon, 6 May 2024 17:23:44 +0200 Subject: [PATCH] draw labels on top and remove Z parameter, fix #92 --- bridgestyle/mapboxgl/fromgeostyler.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bridgestyle/mapboxgl/fromgeostyler.py b/bridgestyle/mapboxgl/fromgeostyler.py index d567237..7eacf63 100644 --- a/bridgestyle/mapboxgl/fromgeostyler.py +++ b/bridgestyle/mapboxgl/fromgeostyler.py @@ -87,6 +87,8 @@ def convert(geostyler, options=None): _warnings = [] layers = processLayer(geostyler) layers.sort(key=lambda l: l["Z"]) + [l.pop('Z', None) for l in layers] + layers.sort(key=lambda l: l["type"]=="symbol") obj = { "version": 8, "glyphs": "mapbox://fonts/mapbox/{fontstack}/{range}.pbf",