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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: django-leaflet-gpx-0.1.2.tar.gz
  • Upload date:
  • Size: 137.8 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.2.tar.gz
Algorithm Hash digest
SHA256 a65e5da80042becb9ca95108d4f2552940f06da2c2915d855594ecbdbcf2d0f9
MD5 a614199ffc6e2cdbbd686f544d5b6e11
BLAKE2b-256 1ecc1e92ae686d36100b0c996094e30f33644dddee16338d838c47e422307991

See more details on using hashes here.

File details

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

File metadata

  • Download URL: django_leaflet_gpx-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 143.4 kB
  • Tags: Python 3
  • 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ca3fe8939698fd8a7d5124c4886e0fcca481394bceb18c50e628be52c28bd3e4
MD5 9785a18971f267e9a9ad8035a2f10e88
BLAKE2b-256 35415ceed815ae9039833ef08f5bf593f79465783a0a826880884e64a70ffae4

See more details on using hashes here.

Supported by

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