Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/simonw/datasette-basemap
A basemap for Datasette and datasette-leaflet
https://github.com/simonw/datasette-basemap
datasette datasette-io datasette-plugin mbtiles openstreetmap
Last synced: 4 months ago
JSON representation
A basemap for Datasette and datasette-leaflet
- Host: GitHub
- URL: https://github.com/simonw/datasette-basemap
- Owner: simonw
- Created: 2021-02-02T01:49:09.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-03-11T16:44:43.000Z (12 months ago)
- Last Synced: 2024-10-06T20:19:11.313Z (5 months ago)
- Topics: datasette, datasette-io, datasette-plugin, mbtiles, openstreetmap
- Language: Python
- Homepage: https://datasette.io/plugins/datasette-basemap
- Size: 44.9 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# datasette-basemap
[](https://pypi.org/project/datasette-basemap/)
[](https://github.com/simonw/datasette-basemap/releases)
[](https://github.com/simonw/datasette-basemap/actions/workflows/test.yml)
[](https://github.com/simonw/datasette-basemap/blob/main/LICENSE)A basemap for Datasette and datasette-leaflet
## Installation
Install this plugin in the same environment as Datasette.
$ datasette install datasette-basemap
## Usage
This plugin will make a `basemap` database available containing OpenStreetMap tiles for zoom levels 0-6 in the [mbtiles](https://github.com/mapbox/mbtiles-spec) format. It is designed for use with the [datasette-tiles](https://datasette.io/plugins/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](https://opendatacommons.org/licenses/odbl/). See [this page](https://www.openstreetmap.org/copyright) for more details.
## Development
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd datasette-basemap
python3 -mvenv venv
source venv/bin/activateOr if you are using `pipenv`:
pipenv shell
Now install the dependencies and tests:
pip install -e '.[test]'
To run the tests:
pytest