From 2878aaabba8fb52e41cd13122263e118b9e68b32 Mon Sep 17 00:00:00 2001 From: Baljak Date: Thu, 2 Feb 2023 16:50:00 +0100 Subject: [PATCH] Fix the creation of circlemarker using draw control --- pyqtlet2/leaflet/layer/featuregroup.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pyqtlet2/leaflet/layer/featuregroup.py b/pyqtlet2/leaflet/layer/featuregroup.py index 6f016a1..0041cc2 100644 --- a/pyqtlet2/leaflet/layer/featuregroup.py +++ b/pyqtlet2/leaflet/layer/featuregroup.py @@ -31,4 +31,7 @@ def createAndAddDrawnLayer(self, drawnLayer, options=None): coords = drawnLayer['layer']['_latlng'] radius = drawnLayer['layer']['options']['radius'] self.addLayer(vector.Circle([coords['lat'], coords['lng']], radius)) + elif layerType == 'circlemarker': + coords = drawnLayer['layer']['_latlng'] + self.addLayer(vector.CircleMarker([coords['lat'], coords['lng']]))