Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/brunosalerno/mbtiles-mapper
A mbtiles mapper
https://github.com/brunosalerno/mbtiles-mapper
Last synced: 1 day ago
JSON representation
A mbtiles mapper
- Host: GitHub
- URL: https://github.com/brunosalerno/mbtiles-mapper
- Owner: BrunoSalerno
- License: mit
- Created: 2014-10-04T17:55:08.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-02-20T15:59:42.000Z (over 9 years ago)
- Last Synced: 2024-06-11T19:40:39.189Z (5 months ago)
- Language: JavaScript
- Homepage:
- Size: 359 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
mbtiles-mapper
==============A client-side [mbtiles](https://github.com/mapbox/mbtiles-spec) mapper for mbtiles uncompressed file.
Supports utfgrid and reads all metadata created by [Tilemil](https://www.mapbox.com/tilemill/).Usage
=====* Git clone this repository
* Uncompress your mbtiles file using [mbutil](https://github.com/mapbox/mbutil) with the `--grid_callback=""` option:
```
mb-util --grid_callback="" your_file.mbtiles destination_folder
```* Modify `tiles_path` option in `config.json` with the destination folder path
* Start a static server to serve your map. For example, with [http-server](https://www.npmjs.org/package/http-server), go to your map directory and run:
```
http-server ./
```* So you have your map in `http://localhost:8080`
Options
-------Tiles path can be specified with params: `?tiles=path_to_tiles`.
Options can be modified in `config.json`. The `use_mbtiles_legend` option allows you to toggle between Tilemil generated legend and the one
created by you in index.html. Path specified in `tiles_path` option is loaded by default if `tiles` param is not present.Libraries
=========In the `lib` folder there are the needed libraries:
* [Jquery](http://jquery.com/)
* [Leaflet](https://github.com/Leaflet/Leaflet)
* [utfgrid.leaflet](https://github.com/danzel/Leaflet.utfgrid)License
=======
MIT