项目作者: simonw

项目描述 :
A basemap for Datasette and datasette-leaflet
高级语言: Python
项目地址: git://github.com/simonw/datasette-basemap.git
创建时间: 2021-02-02T01:49:09Z
项目社区:https://github.com/simonw/datasette-basemap

开源协议:

下载


datasette-basemap

PyPI
Changelog
Test
License

A basemap for Datasette and datasette-leaflet

Installation

Install this plugin in the same environment as Datasette.

  1. $ datasette install datasette-basemap

Usage

This plugin will make a basemap database available containing OpenStreetMap tiles for zoom levels 0-6 in the mbtiles format. It is designed for use with the datasette-tiles tile server plugin.

Demo

You can preview this map at https://datasette-tiles-demo.datasette.io/-/tiles/basemap and browse the database directly at https://datasette-tiles-demo.datasette.io/basemap

License

The data bundled with this package is © OpenStreetMap contributors, licensed under the Open Data Commons Open Database License. See this page for more details.

Development

To set up this plugin locally, first checkout the code. Then create a new virtual environment:

  1. cd datasette-basemap
  2. python3 -mvenv venv
  3. source venv/bin/activate

Or if you are using pipenv:

  1. pipenv shell

Now install the dependencies and tests:

  1. pip install -e '.[test]'

To run the tests:

  1. pytest