carbonplan / maps

interactive multi-dimensional data-driven web maps
https://maps.demo.carbonplan.org
Other
213 stars 18 forks source link

[WIP] Benchmarking #98

Closed katamartin closed 1 year ago

katamartin commented 1 year ago

Creates WIP interface for detecting when composite map layers become idle by combining Mapbox's map.on('idle', ...) and loading state tracking for Raster layers (functionally captures when raster tiles are finished painting).

When benchmarkMode is passed to Map, it will register itself in an object stored in window._map. To listen for idle events, you can do something like:

window._map.onIdle(() => { /* do something */ })
vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
maps-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 16, 2023 7:58pm
1 Ignored Deployment | Name | Status | Preview | Comments | Updated (UTC) | | :--- | :----- | :------ | :------- | :------ | | **maps-docs** | ⬜️ Ignored ([Inspect](https://vercel.com/carbonplan/maps-docs/A2tHM9X4kvoKYz6ikk1R9agJJp16)) | [Visit Preview](https://maps-docs-git-katamartin-benchmarking-carbonplan.vercel.app) | | Jun 16, 2023 7:58pm |