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


_______________________________________________
Potlatch-dev mailing list
Potlatch-dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/potlatch-dev

Reply via email to