Re: [OSM-talk] Map legends: Another option

2009-06-28 Thread Frankie Roberto
On Sat, Jun 27, 2009 at 11:39 PM, Lars Ahlzen  wrote:


> > 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 :)
>
> Technically implementing that on a slippy map sounds tricky, but it's an
> interesting idea. It would probably be useful for legends with many
> features.


Well, I find myself using the 'data' overlay on the main OSM map a lot. And
whilst that can take a while to load (especially if there are a lot of
features), it could perhaps be sped up by not actually drawing the shapes on
the map (ie just defining the clickable areas).

We might still be a while away from this, but with continual improvements to
javascript handling/speed in browsers (witness Firefox 3.5, Chrome, Safari,
etc) - I reckon it should be possible at some point in the future.  You
could also start by just doing node-based POIs, which would probably cut
down the complexity.

Frankie

-- 
Frankie Roberto
Experience Designer, Rattle
0114 2706977
http://www.rattlecentral.com
___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] Map legends: Another option

2009-06-27 Thread Lars Ahlzen
Stefan Baebler wrote:
> It's nice seeing changing road width with zoom also in the legend!

Yep. True WYSIWYG. :)

> 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 :)

Technically implementing that on a slippy map sounds tricky, but it's an
interesting idea. It would probably be useful for legends with many
features.

- Lars

-- 
Lars Ahlzen
l...@ahlzen.com

___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] Map legends: Another option

2009-06-27 Thread Ævar Arnfjörð Bjarmason
On Fri, Jun 26, 2009 at 11:17 PM, Lars Ahlzen 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

It would be neat if someone modified this to make it generate a legend
for the main web interface.

It's not that hard, here's an example of an entry for osmarender being added:

http://trac.openstreetmap.org/changeset/16132

The "motorway" key is then used to look up a translation, e.g.:

http://trac.openstreetmap.org/browser/sites/rails_port/config/locales/en.yml#L581

Of course if you were going to modify it to have sections as in that
example you'd have to add section heading generation to the code, but
that shouldn't be that hard.

The main thing that needs to be done is to make something that can
read the main mapnik stylesheet and spit out something machine
readable that indicates what zoom level that feature is visible on, a
path to an associated PNG file, and optionally what section (e.g.
Roads) it's under.

Looks like this is mostly done at TopOSM, it's just a matter of
someone doing the needed integration legwork.

___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] Map legends: Another option

2009-06-27 Thread Ulf Lamping
Stefan Baebler schrieb:
> 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 :)

It's nice seeing improvements in the map legends :-)

Hiding the "currently not available" features from the legend has a 
drawback: You don't know which features are generally available at this 
specific map zoomlevel, and which are just not existing in the currently 
shown bbox.

I agree that it would be nice to distinguish it though. Maybe specially 
marking it with a different background color or such might be an idea.


Anyway, to all involved: Keep up the good key/legend work, another 
example where OSM makes a difference :-)))

Regards, ULFL

___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] Map legends: Another option

2009-06-26 Thread Stefan Baebler
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 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
> l...@ahlzen.com
>
> ___
> talk mailing list
> talk@openstreetmap.org
> http://lists.openstreetmap.org/listinfo/talk
>

___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


[OSM-talk] Map legends: Another option

2009-06-26 Thread Lars Ahlzen
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
l...@ahlzen.com

___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk