mapbox / mapbox/leaflet-omnivore

Multiple layer with omnivore

Open
#107 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.