Folium: add href to marker?

Created on 2 May 2017  路  2Comments  路  Source: python-visualization/folium

Is it possible to add href to the marker's popup property so when I click it I can go to another web page/file?

Most helpful comment

popup = folium.Popup('<a href=" [URL GOES HERE] "target="_blank"> [text for link goes here]' </a>')

you can see an example of this in a notebook I am just now working on putting together:
https://github.com/collinreinking/longitude_latitude_dot_plots_in_python_with_folium/

All 2 comments

popup = folium.Popup('<a href=" [URL GOES HERE] "target="_blank"> [text for link goes here]' </a>')

you can see an example of this in a notebook I am just now working on putting together:
https://github.com/collinreinking/longitude_latitude_dot_plots_in_python_with_folium/

Thanks @collinreinking that is a good answer. Closing this as resolved.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Demetrio92 picture Demetrio92  路  18Comments

FlorianHoevelmann picture FlorianHoevelmann  路  14Comments

achourasia picture achourasia  路  15Comments

achourasia picture achourasia  路  19Comments

Alcampopiano picture Alcampopiano  路  14Comments