[OSM-talk] Relation/Routes and Hikes in open Country

Christopher Schmidt crschmidt at metacarta.com
Wed Jun 25 21:01:40 BST 2008


On Wed, Jun 25, 2008 at 02:21:10PM -0400, simon at mungewell.org wrote:
> >
> >> Something I keep toying with is the idea of facilitating mashups (did
> >> I really just say that?) by giving masher-uppers a way to tie their
> >> routes to OSM IDs.
> >
> 
> There is an example on OpenLayers showing how to superimpose an OSM file
> on top of a slippy map.
> http://openlayers.org/dev/examples/osm-layer.html
> 
> The overlay looks like it is just a normal osm file
> (http://openlayers.org/dev/examples/osm/sutton_coldfield.osm). I wonder if
> this would work with a 'full' relation file (ie.
> http://www.openstreetmap.org/api/0.5/relation/18321/full).

The OpenLayers parser doesn't do anything with relations themselves --
it wouldn't group the bits together into a single feature -- but it
would take the ways and nodes and draw them into the map.

Regards,
-- 
Christopher Schmidt
MetaCarta




More information about the talk mailing list