addPolygons fails in case the geometry columns has names #595
Labels
difficulty: intermediate
Enterprising community members could help
effort: low
< 1 day of work
priority: high
Must be fixed before next release
Adding polygons to a leaflet map derived from an
sf
object currently fails(i.e., the polygons are not shown) in case the geometry column of the object has names.
So, for example, this fails:
because
ms_simplify
adds names to the geometry column:If however we remove the names by:
everything works ok.
Due to this, a check for existence and removal of names in the geometry column should therefore be implemented, probably in
normalize-sf.R
(See also https://stackoverflow.com/questions/53227205/polygons-not-getting-plotted-in-leaflet-r-map-since-update and r-spatial/sf#880 (comment))
The text was updated successfully, but these errors were encountered: