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

Add folium add_markers_from_xy method #486

Merged
merged 1 commit into from
Jul 2, 2023
Merged

Add folium add_markers_from_xy method #486

merged 1 commit into from
Jul 2, 2023

Conversation

giswqs
Copy link
Member

@giswqs giswqs commented Jul 2, 2023

This PR adds the folium Map.add_markers_from_xy() method for supporting custom marker shape and color.

import leafmap.foliumap as leafmap
m = leafmap.Map()
csv = 'https://github.com/opengeos/data/raw/main/world/world_cities.csv'
m.add_markers_from_xy(csv, icon_shape='circle-dot', border_width=3, border_color='#0000ff')
m

image

m.add_markers_from_xy(csv, icon_shape='rectangle-dot', border_width=3, border_color='#ff0000')

image

@giswqs giswqs added the Feature Request New feature or request label Jul 2, 2023
@github-actions
Copy link

github-actions bot commented Jul 2, 2023

@github-actions github-actions bot temporarily deployed to pull request July 2, 2023 02:48 Inactive
@giswqs giswqs merged commit e64fa61 into master Jul 2, 2023
12 checks passed
@giswqs giswqs deleted the markers branch July 2, 2023 03:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant