mapbox / mapbox/leaflet-omnivore
Multiple layer with omnivore
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 680
- Forks
- 128
- PR merge metrics
- No merged PRs in 30d
Description
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...
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue using the two omnivore.geojson calls shown in the report, with the shared styled callback and map. Inspect how each returned layer is created and added, and verify that both layers remain separately addressable and independently represented on the map.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100