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
Close
Hashes for lektor-leaflet-geojson-0.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89357224f6167b19a995b68c01d740d2d802dc0438b7cf1a6e6bbacbe5a4fb12 |
|
MD5 | 8748c6df51d1ab4870051d578561f0a5 |
|
BLAKE2b-256 | 30ad7784a976a9ca2f44bb743d9a65a736029be02e74ce00e87e5290da648a99 |
Close
Hashes for lektor_leaflet_geojson-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b605be0c610b357cd129604fc450ab7a01741f7927bd78e94cc33c68a900873 |
|
MD5 | 27e6408424aa8aeee8849ba2b99534ba |
|
BLAKE2b-256 | 37dad55769885d24ec62eeb40efc29ffdea9b9232d65f1296a55ff25916722ff |