I want something similar to
OpenLayers.Format.OSM for leaflet. i know how to use a geojson file and i have found support for GPX and WFS in plugins, but not for OSM.
Simply saying i want to make this map using leaflet and overpass.
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It only takes a minute to sign up.Sign up to join this community
Here's a Leaflet plugin that can render OSM XML: https://github.com/jfirebaugh/leaflet-osm It's used by the openstreetmap.org site to display a data layer for browsing and editing.
Not directly. Leaflet can read geojson so try converting osm to geojson using this Hope it works.
To load OSM data through Overpass API in Leaflet layer using this plugin: