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 markers with custom shape and color #1595

Merged
merged 1 commit into from
Jul 2, 2023
Merged

Add markers with custom shape and color #1595

merged 1 commit into from
Jul 2, 2023

Conversation

giswqs
Copy link
Member

@giswqs giswqs commented Jul 2, 2023

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

@giswqs giswqs linked an issue Jul 2, 2023 that may be closed by this pull request
@giswqs
Copy link
Member Author

giswqs commented Jul 2, 2023

import geemap.foliumap as geemap
m = geemap.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 merged commit 213b040 into master Jul 2, 2023
@giswqs giswqs deleted the markers branch July 2, 2023 02:26
@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:33 Inactive
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

Successfully merging this pull request may close these issues.

Markers with different shapes
1 participant