Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Mapbox integration documentation #2297

Merged
merged 2 commits into from Sep 21, 2018

Conversation

Pessimistress
Copy link
Collaborator

For #2132


* mapbox and deck.gl layers can be freely "interleaved", enabling a number of important uses cases as described below.
* mapbox and deck.gl layers can be freely "interleaved", enabling a number of layer mixing effects, such as drawing behind map labels; z-occlusion between deck.gl 3D objects and Mapbox buildings; etc.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

replace semicolon with comma.

* mapbox and deck.gl will share a single canvas and WebGL context, saving system resources.

Disadvantages:
### Limitations
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Only works with mapbox-gl API
  • No react-map-gl integration...
  • deck.gl API cannot be used

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It can technically be used with react-map-gl, by accessing the map instance. We could also add addLayer and removeLayer methods onto the React component.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes... I suppose we have three cases then:

  1. Use as a "mapbox" layer pack with raw mapbox API (supported)
  2. Use as a "mapbox" layer pack with react-map-gl (can be supported with small extensions to react-map-gl, as you suggest).
  3. Use with DeckGL to let deck layers be rendered in between mapbox layers (not supported).

I think it would be great to add support for #2 especially as effort seems low, but obviously not having support for #3 is going to be a blocker for many users.

@Pessimistress Pessimistress merged commit a4f59e0 into visgl:master Sep 21, 2018
@Pessimistress Pessimistress deleted the mapbox-layers-doc branch September 21, 2018 06:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants