https://github.com/kitware/trame-leaflet
https://github.com/kitware/trame-leaflet
trame trame-maintenance-program
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/kitware/trame-leaflet
- Owner: Kitware
- License: mit
- Created: 2022-05-11T20:03:28.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2025-03-09T20:00:34.000Z (over 1 year ago)
- Last Synced: 2025-11-11T03:28:22.027Z (7 months ago)
- Topics: trame, trame-maintenance-program
- Language: Python
- Homepage:
- Size: 327 KB
- Stars: 4
- Watchers: 6
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
.. |pypi_download| image:: https://img.shields.io/pypi/dm/trame-leaflet
trame-leaflet |pypi_download|
===========================================================================
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
.. code-block:: python
# 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 `_.