[OSM-dev] Overall MapFeatures.xml File. was: Addition to JOSM - 'map style' display

Joerg Ostertag (OSM Munich/Germany) openstreetmap at ostertag.name
Sat Sep 16 20:40:21 BST 2006


> That sounds a good idea.
>
> > So my question is: Where do we place this file in the OSM-SVN?
> >
> > The second question would be if we also can use a common set of
> > structured icons for all applications. For this I started the icons
> > folder in SVN. it's located at:
> >  svn.openstreetmap.org/map-icons/
> > This would enable us to have a unique look of all map icons over all
> > OSM-Applications.
>
> Also a good idea - I'll add all my icons to it.

Great. This way we can get a good selection of icons.

This is the general OSM Map-Icons directory. 
All the icons in these directories have to get an 
entry into the map-features.xml file. So we have one common 
place for all icons used for drawing maps.
We currently have three subdirectories representing 
the three icon schemes(classic,square.big,square.small).
This means that the user can choose between those 
three(for now) styles for rendering. The three styles 
are represented in the three directories:
  - classic: normally no frames, no borders, transparent 
             but if you are unsure put the icons here
  - square.big: these icons all have a square shaped frame,
             where the color of the frame tells which category they belong to.
  - square.small: same as above(square.big), only smaller

Inside these directories the icons are structured by category. 
Where every category has it's own sub-directory. 
There are the following top-categories: 
      - accomodation
      - education
      - food
      - geocache
      - health
      - historic
      - money
      - nautical
      - other
      - people
      - places
      - public
      - recreation
      - religion
      - shopping
      - sightseeing
      - sports
      - transportation
      - unknown
      - vehicle
      - wlan
Each of these categories can have sub-categories. If you 're adding 
more icons you should try to put them into one of the existing 
categories.
For each (sub-)category we have a category-icon which is named like the 
category directory. So for example, for the directory <style>/food/
we have to have an icon <style>/food.png. The same always applies 
to each sub-sub-directory. before you start a sub-category you'll 
have to create an icon for this subcategory. This way the renderer
can always take the category icon if there does not exist a specific
icon for this.
If you are not sure where to put the icon you should consider using 
the others category(directory)


This exülenation can also be found in the README File in the map-icons 
directory.
-
Joerg




More information about the dev mailing list