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 points from xy #812

Closed
giswqs opened this issue Dec 13, 2021 · 4 comments
Closed

Add points from xy #812

giswqs opened this issue Dec 13, 2021 · 4 comments
Assignees
Labels
Feature Request New feature or request

Comments

@giswqs
Copy link
Member

giswqs commented Dec 13, 2021

Create a marker cluster from a csv or pandas dataframe containing xy coordinates.

@giswqs giswqs added the Feature Request New feature or request label Dec 13, 2021
giswqs added a commit that referenced this issue Dec 13, 2021
@giswqs giswqs self-assigned this Dec 13, 2021
@giswqs
Copy link
Member Author

giswqs commented Dec 13, 2021

This feature has been implemented.

m = geemap.Map()
data = 'https://raw.githubusercontent.com/giswqs/leafmap/master/examples/data/us_cities.csv'
m.add_points_from_xy(data, x="longitude", y="latitude")
m

@giswqs giswqs closed this as completed Dec 13, 2021
giswqs added a commit that referenced this issue Dec 13, 2021
@Niko-La
Copy link

Niko-La commented Jul 26, 2022

@giswqs is it possible to display as points instead of marker

also can we load up the lat,long using excel file or only possible using csv

@giswqs
Copy link
Member Author

giswqs commented Jul 26, 2022

You can use circle markers. Read the Excel file as a Pandas DataFrame, then you can use Map.add_circle_markers_from_xy()

image

@Phylostro
Copy link

Hi what if i want to color the marker based on the another value not region but it still clustering by the region

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

No branches or pull requests

3 participants