Point-in-polygon lookups with vector tiles: quick, effective, and no server needed!
summary
Demonstrates point-in-polygon lookups done entirely in JavaScript by converting vector tiles to GeoJSON with vt2geojson, testing features with turf booleanPointInPolygon, and wrapping it into packages like query-mbtiles and query-remote-tiles. Builds a Find My School service for Victorian government and a Glitch demo; a tiny AWS instance sustains about 1,200 requests/sec. Works fast because tile XYZ math narrows polygons to a few per tile, but it’s not suitable when the full stitched geometry or meter‑accurate borders are required.
AI-written summary · about
chapters (6)
- 0:00Introduction and who am I
- 3:38What is point-in-polygon lookup
- 7:55Local lookups with vector tiles
- 11:47Browser-based lookups without server
- 15:22Using any vector tiles online
- 18:24Q&A and key considerations
related talks
16mRaster tiles to vector tiles: how to cross the gulf
49mClustering in the Mapbox Tiling Service
46mCreating vector tilesets with the Mapbox Tiling Service
15mHave you checked your vector tiles lately?
15mMaking maps work on mobile
19mChoosing Tegola to create vector tiles
05mMVT Tiles and Autonomous Driving, and other non-UI usage
28mtorque.js internals: how to render 3M animated points on a map
