opengeos / leafmap

A Python package for interactive mapping and geospatial analysis with minimal coding in a Jupyter environment
https://leafmap.org
MIT License
3.22k stars 386 forks source link

Add marker cluster from pd.DataFrame or csv #138

Closed giswqs closed 2 years ago

giswqs commented 2 years ago

Reference: https://python-visualization.github.io/folium/plugins.html#folium.plugins.MarkerCluster

giswqs commented 2 years ago

This feature has been implemented.

ipyleaflet

import leafmap
m = leafmap.Map()
data = 'https://raw.githubusercontent.com/giswqs/leafmap/master/examples/data/us_cities.csv'
m.add_points_from_xy(data)
m

image

folium

import leafmap.foliumap as leafmap
m = leafmap.Map()
data = 'https://raw.githubusercontent.com/giswqs/leafmap/master/examples/data/us_cities.csv'
m.add_points_from_xy(data)
m

image