This is an exmaple project of the static tile server with the GitHub Pages.
https://madefor.github.io/static-tile-server/
- Tile images are generated from
*.mbtiles
with mb-util. - Map and tiles are deployed with Travis CI automatically.
$ git clone [email protected]:miya0001/tile-server.git
$ cd tile-server
$ pip install mbutil
$ npm install
$ npm run Build
$ npm start
You can use window.MAP
to customize the map object of the leaflet.
<script type="text/javascript">
var center = MAP.meta.center.split( /,/ );
L.marker( [ center[1], center[0] ] ).addTo( MAP );
</script>
Map.meta
is the meta data from the .mbtiles
.