Skip to main content

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.3.tar.gz (137.9 kB view details)

Uploaded Source

Built Distribution

django_leaflet_gpx-0.1.3-py3-none-any.whl (143.4 kB view details)

Uploaded Python 3

File details

Details for the file django-leaflet-gpx-0.1.3.tar.gz.

File metadata

  • Download URL: django-leaflet-gpx-0.1.3.tar.gz
  • Upload date:
  • Size: 137.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.17 CPython/3.7.3 Linux/4.19.66-v7l+

File hashes

Hashes for django-leaflet-gpx-0.1.3.tar.gz
Algorithm Hash digest
SHA256 5d10d46b33745f22c4dd662bb19fdd240ee82af984a5a8cec2f603c660b3c4d3
MD5 a93dc3c2defb0d771dededa0a7899345
BLAKE2b-256 4238029162ce9f6269718f470ff5c4a4170fae672c0606074134ade247ad61c5

See more details on using hashes here.

File details

Details for the file django_leaflet_gpx-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for django_leaflet_gpx-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d563b094d1615e979afc0084b956c5242b4c0a927e689354e2d053871a3a9f2a
MD5 3572eda8079e00752d3a134663f229db
BLAKE2b-256 9e191bec5a7452dabc6dbdc887da35395f08a2c9dbce12b1302a5d1f1bf372a4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page