88 circle markers
Uncomment the following line to install geemap if needed.
In [1]:
Copied!
# !pip install geemap
# !pip install geemap
In [2]:
Copied!
import geemap.foliumap as geemap
import geemap.foliumap as geemap
If you are using a recently implemented geemap feature that has not yet been released to PyPI or conda-forge, you can uncomment the following line to install the development version from GitHub.
In [3]:
Copied!
# geemap.update_package()
# geemap.update_package()
For a list of options for circle markers, see https://ipyleaflet.readthedocs.io/en/latest/api_reference/circle_marker.html
In [4]:
Copied!
m = geemap.Map()
data = (
"https://raw.githubusercontent.com/giswqs/geemap/master/examples/data/us_cities.csv"
)
m.add_circle_markers_from_xy(
data, x="longitude", y="latitude", radius=10, color="blue", fill_color="black"
)
m
m = geemap.Map()
data = (
"https://raw.githubusercontent.com/giswqs/geemap/master/examples/data/us_cities.csv"
)
m.add_circle_markers_from_xy(
data, x="longitude", y="latitude", radius=10, color="blue", fill_color="black"
)
m
--------------------------------------------------------------------------- NameError Traceback (most recent call last) Input In [4], in <cell line: 5>() 1 m = geemap.Map() 2 data = ( 3 "https://raw.githubusercontent.com/giswqs/geemap/master/examples/data/us_cities.csv" 4 ) ----> 5 m.add_circle_markers_from_xy( 6 data, x="longitude", y="latitude", radius=10, color="blue", fill_color="black" 7 ) 8 m File ~/.local/lib/python3.9/site-packages/geemap/foliumap.py:1475, in Map.add_circle_markers_from_xy(self, data, x, y, radius, popup, tooltip, min_width, max_width, **kwargs) 1467 html = "" 1468 for p in popup: 1469 html = ( 1470 html 1471 + "<b>" 1472 + p 1473 + "</b>" 1474 + ": " -> 1475 + str(eval(str("row." + p))) 1476 + "<br>" 1477 ) 1478 popup_html = folium.Popup(html, min_width=min_width, max_width=max_width) 1480 if tooltip is not None: File <string>:1, in <module> NameError: name 'row' is not defined
Last update:
2022-03-14