protomaps / PMTiles

Cloud-optimized + compressed single-file tile archives for vector and raster maps
https://protomaps.com/docs/pmtiles/
BSD 3-Clause "New" or "Revised" License
2.11k stars 125 forks source link

Update js/examples/maplibre.html #383

Closed paulovieira closed 2 months ago

paulovieira commented 7 months ago

Some small changes to make the this important example more clear:

If there is interest I can make these same changes in the other 2 examples (maplibre_raster_dem.html and leaflet.html)

bdon commented 7 months ago

I don't view using await as inherently more correct than using .then() in this context of a simple script using the IIFE script-includes. Is there another reason why this would be better?

bdon commented 2 months ago

Fixed formatting in #438 , thanks.