Thread: [SailfishOS] Pure Maps
View Single Post
Posts: 1,548 | Thanked: 7,510 times | Joined on Apr 2010 @ Czech Republic
#132
Originally Posted by rinigus View Post
No, I don't think it has to be tuned for each of the styles. But, I would think that night/day maps could be different.
It's something like palette swapping doable for SVG ? I works fine for games to differentiate players with the same model so I guess the same mechanism could be used to palette swap icons/indicators to better work with the given map style while keeping the icons otherwise the same geometry wise (of course one needs to make sure the palette swapped colors don't blend together).

I don't have a very deep insight into SVG & SVG rendering, but every SVG is basically a XML file, so in the simplest case it should be possible to quite easily palette swap a set of master icons by sedding the color strings to different ones for each variant, during development or at build time.

In more advanced cases the SVG code could be processed at runtime & fed to either PyOtherSide image provider (it takes byte arrays & supports proper SVG rendering) or to temporary files.

So, just an idea.
__________________
modRana: a flexible GPS navigation system
Mieru: a flexible manga and comic book reader
Universal Components - a solution for native looking yet component set independent QML appliactions (QtQuick Controls 2 & Silica supported as backends)
 

The Following 8 Users Say Thank You to MartinK For This Useful Post: