mapbox / leaflet-omnivore

universal format parser for Leaflet & Mapbox.js
https://www.mapbox.com/mapbox.js/example/v1.0.0/omnivore-gpx/
Other
651 stars 126 forks source link

Multiple layer with omnivore #107

Open zogs opened 6 years ago

zogs commented 6 years ago

Is it possible to have two distinct layer like that:

var layer1 = omnivore.geojson('/bivb/bivb-map/web/bundles/map/geojson/cotedor.geojson', null, styled).addTo(map);

var layer2 = omnivore.geojson('/bivb/bivb-map/web/bundles/map/geojson/bourgogne.geojson', null, styled).addTo(map);

It seems to me that the two layer are merge in one...