Skip to main content

django CMS plug-ins for the JavaScript map library Leaflet

Project description

djangocms-leaflet

This app provides plug-ins for the JavaScript map library Leaflet.

PyPI - Version PyPI - Python Version


Table of Contents

Installation

pip install djangocms-leaflet

or add djangocms-leaflet to the dependencies of your project, e. g. in pyproject.toml:

dependencies = [
    # …
    'djangocms-leaflet',
    # …
]

Add it to INSTALLED_APPS in the settings::

INSTALLED_APPS: list[str] = [
    # …
    'djangocms_leaflet',
    # …
]

Usage

Add a map plugin to a placeholder and fill in the form. Add markers as sub plugins if needed. In the template src/djangocms_leaflet/templates/djangocms_leaflet/map.html the tile server of the OpenStreetMap website is defined. Make sure you comply with their usage policy or use another tile server by replacing the tile server’s URL.

You can either specify latitude and longitude of the map or marker or enter a search term. If no coordinates are entered, they will be searched with Nominatim and the first hit in the result list location will be used as coordinates.

License

djangocms-leaflet is distributed under the terms of the MIT license.

Integrated library

Name Description License
Leaflet JavaScript library for maps BSD-2-Clause license

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

djangocms_leaflet-0.0.6.dev1.tar.gz (138.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

djangocms_leaflet-0.0.6.dev1-py3-none-any.whl (131.9 kB view details)

Uploaded Python 3

File details

Details for the file djangocms_leaflet-0.0.6.dev1.tar.gz.

File metadata

  • Download URL: djangocms_leaflet-0.0.6.dev1.tar.gz
  • Upload date:
  • Size: 138.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.28.1

File hashes

Hashes for djangocms_leaflet-0.0.6.dev1.tar.gz
Algorithm Hash digest
SHA256 0311e93ec772e00c578b5efb866da09c4fdbb83284d15fbf5ef143af0ef2d220
MD5 8dca437d49293c8e36b539979035764e
BLAKE2b-256 dcf0a54779ceb87ce7a8d7fd14f7f34deaa8e2c8b5bed3afa6881d45e69193f0

See more details on using hashes here.

File details

Details for the file djangocms_leaflet-0.0.6.dev1-py3-none-any.whl.

File metadata

File hashes

Hashes for djangocms_leaflet-0.0.6.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 36ab9ee8883f35a9f261405ae22d35f8ab1ea28f6d20d86b0e1c8d2b895eaa2d
MD5 6a7794d0d55701896dd151ef4ff30d21
BLAKE2b-256 1d9c2127ae0e0eb25ff9cc71fda7c3c724e69bd6be253f1c9319c7ba57e17f9f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page