Skip to main content

Leaflet widget for trame

Project description

trame-leaflet extends trame widgets with components from vue-leaflet.

This package is under the same MIT License as Vue-Leaflet which that library embeds.

Leaflet integration in trame allows you to create map views with useful widgets.

How to use it?

Using the Python library

# for vue2
from trame.widgets import leaflet2 as leaflet

# for vue3
from trame.widgets import leaflet3 as leaflet

with leaflet.LMap(zoom=("zoom", 15), center=("center", [51.505, -0.159])):
    leaflet.LTileLayer(url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png")
    leaflet.LMarker(lat_lng=("markerLatLng", [51.504, -0.159]))

JavaScript dependency

This Python package bundle the leaflet@1.8.0 and vue2-leaflet@2.7.1 JavaScript libraries. For vue3 we also bundle @vue-leaflet/vue-leaflet@0.10.1 JavaScript librarie. If you would like us to upgrade it, please reach out.

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

trame_leaflet-1.2.4.tar.gz (938.7 kB view details)

Uploaded Source

Built Distribution

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

trame_leaflet-1.2.4-py3-none-any.whl (950.7 kB view details)

Uploaded Python 3

File details

Details for the file trame_leaflet-1.2.4.tar.gz.

File metadata

  • Download URL: trame_leaflet-1.2.4.tar.gz
  • Upload date:
  • Size: 938.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for trame_leaflet-1.2.4.tar.gz
Algorithm Hash digest
SHA256 2b737f670e9d57dbec8609ea9c2007c0ffa2361338ec8e355706e4bbb94ba30a
MD5 ce7270bf237d2912eb68bab542112525
BLAKE2b-256 012162e130d8308f6054031bee9aa3b71c1404184d5f998d1914395a3e3be9a4

See more details on using hashes here.

Provenance

The following attestation bundles were made for trame_leaflet-1.2.4.tar.gz:

Publisher: test_and_release.yml on Kitware/trame-leaflet

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file trame_leaflet-1.2.4-py3-none-any.whl.

File metadata

  • Download URL: trame_leaflet-1.2.4-py3-none-any.whl
  • Upload date:
  • Size: 950.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for trame_leaflet-1.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d81ca583433eb2f47e719b73631ac8e9e41f2595feba7e5c1ddbba417e596ffd
MD5 f2ebd6eb143bf40e738958033649d52e
BLAKE2b-256 e030dc47693d378129962907ca04eefe07a375bf9aa8029f945bf8308f3efa53

See more details on using hashes here.

Provenance

The following attestation bundles were made for trame_leaflet-1.2.4-py3-none-any.whl:

Publisher: test_and_release.yml on Kitware/trame-leaflet

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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