Comments (7)
@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.
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.
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 toNone
, which indicates that a geojson source is used. ThedataLayerName
is only required for aurl
passed to the map.vizdata
parameter that points to a vector tile source. - If the
dataLayerName
parameter is notNone
, change the map.addSource() call in each template to point to thevector
type andurl
argument. Also, change the map.addLayer() call in each template to use thesource-layername
of the vector tile. If thedataLayerName
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.
@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.
@ryanbaumann Thanks! What's the name of the layer for that vector dataset?
from mapboxgl-jupyter.
@akacarlyann updated the comment above with the source-layer name of the tileset.
from mapboxgl-jupyter.
@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)
- Mapbox Jupyter doesn't render ChoroplethViz HOT 7
- New feature to edit colour legends title
- TemplateNotFound in conda environment HOT 7
- Coverage/Coveralls hangs indefinitely HOT 1
- Examples don't work as shown, due to Jupyter "Blocking request with no referer" HOT 5
- Support MapboxGL 'step' expression for color and height function types HOT 5
- Is there a way to hide the "token = os.getenv('MAPBOX_ACCESS_TOKEN')" HOT 5
- Will Mapbox add support for JupyterLab? HOT 6
- Please add interactive callback events to this widget.
- Adding search for map HOT 1
- Heat Map in time HOT 3
- Subplot support HOT 4
- How to hide the legends for GraduatedCircleViz? HOT 1
- Example displays base map but not points HOT 2
- any chance multiple viz can be combined in a single view? HOT 1
- viz.create_html() rounds lat/lng to 4 decimal places which drops accuracy to 11m
- How to hide null/Nan values on a CircleViz ? HOT 3
- Uncaught Error: An API access token is required to use Mapbox GL.
- Mapboxgl cannot be imported on Windows 10 after conda install
- mapbox doesn't render points on jupyter notebook running on Databricks. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mapboxgl-jupyter.