Locus Map - forum

Content & Tools => Themes - Vector maps => Topic started by: fzk on February 25, 2013, 20:09:58

Title: Stroke color and opacity
Post by: fzk on February 25, 2013, 20:09:58
I'm new to themes and have two (perhaps silly) questions:

- What does this color specification (8 hex digits instead of 6) mean (e.g. found in "Voluntary Hike.xml") ?
<line stroke="#80ffff00" stroke-width="0.75" />
<line stroke="#4012D51C" stroke-width="0.75" stroke-dasharray="15,5,5,5"  stroke-linecap="butt"/>

- How is it possible to define opacity to drawing objects (areas, lines, pois) ?

Regards Klaus
Title: Re: Stroke color and opacity
Post by: tommi on February 25, 2013, 20:17:21
Quote from: "fzk"I'm new to themes and have two (perhaps silly) questions:

- What does this color specification (8 hex digits instead of 6) mean (e.g. found in "Voluntary Hike.xml") ?
<line stroke="#80ffff00" stroke-width="0.75" />
<line stroke="#4012D51C" stroke-width="0.75" stroke-dasharray="15,5,5,5"  stroke-linecap="butt"/>
The first two digits define the opacity
Title: Re: Stroke color and opacity
Post by: fzk on February 25, 2013, 22:12:09
@tommi: Thanks for the response ...

Two more questions:
- How to interprete the opacity value (what means full and what means no opacity) ?
- Or better: Could you point me to the documention of that feature ?

Regards Klaus
Title: Re: Stroke color and opacity
Post by: Menion on February 26, 2013, 19:25:03
"ff" - 255 value, mean no alpha, so 100% opacity
"00" - 0 value, mean 100% alpha, so color is completely transparent
Title: Re: Stroke color and opacity
Post by: fzk on February 27, 2013, 09:13:57
I have read in another thread that you have rewritten 25% of the mapsforge lib ...

Is the opacity feature part of your enhancements or is it also a feature in the default mapsforge lib ?

Regards Klaus

PS: Is there somewhere a list with all of yours Locus-specific enhancements ?
Title: Re: Stroke color and opacity
Post by: Menion on February 27, 2013, 09:20:01
25% ... don't know if this value, but part yes. major changes are on background that do not affect rendering styles.

Anyway some description is already prepared here http://docs.locusmap.eu/doku.php/manual ... eme_config (http://docs.locusmap.eu/doku.php/manual:vector_maps_theme_config). Count that it's not yet complete, we still work on it. Ah and yes, transparency is fully supported in basic MapsForge system
Title: Re: Stroke color and opacity
Post by: fzk on March 04, 2013, 14:40:48
Thanks for pointing to the doc ...

Very interesting for me are the scaling (icons, text) enhancements.
The feature concering "motorway signs" (bg*) should be used (IMHO) sparingly.
Such signs are very dominant on a map ...

The Mapsforge guys have announced version 0.4 of the lib (probably in 2-4 mounth).
How do you intend to handle this ?

Cheers Klaus
Title: Re: Stroke color and opacity
Post by: Menion on March 04, 2013, 14:53:37
you're welcome.

plans on 0.4 of the lib are now simple - ignore this. I did quite a lot of changes to current library that improve system a lot and if there will not be any dramatical improvements, I'll have no reason to update to latest version
Title: Re: Stroke color and opacity
Post by: fzk on March 04, 2013, 18:06:48
Locus vs. Mapsforge 0.4 - OK - understood.

Concerning themes there is one thing on my wishlist:

(//http://i.imgur.com/MWDcp.png)

This requires a "dx" feature in caption - eg. something like this:
<caption k="name" dy="20" dx="30" font-style="bold" font-size="15" fill="#000000" stroke="#ffffff" stroke-width="2.0" />

Cheers - Klaus
Title: Re: Stroke color and opacity
Post by: Menion on March 05, 2013, 17:35:34
no problem, "dx" added and will be available in next version
Title: Re: Stroke color and opacity
Post by: fzk on March 23, 2013, 20:52:01
Quote from: "menion"no problem, "dx" added and will be available in next version

Works ... thanks for implementing this !

<caption k="name" dy="-10" dx="58" font-style="normal" font-size="15" fill="#4000FF" stroke="#ffffff" stroke-width="2.0"/>

(//http://i.imgur.com/71wUqVf.png)

Cheers - Klaus