Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce the size of the icon sprite #7

Open
turban opened this issue Apr 11, 2023 · 1 comment
Open

Reduce the size of the icon sprite #7

turban opened this issue Apr 11, 2023 · 1 comment

Comments

@turban
Copy link

turban commented Apr 11, 2023

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
Copy link
Author

turban commented Apr 26, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant