[josm-dev] zip style using MapCSS

2013-04-15 Thread Yohan Boniface

Hi!

I'm working (with HOT) to create a new style for JOSM (which goal is to 
fit the Humanitarian Data Model [1] ). One of the needs is to provide 
more icons for POI regarding humanitarian situations.
For this style, I'm using the MapCSS option, because I feel more 
confident with this syntax.
Given that we will have many custom icons, and given that this style 
will mainly be used in humanitarian context with very poor Internet 
connection, the ideal should be to be able to provide a final ZIP, with 
the style and icons, that can be shared with USB key (as well as with an 
URL of course), and easy to install.
The documentation [2] says that this can be done with a XML based style 
only.
I've made a quick test of a zip with my style and icons, and in fact the 
style is read, but the icons are not found.
Maybe I've done something bad, but given this quick failed attempt and 
given the actual documentation, I prefer to ask before going ahead.

So:
- is it possible to use a zip for a MapCSS style including icones?
- if not, is it something that has a chance to be added in a future 
release of JOSM?


Thanks for reading!
Thanks for the good work on JOSM!

Yohan


[1] http://wiki.openstreetmap.org/wiki/Humanitarian_OSM_Tags
[2] https://josm.openstreetmap.de/wiki/Styles#Iconhandling

___
josm-dev mailing list
josm-dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/josm-dev


Re: [josm-dev] zip style using MapCSS

2013-04-15 Thread Dirk Stöcker

On Mon, 15 Apr 2013, Yohan Boniface wrote:


The documentation [2] says that this can be done with a XML based style only.


Where does it say so?

I've made a quick test of a zip with my style and icons, and in fact the 
style is read, but the icons are not found.


Wrong path?
Icon names and path are relative to the topmost zip directory.

One example from Wiki including icons:

http://josm.openstreetmap.de/josmfile?page=Styles/Landcoverzip

Ciao
--
http://www.dstoecker.eu/ (PGP key available)


___
josm-dev mailing list
josm-dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/josm-dev


Re: [josm-dev] zip style using MapCSS

2013-04-15 Thread Yohan Boniface

Thanks, PierZen has also pointed me to a working example!

Yohan

On 04/15/2013 10:09 AM, Dirk Stöcker wrote:

On Mon, 15 Apr 2013, Yohan Boniface wrote:


The documentation [2] says that this can be done with a XML based
style only.


Where does it say so?



Since JOSM revision 2289 zip files are supported.

The zip file must contain at least one file with extension *xml*.
Icon names and path are relative to the topmost zip directory.
If there are multiple XML files, a file with style in the name is 
preferred (to allow packaging styles and presets in one archive).



I've made a quick test of a zip with my style and icons, and in fact
the style is read, but the icons are not found.


Wrong path?
Icon names and path are relative to the topmost zip directory.

One example from Wiki including icons:

http://josm.openstreetmap.de/josmfile?page=Styles/Landcoverzip

Ciao



___
josm-dev mailing list
josm-dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/josm-dev