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.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87bc2bb7d8a30bc0ade6cee5902b9da5b489f87252d31d93ac673936b6c0d6b8 |
|
MD5 | 514b467cff27980a9a40843eb68bbc26 |
|
BLAKE2b-256 | 06616fda368cb86963bb1ac9ae53810c47cdf5fa1dcfb905bdd969c1fc60c5e3 |
Close
Hashes for lektor_leaflet_geojson-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15841efc08ff9739bdc5ead36df5ebf5e911469975315368991e120ce53b46b6 |
|
MD5 | a751ad6bbfcc1c0ef810e7bb75ca2a4b |
|
BLAKE2b-256 | 1acdc811be9a682eff7db53d9cdf96b7fa01358e8ea9b5bb81efe7fd0d6b8ea0 |