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.
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
Built Distribution
Hashes for djangocms_leaflet-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18e10f1f09605a1d8bf404e0bacd31c933510059deafa49d3cb2904cc3edafb2 |
|
MD5 | 67c2997d75c35d989871c13bdc155b4c |
|
BLAKE2b-256 | 87b2a2a69e90b5e44bc82eb6415e68fa66f94cb7f8b5f40e9daa7780f133d2a7 |