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
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file djangocms_leaflet-0.0.6.dev3.tar.gz.
File metadata
- Download URL: djangocms_leaflet-0.0.6.dev3.tar.gz
- Upload date:
- Size: 138.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.28.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5b4941eeee0e97a341b0515b35a92e544e1ab28b6bedaf39530aa65d04cd9199
|
|
| MD5 |
ec3d7208e72e5a60b428645dbe8e8bcb
|
|
| BLAKE2b-256 |
7550901594bd36c04406a21a127b2aaa543651f9bfa67d8d7b845a8f2db3697f
|
File details
Details for the file djangocms_leaflet-0.0.6.dev3-py3-none-any.whl.
File metadata
- Download URL: djangocms_leaflet-0.0.6.dev3-py3-none-any.whl
- Upload date:
- Size: 132.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.28.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d029c89f40b67db2e9a5028df08b96ec476b408418ad4df6fc2489297efdd23
|
|
| MD5 |
4f6ecb1be7be5650dc36ee5eb0120a84
|
|
| BLAKE2b-256 |
4fd29388c17114f9dbec699faa03f21b7eb7e1f143b6697c290f44d14e7d4e28
|