Giter VIP home page Giter VIP logo

Comments (7)

ryanbaumann avatar ryanbaumann commented on July 22, 2024 1

@rvlander excellent. I'll add this as a feature for the next release.

from mapboxgl-jupyter.

ryanbaumann avatar ryanbaumann commented on July 22, 2024 1

Working on this in this PR - #48

from mapboxgl-jupyter.

ryanbaumann avatar ryanbaumann commented on July 22, 2024

@rvlander Sounds like you want to be able to display data with just point geometries, no property values, while selecting the default color and size?

I think we should do this by exposing the default Mapbox GL Style Spec property for a data-driven style via a Python option in the mapboxgl library. This would allow you to specify a default circle radius, circle color, or any other style property in the case where there is no property value to parse for a data-driven style.

from mapboxgl-jupyter.

rvlander avatar rvlander commented on July 22, 2024

@ryanbaumann, yes it is what would be need.

from mapboxgl-jupyter.

ryanbaumann avatar ryanbaumann commented on July 22, 2024

Adding that we should support a default color profile for all viz types if no color style is passed by the user.

from mapboxgl-jupyter.

ryanbaumann avatar ryanbaumann commented on July 22, 2024

This should be possible now using the color_default and color_function_type options:

mapboxgl.viz.CircleViz(data, color_function_type="match", color_default="grey")

Need to add:

  • Add radius style option to CircleViz
  • If colorStops=None generate an empty expression

from mapboxgl-jupyter.

ryanbaumann avatar ryanbaumann commented on July 22, 2024

Closed in #78

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.