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

Add mapbox / openlayer examples #21

Open
submarcos opened this issue Feb 26, 2021 · 2 comments
Open

Add mapbox / openlayer examples #21

submarcos opened this issue Feb 26, 2021 · 2 comments
Labels
📝 Documentation Improvements or additions to documentation

Comments

@submarcos
Copy link
Owner

No description provided.

@submarcos submarcos added the 📝 Documentation Improvements or additions to documentation label Feb 26, 2021
@mariogiampieri
Copy link

Hi, thank you for this wonderful package! I'm struggling to implement using mapbox, in part due to some confusion around providing proper layer names in the url / view / mapbox source definition. Can you point me toward any implementation using mapbox? thanks!

@submarcos
Copy link
Owner Author

submarcos commented Feb 22, 2022

Thank you for your interest.

According mapbox documentation https://docs.mapbox.com/mapbox-gl-js/style-spec/root/

You should define a map with source and layer defined.

Source should refer to your exposed url by this app https://docs.mapbox.com/mapbox-gl-js/style-spec/sources/#tiled-sources (only use absolute urls, as http://127.0.0.1:8000/your_view/{z}/{x}/{y} for example)

Layer should refer to your used layer name (contained in source vector tiles), with a specific style https://docs.mapbox.com/mapbox-gl-js/style-spec/layers/ and https://docs.mapbox.com/mapbox-gl-js/style-spec/layers/#layer-properties

I will be happy if you want to contribute to this package documentation

@submarcos submarcos pinned this issue Feb 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📝 Documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants