I want to download an aerial image containing roads from OSM and also download the corresponding road vectors for all the roads in the image from OSM and plot the roadvectors superimposed on the image to highlight the roads. Can somebody help me how to do it? asked 23 Jan '15, 10:08 ssbals |
OSM does not have aerial images, but suppose you find a provider for such images. Libraries such as Leaflet or OpenLayers allow you to show tiles within a bounding box. You program needs to be aware of this bounding box. Then the program can e.g. create an Overpass query to retrieve all ways and place them over the tiles with the aerial images. An example how to retrieve WMS tiles with OpenLayers, this could be used to load the aerial images, provided they are available as WMS. Here is a post describing how to combine Overpass with OpenLayers. answered 23 Jan '15, 16:49 escada |