[OSM-talk] mappaint questions

Nick Whitelegg nick at hogweed.org
Sat Jan 6 14:07:40 GMT 2007


On Saturday 06 Jan 2007 08:01, Mike Collinson wrote:
> The mappaint plugin for JOSM has proved a great boon to editing
> quality control as I can see what I'm doing and what I haven't
> done.  Now I'd like to do more. Can anyone help me with:
>
> (1) Can / how do I change the colour of a node?  This does not work:
>
> <rule>
> <condition k="amenity" v="fuel"/>
> <node colour="#00aaaa" />
> </rule>

You can't do this at present.

> (2) Can I add icons externally? Where do I place them and is there
> any specific path addressing rules?  Neither fully-qualified names
> nor placing the same folder as elemstyles.xml works.
>
> <rule>
> <condition k="amenity" v="fuel"/>
> <icon annotate="true" src="petrol_station.gif" />
> </rule>
>
> Mike

Icons are compiled into the JAR file. You need to get the source distribution 
of mappaint, place the icon in the images directory within the mappaint 
plugin source directory, and build the JAR file.  Alternatively send me the 
icon and I can add it to the distributed version of the source.

Nick




More information about the talk mailing list