Lektor template filter to convert geojson objects to Leaflet maps
Project description
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;")
}}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lektor-leaflet-geojson-0.2.0.tar.gz.
File metadata
- Download URL: lektor-leaflet-geojson-0.2.0.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.11 CPython/3.8.10 Linux/5.4.0-88-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
89357224f6167b19a995b68c01d740d2d802dc0438b7cf1a6e6bbacbe5a4fb12
|
|
| MD5 |
8748c6df51d1ab4870051d578561f0a5
|
|
| BLAKE2b-256 |
30ad7784a976a9ca2f44bb743d9a65a736029be02e74ce00e87e5290da648a99
|
File details
Details for the file lektor_leaflet_geojson-0.2.0-py3-none-any.whl.
File metadata
- Download URL: lektor_leaflet_geojson-0.2.0-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.11 CPython/3.8.10 Linux/5.4.0-88-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5b605be0c610b357cd129604fc450ab7a01741f7927bd78e94cc33c68a900873
|
|
| MD5 |
27e6408424aa8aeee8849ba2b99534ba
|
|
| BLAKE2b-256 |
37dad55769885d24ec62eeb40efc29ffdea9b9232d65f1296a55ff25916722ff
|