Simple Django application to include LeafletJS map and display GPX file
pip install django-leaflet-gpx==0.1.3
Simple Django application to include LeafletJS map and display GPX file.
Not documented yet :-/
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],
}
}
There are three editable icons:
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