Skip to content

Commit ac0744b

Browse files
authored
Update GeoJson doc-string about __geo_interface__ (#1425)
* Update GeoJson doc-string * Remove trailing whitespaces
1 parent 1f27fc4 commit ac0744b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

folium/features.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,9 @@ class GeoJson(Layer):
324324
* If dict, then data will be converted to JSON and embedded
325325
in the JavaScript.
326326
* If str, then data will be passed to the JavaScript as-is.
327+
* If `__geo_interface__` is available, the `__geo_interface__`
328+
dictionary will be serialized to JSON and
329+
reprojected if `to_crs` is available.
327330
style_function: function, default None
328331
Function mapping a GeoJson Feature to a style dict.
329332
highlight_function: function, default None

0 commit comments

Comments
 (0)