digidem / mapeo-map-server

Offline map style and tile server
MIT License
5 stars 2 forks source link
maps mbtiles offline-first tiles

Mapeo Map Server

Build Status

An in-progress offline map style and tile server for Mapeo.

npm install @mapeo/map-server

⚠️ This is alpha software. No guarantees can be made about the stability of the API at the moment, so proceed with caution. 😄

Features

Usage

The default export is a function for creating a map server instance. Basic usage is as follows:

// If you're using TypeScript, you may want to use one of the following import syntaxes to get type definitions:
// - `require('@mapeo/map-server').default`
// - `import createMapServer from '@mapeo/map-server'
const createMapServer = require('@mapeo/map-server')

// Create the server instance
const mapServer = createMapServer({ storagePath: './map-server-example.db' })

// Run the server!
await mapServer.listen(3000)

createServer(opts): MapServer

Creates the map server instance

API Documentation

API documentation is available in API.md.

Technical Details

Developing

Some notes before working on this locally:

License

MIT