ikonor
(Ikonor)
14
OpenLayers unterstützt das OSM XML Format (Standard bzw. [out:xml] bei Overpass, siehe #7), allerdings leider ohne Relationen, das müsste man erweitern, hätte aber immerhin schon mal die Ways:
http://openlayers.org/en/latest/examples/vector-osm.html?q=osm
http://openlayers.org/en/latest/apidoc/module-ol_format_OSMXML-OSMXML.html
https://github.com/openlayers/openlayers/blob/master/src/ol/format/OSMXML.js
Einfacher ist vermutlich, osmtogeojson einzubinden, das alle Overpass Formate unterstützt und nach GeoJSON konvertiert:
https://github.com/tyrasd/osmtogeojson