Skip to content

Commit 7fbf41e

Browse files
authored
Merge pull request #1031 from jtbaker/GeoJsonDocsFix
GeoJsonTooltip docstring fix
2 parents 9b68b00 + a1464cd commit 7fbf41e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

folium/features.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -645,15 +645,15 @@ class GeoJsonTooltip(Tooltip):
645645
Examples
646646
--------
647647
# Provide fields and aliases, with Style.
648-
>>> Tooltip(
648+
>>> GeoJsonTooltip(
649649
>>> fields=['CNTY_NM', 'census-pop-2015', 'census-md-income-2015'],
650650
>>> aliases=['County', '2015 Census Population', '2015 Median Income'],
651651
>>> localize=True,
652652
>>> style=('background-color: grey; color: white; font-family:'
653653
>>> 'courier new; font-size: 24px; padding: 10px;')
654654
>>> )
655655
# Provide fields, with labels off and fixed tooltip positions.
656-
>>> Tooltip(fields=('CNTY_NM',), labels=False, sticky=False)
656+
>>> GeoJsonTooltip(fields=('CNTY_NM',), labels=False, sticky=False)
657657
"""
658658
_template = Template(u"""
659659
{% macro script(this, kwargs) %}

0 commit comments

Comments
 (0)