Coder Social home page Coder Social logo

Comments (7)

ryanbaumann avatar ryanbaumann commented on July 25, 2024 1

@akacarlyann that's amazing - thank you for offering to help!

I have.....a lot of tilesets you can test with. Here's a public tileset of the healthcare data (same as other example notebooks in this repo) that you can use with any Mapbox access token -

Tileset_id: rsbaumann.2pgmr66a

layername: healthcare-points-2yaw54

from mapboxgl-jupyter.

ryanbaumann avatar ryanbaumann commented on July 25, 2024 1

This is awesome, 🙏 @akacarlyann! Unlocks the ability to run a bigger data analysis, cut vector tiles from the analysis, and visualize them right in Jupyter. Yes, we'll need to integrate a tool to cut vector tiles, ideally using tippecanoe for maximum performance and a lightweight tile server like rio-glui or the mbview toolkit.

looks like cluster maps don't support using vector source data at this time

Correct - you can cluster data to put into a vector tile source using Tippecanoe, but can not create a cluster from a vector tile source on the fly without some custom code. Agreed, skip support for vector tile sources on a cluster.

from mapboxgl-jupyter.

ryanbaumann avatar ryanbaumann commented on July 25, 2024

Adding this to the 0.7.0 release - it's super powerful to connect any vector tile source to any visualization type with essentially infinite data volume. The only exception we'll need to make here is for cluster maps, which are not compatible with Mapbox Vector Tile sources.

To Do

  • Add a new parameter to the map, dataLayerName. Accept a string value here that maps to the vector tile source's layer name. This value should default to None, which indicates that a geojson source is used. The dataLayerName is only required for a url passed to the map.viz data parameter that points to a vector tile source.
  • If the dataLayerName parameter is not None, change the map.addSource() call in each template to point to the vector type and url argument. Also, change the map.addLayer() call in each template to use the source-layername of the vector tile. If the dataLayerName is None, then use the existing template.
  • Create tests
  • Create docs
  • Create example notebook using vector tile sources for each visualization type (all except Cluster)

from mapboxgl-jupyter.

akacarlyann avatar akacarlyann commented on July 25, 2024

@ryanbaumann I'm willing to work on this one (it also helps with the multi-layer maps) but often struggle to find good test data. Can you possibly create and share a vector layer of the healthcare example data so I can work the data join with example data we already have in this project?

from mapboxgl-jupyter.

akacarlyann avatar akacarlyann commented on July 25, 2024

@ryanbaumann Thanks! What's the name of the layer for that vector dataset?

from mapboxgl-jupyter.

ryanbaumann avatar ryanbaumann commented on July 25, 2024

@akacarlyann updated the comment above with the source-layer name of the tileset.

from mapboxgl-jupyter.

akacarlyann avatar akacarlyann commented on July 25, 2024

@ryanbaumann I've got CircleViz and GraduatedCircleViz working with vector tiles, so thanks for that! Per mapbox/mapbox-gl-js#5856, looks like cluster maps don't support using vector source data at this time. Looks like you have that in the issue description. So that just leaves heatmaps!

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.