Steve<br>It looks very nice.<br><br>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.
<br><br>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).<br><br>Etienne<br><br><br>
<div><span class="gmail_quote">On 10/21/06, <b class="gmail_sendername">Steve Chilton</b> <<a href="mailto:S.L.Chilton@mdx.ac.uk">S.L.Chilton@mdx.ac.uk</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
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: <a href="http://wiki.openstreetmap.org/index.php/User:Steve8#Map_Legend">
http://wiki.openstreetmap.org/index.php/User:Steve8#Map_Legend</a><br>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.
<br>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.
<br>This is my first attempt to code anything - so "constructive" comments/criticisms are welcomed!<br><br>Cheers<br>STEVE<br><br>_______________________________________________<br>talk mailing list<br><a href="mailto:talk@openstreetmap.org">
talk@openstreetmap.org</a><br><a href="http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk">http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk</a><br></blockquote></div><br>