Re: [OSM-talk] New static-maps API - relations

2009-07-07 Thread OJ W
You can now view relations using the Static Map API.

e.g. here is one of the underground lines in OSM: http://tinyurl.com/mjcd7o

The equivalent slippy-map view is at http://tinyurl.com/klkrkl and its
main page http://dev.openstreetmap.org/~ojw/relation/ will let you
enter a relation ID.

To get the relation ID for something, try copying from a potlatch edit
session, or look the wiki for some interesing examples.

Currently this website only shows 'route'-type relations, and only
shows ways (not nodes or hierachical relations)

regards,

OJW


p.s. I'm still trying to figure-out transparency in GD.  Anyone know
how to put a semitransparent line on a transparent background, and
save the result as PNG?

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


Re: [OSM-talk] New static-maps API - relations

2009-07-07 Thread Yann Coupin
If my memory is correct you first do a createcoloralpha(r,g,b,a)  
where r,g,b  a are 8 bits values but I don't remember if 0 is full  
transparent or full opaque. You then use that color as usual. You may  
have to first create a fully transparent color and use it to fill the  
entire image otherwise the resulting image ends up opaque.

Yann

Le 7 juil. 09 à 23:56, OJ W a écrit :

 p.s. I'm still trying to figure-out transparency in GD.  Anyone know
 how to put a semitransparent line on a transparent background, and
 save the result as PNG?


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