Skip to content

Commit

Permalink
Fix for failing pre-commit hooks in origin
Browse files Browse the repository at this point in the history
  • Loading branch information
hansthen committed Dec 16, 2023
1 parent ad03fd7 commit 85afba5
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions folium/plugins/realtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from jinja2 import Template

from folium.elements import JSCSSMixin
from folium.utilities import parse_options, JsCode
from folium.utilities import JsCode, parse_options


class Realtime(JSCSSMixin, MacroElement):
Expand Down Expand Up @@ -37,9 +37,11 @@ class Realtime(JSCSSMixin, MacroElement):
--------
>>> from folium.utilities import JsCode
>>> m = folium.Map()
>>> rt = Realtime("https://d2ad6b4ur7yvpq.cloudfront.net/naturalearth-3.3.0/ne_10m_geography_regions_elevation_points.geojson",
... getFeatureId=JsCode("function(f) { return f.properties.name; }"),
... interval=10000)
>>> rt = Realtime(
... "https://d2ad6b4ur7yvpq.cloudfront.net/naturalearth-3.3.0/ne_10m_geography_regions_elevation_points.geojson",
... getFeatureId=JsCode("function(f) { return f.properties.name; }"),
... interval=10000,
... )
>>> rt.add_to(m)
"""

Expand Down

0 comments on commit 85afba5

Please sign in to comment.