Simple Django application to include LeafletJS map and display GPX file
Project description
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
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
django-leaflet-gpx-0.1.2.tar.gz
(137.8 kB
view hashes)
Built Distribution
Close
Hashes for django_leaflet_gpx-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca3fe8939698fd8a7d5124c4886e0fcca481394bceb18c50e628be52c28bd3e4 |
|
MD5 | 9785a18971f267e9a9ad8035a2f10e88 |
|
BLAKE2b-256 | 35415ceed815ae9039833ef08f5bf593f79465783a0a826880884e64a70ffae4 |