[OSM-talk] Map legends: Another option
Stefan Baebler
stefan.baebler at gmail.com
Sat Jun 27 07:05:09 BST 2009
It's nice seeing changing road width with zoom also in the legend!
It would be also interesting to hide features that are not appearing
in the map currently being shown.
Sure it would require a bbox query, but it would be much more user
friendly (eg when matching 2 shades of green in a map to 5 shades in
the legend) and it would also allow showing relevant POI icons
OTOH new mappers should see also not yet existing features (as their
palette of features to choose from) with links to wiki :)
Stefan
On Sat, Jun 27, 2009 at 1:17 AM, Lars Ahlzen<lars at ahlzen.com> wrote:
> Hi All,
>
> I know that there's been some talk about generating map legends/keys
> lately, and I don't know if there's a need for another option. It
> generated some interest when I mentioned it in my diary recently, however...
>
> I created a python script that generates an HTML legend (with images)
> based on a description of features to be included and one or more Mapnik
> XML configuration files. Thus, I can automatically generate legends for
> each zoom level of my map. If I modify the map style, I can just run the
> script again.
>
> Example at: http://toposm.com/ma/
>
> (click on "Show/Hide Legend" at the bottom right). It's dynamic, so it
> will reload when you zoom in and out.
>
> It was created for the TopOSM project, but it may be useful to other
> projects that use Mapnik for rendering.
>
> The script itself, and more info, is available at:
>
> http://wiki.openstreetmap.org/wiki/TopOSM#Map_legend
>
> - Lars
>
> --
> Lars Ahlzen
> lars at ahlzen.com
>
> _______________________________________________
> talk mailing list
> talk at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/talk
>
More information about the talk
mailing list