Skip to content

docs: add DivIcon text label example to icons guide#2227

Open
Balantah wants to merge 1 commit into
python-visualization:mainfrom
Balantah:docs/divicon-text
Open

docs: add DivIcon text label example to icons guide#2227
Balantah wants to merge 1 commit into
python-visualization:mainfrom
Balantah:docs/divicon-text

Conversation

@Balantah
Copy link
Copy Markdown

Description

Adds a new section "Text labels with DivIcon" to the icons user guide.

This addresses #2092, which noted that there is no documentation on how
to add visible text elements to a Folium map.

The new section explains how to use folium.DivIcon to place text labels
directly on the map, with a working code example showing two labeled markers.

Changes

  • Added "Text labels with DivIcon" section to docs/user_guide/ui_elements/icons.md
  • Includes explanation and a code example with two city labels

Testing

The example code was verified to run correctly with the current version of Folium.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant