Skip to content

Update GeoJSON docs after the MultiPoint tooltip fix - #2282

Open
nina-mir wants to merge 1 commit into
python-visualization:mainfrom
nina-mir:docs-multipoint-limitation
Open

Update GeoJSON docs after the MultiPoint tooltip fix#2282
nina-mir wants to merge 1 commit into
python-visualization:mainfrom
nina-mir:docs-multipoint-limitation

Conversation

@nina-mir

@nina-mir nina-mir commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #2263.

Both pages still describe GeoJsonTooltip and GeoJsonPopup as having limitations with MultiPoint and other multi-geometries, and point users at on_each_feature as the workaround. That's no longer true, so the current guidance sends people to raw
JavaScript for something the standard classes now handle.

Verified with a map containing all eight geometry types: tooltips render on hover and popups on click for MultiPoint and GeometryCollection, including a GeometryCollection containing a MultiPoint.

Related, not changed here: warn_for_geometry_collections (features.py:1195) still advises reworking GeometryCollection features to MultiPolygon "for full functionality." Both tooltips and popups now work on those geometries. I left it alone since removing it means updating test_geojson_tooltip, which asserts the warning fires.
Happy to do that here or separately if you'd like it gone.

Both pages describe GeoJsonTooltip and GeoJsonPopup as having limitations
with MultiPoint and other multi-geometries, and point users at
on_each_feature as the workaround. python-visualization#2263 fixed that, so the guidance now
sends people to raw JavaScript for something the standard classes handle.

Rewords the on_each_feature page around what it is actually for, and
replaces the closing note in the popup and tooltip page with a plain
pointer to the advanced guide.
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