[Potlatch-dev] More UX testing

Richard Fairhurst richard at systemeD.net
Thu Mar 1 23:12:24 GMT 2012


On 01/03/2012 17:41, Andy Allan wrote:
> I'm especially coming to the conclusion that defining the icons in
> map_features.xml is the wrong place to do it - the icons in the panel
> should always match the icons shown in the stylesheet. No idea how to
> fix that though :-)

That's pretty easy in theory though I'm not necessarily offering to code 
it this evening!

a) Take the tags defined for this feature in map_features.xml
b) Construct an object with those tags, and run it through RuleSet.getStyles
c) In the resulting StyleList, find a PointStyle, and extract the icon
d) PROFIT etc. etc.

cheers
Richard




More information about the Potlatch-dev mailing list