GithubHelp home page GithubHelp logo

robertsasak / mbtiles-serve Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 1.0 68 KB

Fast HTTP server serving tiles directly from mbtiles

License: MIT License

JavaScript 16.90% HTML 23.40% TypeScript 59.69%

mbtiles-serve's Introduction

mbtiles-serve

Fast HTTP server serving map tiles directly from a mbtiles file. It is built on the mapbox node-mbtiles library without any other dependencies (apart cli meow).

Installation

yarn add mbtiles-serve
# or
npm install mbtiles-serve

Usage

mbtiles-serve norway.mbtiles

Once is server running you can request tiles from http://localhost:8080?x=0&y=0&z=0 For your convinience there is a simple Leaflet map server at the root so you can easily preview map tiles. It can be found at http://localhost:8080

Development

PRs are more than welcome. Start by cloning your fork and installing all the dependencies with

yarn

You can run it directly from the repo by

yarn start input.mbtiles --port 3000

Once you are happy with you changes you can try it globaly with

npm global install .

Publishing

npx np

mbtiles-serve's People

Contributors

robertsasak avatar

Stargazers

Steve Bennett avatar Anurag Vohra avatar  avatar

Watchers

 avatar James Cloos avatar

Forkers

anuragvohraec

mbtiles-serve's Issues

Do it support vector tiles

hi Robert,

I tried this with raster based mbtiles and its working.
But for vector mbtiles, it seems to be not working. Just getting empty tiles.

Do it supports vector tiles or only raster tiles.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.