Giter VIP home page Giter VIP logo

Comments (3)

ryanbaumann avatar ryanbaumann commented on July 22, 2024

Let's push for this for the end of May target release, 0.8.0

from mapboxgl-jupyter.

ryanbaumann avatar ryanbaumann commented on July 22, 2024

We missed this deadline for end of May, but, in better news, we now have the setFeatureState capability in GL JS v0.46. This will allow us to create hover/highlight styles very efficiently, like this https://bl.ocks.org/ryanbaumann/733ba99c5ca1d9d15259081b395e4b00/1bc1318c5421deb73d77ece247b23eafd685ce86

Next Steps

  • Upgrade to GL JS v0.46, launching out of beta the week of 6/18/18
  • Add an integer index id creation step to the df_to_geojson function
  • Add a feature_state expression to set the hover state similar to https://gist.github.com/ryanbaumann/733ba99c5ca1d9d15259081b395e4b00/1bc1318c5421deb73d77ece247b23eafd685ce86#file-index-html-L106 for all visualization types.
    • The hover state should default to setting the outline-color of a feature to a new value to indicate hover/highlight
    • The user should be able to set the opacity of a feature on hover/highlight as well. If the global opacity of the layer is 1, then the global opacity should transition to a value <1 when the hover/highlight is engaged.

After completing the hover/highlight functionality ☝️ then we can add the ability to select multiple data features, and finally return the results of selecting those features to use in other visualizations or analyses.

from mapboxgl-jupyter.

ryanbaumann avatar ryanbaumann commented on July 22, 2024

GL JS v0.48 will include a method to auto-generate feature-index values to use with feature states. Let's use that here. https://github.com/mapbox/mapbox-gl-js/releases/tag/untagged-5c84f285d746975d5c2b

from mapboxgl-jupyter.

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.