# Simple arrow (vector/quiver) icon for folium
[![PyPI - Version](https://img.shields.io/pypi/v/folium-arrow-icon?logo=PyPI&label=PyPI)](https://pypi.org/project/folium-arrow-icon/)
![Python Version from PEP 621 TOML](https://img.shields.io/python/required-version-toml?logo=Python&label=Python&tomlFilePath=https%3A%2F%2Fraw.githubusercontent.com%2Fpaqira%2Ffolium-arrow-icon%2Fmain%2Fpyproject.toml)
[![Read the Docs](https://img.shields.io/readthedocs/folium-arrow-icon?logo=readthedocs)](https://folium-arrow-icon.readthedocs.io)
![PyPI - License](https://img.shields.io/pypi/l/folium-arrow-icon)
This package provides simple arrow (vector/quiver) icon for the [folium](https://pypi.org/project/folium/) package.
The size of the icon does not change as zoom level changes.
It is useful for displaying vector field.
```python
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](http://folium-arrow-icon.readthedocs.io/) for more example.
You can install `folium-arrow-icon` from PyPI:
```shell
pip install folium-arrow-icon
```
## Licence
MIT
Raw data
{
"_id": null,
"home_page": null,
"name": "folium-arrow-icon",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": "arrow, folium, icon, quiver, vector field",
"author": null,
"author_email": "Kentaro Tatsumi <paqira.2019@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/5e/07/74018f985b3ee7c2b05919c7c09f95f9e514ca9686bb4299a8ed01eb040e/folium_arrow_icon-0.1.3.tar.gz",
"platform": null,
"description": "# Simple arrow (vector/quiver) icon for folium\n\n[![PyPI - Version](https://img.shields.io/pypi/v/folium-arrow-icon?logo=PyPI&label=PyPI)](https://pypi.org/project/folium-arrow-icon/)\n![Python Version from PEP 621 TOML](https://img.shields.io/python/required-version-toml?logo=Python&label=Python&tomlFilePath=https%3A%2F%2Fraw.githubusercontent.com%2Fpaqira%2Ffolium-arrow-icon%2Fmain%2Fpyproject.toml)\n[![Read the Docs](https://img.shields.io/readthedocs/folium-arrow-icon?logo=readthedocs)](https://folium-arrow-icon.readthedocs.io)\n![PyPI - License](https://img.shields.io/pypi/l/folium-arrow-icon)\n\nThis package provides simple arrow (vector/quiver) icon for the [folium](https://pypi.org/project/folium/) package.\n\nThe size of the icon does not change as zoom level changes.\nIt is useful for displaying vector field.\n\n```python\nimport math\n\nimport folium\nfrom folium_arrow_icon import ArrowIcon\n\nm = folium.Map(\n location=[40.78322, -73.96551],\n zoom_start=14,\n)\n\nfolium.Marker(\n [40.78322, -73.96551],\n # by length and angle\n icon=ArrowIcon(100, math.pi / 2)\n).add_to(m)\n\nfolium.Marker(\n [40.78322, -73.96551],\n # by components of latitude and longitude directions\n icon=ArrowIcon.from_comp([100, -50])\n).add_to(m)\n\nm.save(\"sample.html\")\n```\n\nSee [document](http://folium-arrow-icon.readthedocs.io/) for more example.\n\nYou can install `folium-arrow-icon` from PyPI:\n\n```shell\npip install folium-arrow-icon\n```\n\n## Licence\n\nMIT\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Simple arrow (vector/quiver) icon for folium",
"version": "0.1.3",
"project_urls": {
"Documentation": "https://folium-arrow-icon.readthedocs.io",
"Issues": "https://github.com/paqira/folium-arrow-icon/issues",
"Source": "https://github.com/paqira/folium-arrow-icon"
},
"split_keywords": [
"arrow",
" folium",
" icon",
" quiver",
" vector field"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "1c3bc6f041351eb2be294984819cfaccd3e43c8f8f274bcb5d017535f0cdf654",
"md5": "c5edf49703e1320b85821c03fe76f7a0",
"sha256": "0aa78bf0ac0ff4c5e59265e3647758ee3ab1d2a83b4285679206f8215f5eb195"
},
"downloads": -1,
"filename": "folium_arrow_icon-0.1.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "c5edf49703e1320b85821c03fe76f7a0",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 5106,
"upload_time": "2024-10-27T15:35:18",
"upload_time_iso_8601": "2024-10-27T15:35:18.136022Z",
"url": "https://files.pythonhosted.org/packages/1c/3b/c6f041351eb2be294984819cfaccd3e43c8f8f274bcb5d017535f0cdf654/folium_arrow_icon-0.1.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "5e0774018f985b3ee7c2b05919c7c09f95f9e514ca9686bb4299a8ed01eb040e",
"md5": "f6d25117261814a08a72f239f53806e8",
"sha256": "85323fa7a269173f631b7399341bb9e1c2e386a9ec298694882bdb5ff9958deb"
},
"downloads": -1,
"filename": "folium_arrow_icon-0.1.3.tar.gz",
"has_sig": false,
"md5_digest": "f6d25117261814a08a72f239f53806e8",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 37107,
"upload_time": "2024-10-27T15:35:20",
"upload_time_iso_8601": "2024-10-27T15:35:20.581759Z",
"url": "https://files.pythonhosted.org/packages/5e/07/74018f985b3ee7c2b05919c7c09f95f9e514ca9686bb4299a8ed01eb040e/folium_arrow_icon-0.1.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-10-27 15:35:20",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "paqira",
"github_project": "folium-arrow-icon",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "folium-arrow-icon"
}