Skip to content

Commit babbee5

Browse files
authored
fix for issue #589 GeoJSON style_callback (#600)
1 parent 2e36146 commit babbee5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ipyleaflet/leaflet.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,9 @@ def _apply_style(self, feature, style_callback):
551551

552552
properties = feature['properties']
553553
if 'style' in properties:
554-
properties['style'].update(style_callback(feature))
554+
style = properties['style'].copy()
555+
style.update(style_callback(feature))
556+
properties['style'] = style
555557
else:
556558
properties['style'] = style_callback(feature)
557559

0 commit comments

Comments
 (0)