Skip to content

Add #92 - Generate exact single tile#152

Open
montzkie18 wants to merge 1 commit intomapbox:mainfrom
montzkie18:main
Open

Add #92 - Generate exact single tile#152
montzkie18 wants to merge 1 commit intomapbox:mainfrom
montzkie18:main

Conversation

@montzkie18
Copy link

Exposing new method geoJSONToTile to generate a specific VT based on passed z/x/y values.

This should skip generating parent tiles on all higher zoom levels for the requested tile.

This ports the C++ functionality implemented by @asheemmamoowala in mapbox/geojson-vt-cpp#65

@jayarjo
Copy link

jayarjo commented May 14, 2021

Please merge this.

@montzkie18
Copy link
Author

hi @mourner - any chance I can get a review on this one? thanks!

@mourner
Copy link
Member

mourner commented May 24, 2021

Sorry for the late response. I'll need to consider this change more thoroughly because this is technically breaking for the UMD bundle — when you have both default and named exports, the bundle will expose geojsonvt as geojsonvt.default.

@kevincennis
Copy link

@mourner would you be open to a version of this that just tacks something like singleTileFromGeoJSON() on to the exported geojsonvt function?

i.e. geojsonvt.singleTileFromGeoJSON = function() { /* do things */ }

That's maybe a little weird, but it sidesteps the export issue at least

@kikonejacob
Copy link

@mourner @montzkie18 Any update on this?
It will be nice if this can be merged soon!

@ingalls
Copy link

ingalls commented Aug 7, 2025

@mourner Hey! It's been a hot sec. I started looking for this use case and came across this PR. Is this something that you'd still be interested in merging in? Otherwise I can host a fork with the changes.

@neodescis
Copy link

neodescis commented Nov 21, 2025

I would also really like this for my project. My goal is to take a WFS GetFeature response for a given bbox that correlates to a z/x/y tile ID, convert the features to GeoJSON, and finally convert the features to a vector tile. In the meantime, I may have to make use of patch-package.

@ingalls
Copy link

ingalls commented Nov 21, 2025

@neodescis The State of Colorado is currently hosting this version: https://github.com/dfpc-coe/geojson-vt. My hope is that MapLibre will eventually host these changes

@neodescis
Copy link

@neodescis The State of Colorado is currently hosting this version: https://github.com/dfpc-coe/geojson-vt. My hope is that MapLibre will eventually host these changes

Do you have it published to the npm public repo? If so, I'm not finding it.

@ingalls
Copy link

ingalls commented Nov 26, 2025

https://www.npmjs.com/package/@tak-ps/geojson-vt

@HarelM
Copy link

HarelM commented Jan 21, 2026

We have on boarded a fork of this project to maplibre org now.
If you would like to open a PR there I'll be happy to review it.

@mourner
Copy link
Member

mourner commented Jan 21, 2026

We have on boarded this project to maplibre org now.

@HarelM that sounds a bit misleading. You have forked the project and will maintain a Maplibre-focused fork, but geojson-vt still remains and will be maintained here.

@HarelM
Copy link

HarelM commented Jan 21, 2026

You are right, sorry, I have updated the message above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants