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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
folium_arrow_icon-0.1.1.tar.gz
(36.5 kB
view hashes)
Built Distribution
Close
Hashes for folium_arrow_icon-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8bbf52ab2de8a3cfc228215c292d0b68310a23f6d665cf922cd568dce1fe76ea |
|
MD5 | e4fd932cf7e4710e20f08dbafe1b7f3b |
|
BLAKE2b-256 | 33fb98490c986c47d36552e3ea7d9912fe0260b9b4695910a4d5cd38d995ee32 |