[OSM-dev] elemstyles.xml file

Joerg Ostertag (OSM Munich/Germany) openstreetmap at ostertag.name
Tue Jul 3 08:05:51 BST 2007


> Sounds like a good approach. However, I just don't know how to do this
> in the mappaint build process :-(
>
> BTW: Removing only the xml file from the mappaint directory will break
> the description in
> http://wiki.openstreetmap.org/index.php/JOSM/Plugins/MapPaint, as the
> xml file will be missing from the style... As the icons belong to the
> xml file (at least somehow), we could move the whole "standard"
> directory (including xml and icons) to etc completely and fix the
> mappaint manual accordingly.

This would be what I'd likt to do. 
Since gpsdrive, tiles at home, osmarender and mapnik uses partly the same/similar 
Icons; my Idea is to move the map-icons completely to a separate 
debian-package called map-icons or something similar. 
The current state of the icons can be seen here:
	http://www.gpsdrive.de/development/map-icons.shtml
or	http://svn.openstreetmap.org/applications/share/map-icons/
And then make dependencies from the josm-mappaint package to this map-icons 
package. This way we would only have to manage the icons structure once. As 
you can see we already started 5 1/2 different themes. So everyone can easily 
adapt the look of his map to his/her personal preferences.


> > And finally in a really later step merge mapnik and elemstyles.
>
> The mapnik xml looks pretty different, although it serves basically the
> same purpose. I left that over as an excercise for the interested reader
> for now ;-)

I talked to Artem and I think we could in the end try to do a build process 
for all/some of these *.xml files. Where we have one master file (or set of 
files) where we derive/build/make all  the others from. But this will also be 
a little bit in the Future from now.

> > And then we can try to merge applications/share/map-icons/icons.xml too
> > ...
>
> Hmmm, sounds like spreading this icon/style information all over the
> repository is one of the reasons for the chaos ;-)
>
> Seems it becomes my personal karma: "do not duplicate files", "do not
> duplicate files", "do not duplicate files", "do not duplicate files",
> "do not duplicate files", ... ;-)))

Maybe we can try a new Karma: "merge files","merge files","merge files" ;-)

> Regards, ULFL
>
> P.S: There *were* some differences between the two files like different
> colors and alike. I did my best to merge the two files, but maybe
> someone is annoyed by the changes I've done. It's not that I want to
> decide how things look like, I only want to have a clean base to work
> with - and I'll try to add the remaining map features shortly :-)

I think some of the ones in the /etc/elemstyles.xml are from my personal 
josm-file. And my only goal was to see it rendered in josm. So I won't mind 
as long as I can see a lot of features rendered in josm ;-)))

-
Joerg




More information about the dev mailing list