Skip to main content

lektor-leaflet-geojson

Run tests codecov PyPI Version License Python Compatibility Code style: black

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)

Source distribution for lektor-leaflet-geojson 0.2.0
File Size Uploaded
lektor-leaflet-geojson-0.2.0.tar.gz 3.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for lektor-leaflet-geojson 0.2.0
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page