django-leaflet-gpx-0.1.3
توضیحات
Simple Django application to include LeafletJS map and display GPX file
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | django-leaflet-gpx-0.1.3 |
| نام | django-leaflet-gpx |
| نسخه کتابخانه | 0.1.3 |
| نگهدارنده | ['Aloha68'] |
| ایمیل نگهدارنده | ['dev@aloha.im'] |
| نویسنده | Aloha68 |
| ایمیل نویسنده | dev@aloha.im |
| آدرس صفحه اصلی | https://gitlab.com/aloha68/django-leaflet-gpx |
| آدرس اینترنتی | https://pypi.org/project/django-leaflet-gpx/ |
| مجوز | ISC |
Simple Django application to include LeafletJS map and display GPX file.
Not documented yet :-/
## Configuration
This is an example of custom configuration
import os
STATIC_URL = '/static'
LEAFLET_GPX_ICONS = {
'markerIcon': {
'iconUrl': os.path.join(STATIC_URL, 'icons/my-custom-marker.png'),
'iconSize': [32, 32],
'iconAnchor': [5, 31],
}
}
### LEAFLET_GPX_ICONS
There are three editable icons:
- **markerIcon**: markers points
- **startIcon**: GPX start point
- **endIcon**: GPX end point
The icon options are the same as those for creating an icon in the Leaflet-JS library.
Here is a link to the documentation: <https://leafletjs.com/reference-1.5.0.html#icon>
نیازمندی
| مقدار | نام |
|---|---|
| >=2.2,<3.0 | django |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.5,<4.0 | Python |
نحوه نصب
نصب پکیج whl django-leaflet-gpx-0.1.3:
pip install django-leaflet-gpx-0.1.3.whl
نصب پکیج tar.gz django-leaflet-gpx-0.1.3:
pip install django-leaflet-gpx-0.1.3.tar.gz