🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

folium-arrow-icon

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

folium-arrow-icon

Simple arrow (vector/quiver) icon for folium

0.1.3
Source
PyPI
Maintainers
1

Simple arrow (vector/quiver) icon for folium

PyPI - Version Python Version from PEP 621 TOML Read the Docs PyPI - License

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

Keywords

arrow

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts