Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/deyihu/maptalks-MBTileLayer
A maptalks.js plugin to load tilesets in .mbtiles format. https://deyihu.github.io/src/maptalks-MBTileLayer/examples/
https://github.com/deyihu/maptalks-MBTileLayer
Last synced: 3 months ago
JSON representation
A maptalks.js plugin to load tilesets in .mbtiles format. https://deyihu.github.io/src/maptalks-MBTileLayer/examples/
- Host: GitHub
- URL: https://github.com/deyihu/maptalks-MBTileLayer
- Owner: deyihu
- License: bsd-3-clause
- Created: 2018-03-17T12:22:53.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-11-12T06:49:55.000Z (almost 5 years ago)
- Last Synced: 2024-07-14T05:34:32.742Z (4 months ago)
- Language: JavaScript
- Homepage:
- Size: 7.21 MB
- Stars: 9
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
maptalks Loads .mbtiles tilesets.
inspired by https://gitlab.com/IvanSanchez/Leaflet.TileLayer.MBTiles
![](gallery.png)
[demo](https://deyihu.github.io/src/maptalks-MBTileLayer/examples/)
how to use?
var baseLayer = new maptalks.MBTileLayer('base',{
dbUrl:'./countries-raster.mbtiles',
attribution: '© MapBox Maps'
});
var map = new maptalks.Map('map', {
center: [0,0],
zoom: 0,
baseLayer : baseLayer
});