This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

down load amenities for leaflet

0

Hi, apologies if this is redundant but i'm new to coding. I'm trying to download amenity features (motorcycle parking and fuel) for a leaflet map of the UK, but I cannot find a tutorial. So far I've downloaded the British Isle file from geofabrik. And I've found the github tutorial https://github.com/openstreetmap/leaflet-osm but I don't know how to find the url? Any advice would be appreciated, thanks.

asked 22 Apr '19, 11:04

morgan04's gravatar image

morgan04
11112
accept rate: 0%

2

instead of downloading the data to your computer, I think it would be better to use Leaflet in combination with Overpass. In that way you always have the latest data in your application. An example library to do that is https://github.com/GuillaumeAmat/leaflet-overpass-layer

(22 Apr '19, 11:21) escada

Source code available on GitHub .