Uncomment the following line to install leafmap if needed.
# !pip install leafmap
import leafmap
Add vector data to the map and use the GUI to open attribute table.
m = leafmap.Map()
url = "https://raw.githubusercontent.com/opengeos/leafmap/master/examples/data/countries.geojson"
m.add_geojson(
url,
layer_name="Countries",
fill_colors=["red", "yellow", "green", "orange"],
info_mode=False,
)
in_geojson = "https://raw.githubusercontent.com/opengeos/leafmap/master/examples/data/cable_geo.geojson"
m.add_geojson(in_geojson, layer_name="Cable lines", info_mode=False)
m