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
folium_arrow_icon-0.1.2.tar.gz
(36.9 kB
view details)
Built Distribution
File details
Details for the file folium_arrow_icon-0.1.2.tar.gz
.
File metadata
- Download URL: folium_arrow_icon-0.1.2.tar.gz
- Upload date:
- Size: 36.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.27.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40dc293736eace0bafb32c872b98719a621aaec4833811954c3fe683a317d9fc |
|
MD5 | 23c77b3b00f7a13901e4d0c5657283b0 |
|
BLAKE2b-256 | c489af91c05cc66acc9f392dc1b64410b043e7c5a1ca510c0b6a8314ac686e65 |
File details
Details for the file folium_arrow_icon-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: folium_arrow_icon-0.1.2-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 | a1cc556c4da87ef151132943de65720c31bce513108d06a08b2d8e1e56b9e33c |
|
MD5 | 2ab64aeb846c5b08275e1926418a5235 |
|
BLAKE2b-256 | 6e22667f38d040f7f9b60d7381ed954d8cf5512927c96542c0c35beff6a871f8 |