Stroke color and opacity

Started by fzk, February 25, 2013, 20:09:58

0 Members and 1 Guest are viewing this topic.

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"/>

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

Regards Klaus
  •  

tommi

#1
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
  •  

fzk

#2
@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
  •  

Menion

#3
"ff" - 255 value, mean no alpha, so 100% opacity
"00" - 0 value, mean 100% alpha, so color is completely transparent
- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 Release download
  •  

fzk

#4
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 ?
  •  

Menion

#5
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. Count that it's not yet complete, we still work on it. Ah and yes, transparency is fully supported in basic MapsForge system
- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 Release download
  •  

fzk

#6
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
  •  

Menion

#7
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
- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 Release download
  •  

fzk

#8
Locus vs. Mapsforge 0.4 - OK - understood.

Concerning themes there is one thing on my wishlist:



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
  •  

Menion

#9
no problem, "dx" added and will be available in next version
- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 Release download
  •  

fzk

#10
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"/>



Cheers - Klaus
  •