-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
How to load local tiles? #7390
Comments
@PBrockmann Thank you for using Mapbox GL. The For future "how do I" questions like this, please refer to our help documentation, and if you can't find the answer there, contact support. This issue tracker is for reporting bugs and feature requests. Thank you! |
When you a post an issue on your project, you have a template asking you if you want to |
I have a set of tiles created from geoTIFF files with gdal2tiles.py. They are saved locally (no server).
How can I load them in a map ?
With Leaflet, I can do with a:
myLayer = L.tileLayer('path/to/tiles/{z}/{x}/{y}.png', {tms: true, opacity: 0.7, attribution: ""});
What is the syntax with mapbox-gl-js ?
map.addLayer({ 'id': 'wms-test-layer', 'type': 'raster', 'source': { 'type': 'raster', 'tiles': [ 'xxxxxxx' ], 'tileSize': 256 } });
From https://www.mapbox.com/mapbox-gl-js/example/wms/
Thanks
The text was updated successfully, but these errors were encountered: