Simple arrow (vector/quiver) icon for folium
Project description
Simple arrow (vector/quiver) icon for folium
This package provides simple arrow (vector/quiver) icon for the folium package.
The size of the icon does not change as zoom level changes. It is useful for displaying vector field.
import math
import folium
from folium_arrow_icon import ArrowIcon
m = folium.Map(
location=[40.78322, -73.96551],
zoom_start=14,
)
folium.Marker(
[40.78322, -73.96551],
# by length and angle
icon=ArrowIcon(100, math.pi / 2)
).add_to(m)
folium.Marker(
[40.78322, -73.96551],
# by components of latitude and longitude directions
icon=ArrowIcon.from_comp([100, -50])
).add_to(m)
m.save("sample.html")
See document for more example.
You can install folium-arrow-icon from PyPI:
pip install folium-arrow-icon
Licence
MIT
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file folium_arrow_icon-0.1.3.tar.gz.
File metadata
- Download URL: folium_arrow_icon-0.1.3.tar.gz
- Upload date:
- Size: 37.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.27.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
85323fa7a269173f631b7399341bb9e1c2e386a9ec298694882bdb5ff9958deb
|
|
| MD5 |
f6d25117261814a08a72f239f53806e8
|
|
| BLAKE2b-256 |
5e0774018f985b3ee7c2b05919c7c09f95f9e514ca9686bb4299a8ed01eb040e
|
File details
Details for the file folium_arrow_icon-0.1.3-py3-none-any.whl.
File metadata
- Download URL: folium_arrow_icon-0.1.3-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.27.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0aa78bf0ac0ff4c5e59265e3647758ee3ab1d2a83b4285679206f8215f5eb195
|
|
| MD5 |
c5edf49703e1320b85821c03fe76f7a0
|
|
| BLAKE2b-256 |
1c3bc6f041351eb2be294984819cfaccd3e43c8f8f274bcb5d017535f0cdf654
|