Skip to content

Unable to assign string directly to popup using master branch #259

@jelmelk

Description

@jelmelk

Doing some small testing and I did the follwing:

some_marker = folium.Marker(location=[45.5215, -122.6261], popup='test')

I would get this error: AttributeError: 'str' object has no attribute 'get_name'. If I change that to popup=folium.Popup('test') it works fine. Is that intended?

Main reason I'm asking is because it seems somewhat tedious having to call that to assign a string to the popup.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementFeature request or idea about how to make folium better

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions