Glodenox / wme-om

Waze Map Editor - Open Maps userscript
GNU General Public License v2.0
8 stars 7 forks source link

Hide empty tiles #41

Open Glodenox opened 7 years ago

Glodenox commented 7 years ago

If we receive an empty (transparent or white) tile from the server, we should just not add this tile to the map. This will mostly help the orthographic maps near the borders where the white tiles cover up the map at the other side of the border.

The nicest solution would probably be to replace all 100% white content with transparency, but that would be very hard when dealing with JPG images (would need to be replaced with PNG).

wme_om-border

Glodenox commented 4 years ago

Can be implemented at the same time as #68 is worked on. An easy fix would be making all 100% white pixels fully transparent. But it's probably better to require a certain threshold of white pixels before applying this on a tile. Shouldn't be too hard with a canvas.