@@ -498,6 +498,8 @@ class GeoJson(Layer):
498498 embedding is only supported if you provide a file link or URL.
499499 zoom_on_click: bool, default False
500500 Set to True to enable zooming in on a geometry when clicking on it.
501+ **kwargs
502+ Keyword arguments are passed to the geoJson object as extra options.
501503
502504 Examples
503505 --------
@@ -602,8 +604,11 @@ class GeoJson(Layer):
602604 style: {{ this.get_name() }}_styler,
603605 {%- endif %}
604606 {%- if this.marker %}
605- pointToLayer: {{ this.get_name() }}_pointToLayer
607+ pointToLayer: {{ this.get_name() }}_pointToLayer,
606608 {%- endif %}
609+ {%- for key, value in this.options.items() %}
610+ {{ key }}: {{ value|tojson }},
611+ {%- endfor %}
607612 });
608613
609614 function {{ this.get_name() }}_add (data) {
@@ -636,6 +641,7 @@ def __init__(
636641 popup : Optional ["GeoJsonPopup" ] = None ,
637642 zoom_on_click : bool = False ,
638643 marker : Union [Circle , CircleMarker , Marker , None ] = None ,
644+ ** kwargs : TypeJsonValue ,
639645 ):
640646 super ().__init__ (name = name , overlay = overlay , control = control , show = show )
641647 self ._name = "GeoJson"
@@ -653,6 +659,7 @@ def __init__(
653659 "Only Marker, Circle, and CircleMarker are supported as GeoJson marker types."
654660 )
655661 self .marker = marker
662+ self .options = parse_options (** kwargs )
656663
657664 self .data = self .process_data (data )
658665
0 commit comments