Skip to main content

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.0.tar.gz (4.8 kB view hashes)

Uploaded Source

Built Distribution

folium_arrow_icon-0.1.0-py3-none-any.whl (5.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page