esosedi / regions

Module for Yandex, Google, Leaflet, D3 and other JS Maps with build in ability to display any region of the world. Or even an entire world. Based on OpenStreetMap and other sources
http://data.esosedi.org/
MIT License
95 stars 16 forks source link

How I can pick an OpenStreetMap 'way' #4

Closed mnsrv closed 9 years ago

mnsrv commented 9 years ago

like this – Линия: Нудоль (229341599). I try to filter it in 'RU-MOS' (Moscow Region),

osmeRegions.geoJSON('RU-MOS', {lang: 'ru', quality: 3}, function (data, pureData) {
            var coords = osmeRegions.recombine(pureData, {
                filter: function(region) {
                    return region.osmId==229341599;
                }
            });
            ...

but it didn't work. May be because it is not OpenStreetMap _'boundary'. It is OpenStreetMap **'way'_. How I can add this 'way'** to my map?

mnsrv commented 9 years ago

Ok, It's no way to add OpenStreetMap _'way'_. Close issue