lektor-leaflet-geojson
Lektor template filter to convert geojson objects to Leaflet maps
Installation
pip install lektor-leaflet-geojson
Usage
Import the leaflet JS and CSS. You can skip this step if you are managing Leaflet yourself (e.g: with NPM)
{{ import_leaflet('1.7.1') }} {# using a specified version #}
{{ import_leaflet() }} {# default to "latest" #}
The |map() filter can be used to render a GeoJSON feature on a map. Pass some inline CSS to style the map div.
{{
'{"type": "Feature", "geometry": {"type": "Point", "coordinates": [125.6, 10.1]}}' | map("height: 300px; width: 300px;")
}}
Metadata
Release files for lektor-leaflet-geojson 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| lektor-leaflet-geojson-0.2.0.tar.gz | 3.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| lektor_leaflet_geojson-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.5 kB
Release files / lektor-leaflet-geojson-0.2.0.tar.gz
| Download URL | lektor-leaflet-geojson-0.2.0.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
89357224f6167b19a995b68c01d740d2d802dc0438b7cf1a6e6bbacbe5a4fb12
|
|
BLAKE2b-256 checksum How to use checksums |
30ad7784a976a9ca2f44bb743d9a65a736029be02e74ce00e87e5290da648a99
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.11 CPython/3.8.10 Linux/5.4.0-88-generic
|
Release files / lektor_leaflet_geojson-0.2.0-py3-none-any.whl
| Download URL | lektor_leaflet_geojson-0.2.0-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5b605be0c610b357cd129604fc450ab7a01741f7927bd78e94cc33c68a900873
|
|
BLAKE2b-256 checksum How to use checksums |
37dad55769885d24ec62eeb40efc29ffdea9b9232d65f1296a55ff25916722ff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.11 CPython/3.8.10 Linux/5.4.0-88-generic
|