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

GeoJSON features are not displaying on the map #274

Closed philvarner closed 2 years ago

philvarner commented 2 years ago

Environment Information

requirements.txt from pip freeze also attached.

Description

I'm trying to add some geojson polygons to a map, but they don't appear. I tried the geojson example and that doesn't work for me either.

What I Did

I ran the geojson example and got the following output (see that the cable lines are not displayed). I also tried this with a dict representing a polygon and it also did not display.

image

requirements.txt

giswqs commented 2 years ago

It works fine on my Linux machine. Try creating a fresh conda env to install leafmap.

    conda create -n geo python=3.9
    conda activate geo
    conda install mamba -c conda-forge
    mamba install leafmap geopandas -c conda-forge
giswqs commented 2 years ago

You can also try out leafmap with Google Colab.

https://colab.research.google.com/drive/1gEEZR_6amV9pDbXXa7QlU9ajn-3yXIQ-?usp=sharing

philvarner commented 2 years ago

The conda directions worked. I wonder what the difference between that and my venv with pip install is? I'll look into this further.