Open emilydomanico opened 4 months ago
Yes, a PR would be great! I've heard elsewhere that PMTiles integration is a desirable feature.
I do want to keep the Mapbox and MapLibre interfaces consistent, so we'd need to handle with related but separate plugins (like I do with compare()
.
I'll keep this on my to-do list, but it might be a couple of weeks. The pmtiles for maplibre integration seems do-able with all the references I've gathered.
I like the Mapbox and MapLibre consistency that you've set up in the package, but I can see some gaps in the pmtiles to mapbox support (although something like https://github.com/am2222/mapbox-pmtiles looks promising). If you have more thoughts on that front let me know.
Hi! First, so excited to see that you are developing tools for maplibre in R! It parallels well with work I've been doing to explore 1) creating PMTiles with tippecanoe, 2) storing them in an S3 bucket, and 3) adding them as a vector source to a maplibre map.
I see you have the
add_vector_source()
function set up for MapTiler tiles, and I am wondering if it is a small lift to allow it to render PMTiles read in directly from an S3 bucket link?I have an html script adapted from the PMTiles source and protocol example (here: https://maplibre.org/maplibre-gl-js/docs/examples/pmtiles/), that works as a standalone. Would it be possible to integrate the PMTiles plugin with this work? Possibly in the
add_vector_source()
function?If I can help move toward a pull request, let me know if that's something could see including in this package. Thanks!