Even better would be no image for the water tiles and set the background color of the container element.
The smallest 256x256 single-color PNG file, and where you've seen it (2015)
61–70 of 104 posts
Re: The smallest 256x256 single-color PNG file, and where you've seen it (2015)
#62I love image formats and data packing, but was disappointed that the reveal was that maps use raster tiles. The map data is vector, why not render it as such?
There’s another challenge: you need to provide more and more data as you zoom in, wonder how that should work with vector stuff.
Re: The smallest 256x256 single-color PNG file, and where you've seen it (2015)
#63I love image formats and data packing, but was disappointed that the reveal was that maps use raster tiles. The map data is vector, why not render it as such?
That time when browsers rendered SVG funny if at all was not very long ago. There’s another challenge: you need to provide more and more data as you zoom in, wonder how that should work with vector stuff.
SVG is convenient but isn't necessary.
Re: The smallest 256x256 single-color PNG file, and where you've seen it (2015)
#64The difference between the OSM and Google tile is 75 bytes. So if they serve one million tiles OSM saved 75MB. OSM needs 54TB for all tiles but only around 1.8% are viewed. So you need at least 1TB of cache. I am curious if this micro optimalization really makes a difference.
Re: The smallest 256x256 single-color PNG file, and where you've seen it (2015)
#65I love image formats and data packing, but was disappointed that the reveal was that maps use raster tiles. The map data is vector, why not render it as such?
For example maplibre is a great option for rendering vector based openstreet maps from e.g. maptiler or mapbox. They can tilt the maps, render buildings in 3D, have step less zooming, etc.
Re: The smallest 256x256 single-color PNG file, and where you've seen it (2015)
#66One thing I've wondered about are size savings for DEM tiles. Typically elevation values are encoded in RGB values giving a resolution down to fractions of an inch [1]. This seems like overkill. With an elevation range from 0 - 8848 meters (Mt everest), you can use just 2 bytes and get an accuracy down to .2 meters. That seems plenty for many uses. Does anybody know if there's a PNG16 format where you can reduce the…
Edit: a link to a mapbox-gl-js discussion on the use of custom dems/encodings (after which anything is possible): https://github.com/mapbox/mapbox-gl-js/issues/10775
Re: The smallest 256x256 single-color PNG file, and where you've seen it (2015)
#67[1] https://files.littlebird.com.au/Shared-Image-2022-04-22-17-5...
Re: The smallest 256x256 single-color PNG file, and where you've seen it (2015)
#68The difference between the OSM and Google tile is 75 bytes. So if they serve one million tiles OSM saved 75MB. OSM needs 54TB for all tiles but only around 1.8% are viewed. So you need at least 1TB of cache. I am curious if this micro optimalization really makes a difference.
How did you find out only around 1.8% are viewed?
Re: The smallest 256x256 single-color PNG file, and where you've seen it (2015)
#69The difference between the OSM and Google tile is 75 bytes. So if they serve one million tiles OSM saved 75MB. OSM needs 54TB for all tiles but only around 1.8% are viewed. So you need at least 1TB of cache. I am curious if this micro optimalization really makes a difference.
Re: The smallest 256x256 single-color PNG file, and where you've seen it (2015)
#70With some dirty hacks, I got it down to 83 bytes: https://cdn.discordapp.com/attachments/286612533757083648/96... 00 89 50 4e 47 0d 0a 1a 0a 00 00 00 0d 49 48 44 52 |.PNG........IHDR| 10 00 00 01 00 00 00 01 00 01 03 00 00 00 66 bc 3a |.............f�:| 20 25 00 00 00 03 50 4c 54 45 b5 d0 d0 63 04 16 ea |%....PLTE���c..�| 30 00 00 00 1b 49 44 41 54 68 81 ec c1 01 0d 00 00 |....IDATh.��....| 40 00 c2 a0 f7 4f 6d 0f 07…
https://en.wikipedia.org/wiki/JPEG_XL
Preliminary support in Firefox and Chromium nightly/testing builds already. I share your hope that we can start to use it in the next couple years. Looking at you, Safari ;)