Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Popup text for exported features #53

Open
jni opened this issue Jul 4, 2018 · 0 comments
Open

Popup text for exported features #53

jni opened this issue Jul 4, 2018 · 0 comments

Comments

@jni
Copy link

jni commented Jul 4, 2018

Hi!

Is there any way to annotate matplotlib points/line segments in such a way that they become marker popups in leaflet? To clarify, I'd like reproduce the following effect:

import os
import folium
mapit = folium.Map()
PER = (-31.940, 115.967)
MEL = (-37.673, 144.843)
folium.CircleMarker(location=MEL, color='#ff0000',
                        fill_color='#ff0000', popup='Melbourne airport',
                        radius=4).add_to(mapit)
folium.CircleMarker(location=PER, color='#ff0000',
                        fill_color='#ff0000', popup='Perth airport',
                        radius=4).add_to(mapit)
folium.PolyLine([PER, MEL], color='#ffff00', popup='MEL-PER').add_to(mapit)
mapit.save(os.path.expanduser('~/Desktop/perth.html'))

Maybe this is impossible but I thought I'd ask. =) Thanks!

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

No branches or pull requests

1 participant