[OSM-talk] Legend add-in for osmarender

Etienne 80n80n at gmail.com
Sat Oct 21 22:46:15 BST 2006


Steve
It looks very nice.

It ought to be possible to generate the legend as an integral part of the
main Osmarender process so that you don't have to make a separate .png
file.  If I get a quite moment I'll see if I can figure out what you'd need
to do.

To get everything lined up you could just post edit the .osm file and set
the lat/lon values manually in fixed size increments (near lat=0 to avoid
distortion from the Mercator projection).

Etienne


On 10/21/06, Steve Chilton <S.L.Chilton at mdx.ac.uk> wrote:
>
> I have been doodling with adding a legend to osmarendered maps and have
> produced a pretty messy add-in that seems to work for me. If anyone would
> like to try it, it is detailed at:
> http://wiki.openstreetmap.org/index.php/User:Steve8#Map_Legend
> Created a data file with examples of main tags that I use (it is
> admittedly a pretty small subset), rendered it to svg, saved to png and then
> included in the border stuff in osmarender.
> The messiest bit is the keydata file, which includes all the nudging of
> nodes I had to do to align things reasonably well (I needed the snap to grid
> feature that I am familiar with in graphics programmes). If anyone can see a
> way of reducing that file to its basics I would be grateful. Also any
> suggestions for moving to a dynamic legend tool rather than a pre-rendered
> static one would be useful. At moment the legend (which has on/off mode like
> all other peripheral elements) is valid until you change some details of
> your rendering scheme by editing the xml file.
> This is my first attempt to code anything - so "constructive"
> comments/criticisms are welcomed!
>
> Cheers
> STEVE
>
> _______________________________________________
> talk mailing list
> talk at openstreetmap.org
> http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/talk/attachments/20061021/10123855/attachment.html>


More information about the talk mailing list