Giter VIP home page Giter VIP logo

Comments (12)

giswqs avatar giswqs commented on June 11, 2024 1

v0.31.4 has been released. Try pip install -U leafmap. The conda-forge package might be available in a few hours.

from leafmap.

giswqs avatar giswqs commented on June 11, 2024 1

The recent lonboard updates might caused this. I will look into it.

from leafmap.

giswqs avatar giswqs commented on June 11, 2024 1

I already identified the root cause of the issue. Will be fixing it later today.

from leafmap.

giswqs avatar giswqs commented on June 11, 2024

I believe the issue has been resolved in #693. Will be releasing a new version shortly.

from leafmap.

giswqs avatar giswqs commented on June 11, 2024

It is an upstream issue. See developmentseed/lonboard#365

from leafmap.

ncclementi avatar ncclementi commented on June 11, 2024

I don't get the error but it doesn't render anything. I saw the upstream issue, but they are saying it's because it's using a private method and they close it, so not sure what's going on.

I'll do a clean install and check again.

from leafmap.

ncclementi avatar ncclementi commented on June 11, 2024

This is what I get when I run the same code now.

Screenshot 2024-03-04 at 10 55 15 AM

from leafmap.

ncclementi avatar ncclementi commented on June 11, 2024

For the record

m = leafmap.Map()
m

renders the world map, but as soon as I try to do m.add_vector(...) the rendering turns out empty

from leafmap.

ncclementi avatar ncclementi commented on June 11, 2024

In fact, if I try to run the similar examples from your notebooks here https://leafmap.org/notebooks/83_vector_viz/ in colab, after installing lonboard.

If you add the rendering of m in any of the cells that add something like :

streets = gpd.read_file("nyc_streets.shp")
m.add_gdf(streets, zoom_to_layer=True, pickable=True, get_width=5)
m

or

m.add_vector("nyc_subway_stations.shp", get_radius=10, get_fill_color=[255, 0, 0, 180])
m

You will see that it doesn't render.

from leafmap.

ncclementi avatar ncclementi commented on June 11, 2024

Just for the record: I tried downgrading to lonboard==0.5.0 but didn't work either :/

from leafmap.

ncclementi avatar ncclementi commented on June 11, 2024

Thank you @giswqs 🙌

from leafmap.

giswqs avatar giswqs commented on June 11, 2024

The bug has been fixed in #700. Please update the package to v0.31.5. Feel free to reopen if the issue persists.

from leafmap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.