kartverket / kartverket.vectortiles

Repository for test vectortiles service from the Norwegian Mapping Authority
6 stars 2 forks source link

Reduce the size of the icon sprite #7

Open turban opened 1 year ago

turban commented 1 year ago

The icons in the sprite are much larger than they need to be: https://github.com/kartverket/kartverket.vectortiles/blob/main/style/landtopo/landtopo.png https://github.com/kartverket/kartverket.vectortiles/blob/main/style/landtopo/landtopo%402x.png

Could the size be reduced to save some bandwidth and to make it easier to combine different sprites? Ideally the icon size should be 1-to-1.

turban commented 1 year ago

We found an issue with Safari on iPhone - it seems that it's not capable of using the big sprite. Icons are not showing on the map when testing: https://kartverket.github.io/vectorTilesDemo/

Screenshot 2023-04-26 at 14 54 27

So sprite width x height can't exceed 16.777.216