From 081eb05f73eae96590b31351b499552aaf8c1e62 Mon Sep 17 00:00:00 2001 From: Hans Then Date: Sat, 4 Jan 2025 16:53:44 +0100 Subject: [PATCH] Add className option Closes #2055 --- folium/vector_layers.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/folium/vector_layers.py b/folium/vector_layers.py index 850c88949..066efd6ac 100644 --- a/folium/vector_layers.py +++ b/folium/vector_layers.py @@ -103,6 +103,9 @@ def path_options( if kwargs.get("tags"): extra_options["tags"] = kwargs.pop("tags") + if kwargs.get("className"): + extra_options["className"] = kwargs.pop("className") + default = { "stroke": kwargs.pop("stroke", True), "color": color,