Skip to main content

Simple arrow (vector/quiver) icon for folium

Project description

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

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.3.tar.gz (37.1 kB view details)

Uploaded Source

Built Distribution

folium_arrow_icon-0.1.3-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file folium_arrow_icon-0.1.3.tar.gz.

File metadata

  • Download URL: folium_arrow_icon-0.1.3.tar.gz
  • Upload date:
  • Size: 37.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.27.2

File hashes

Hashes for folium_arrow_icon-0.1.3.tar.gz
Algorithm Hash digest
SHA256 85323fa7a269173f631b7399341bb9e1c2e386a9ec298694882bdb5ff9958deb
MD5 f6d25117261814a08a72f239f53806e8
BLAKE2b-256 5e0774018f985b3ee7c2b05919c7c09f95f9e514ca9686bb4299a8ed01eb040e

See more details on using hashes here.

File details

Details for the file folium_arrow_icon-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for folium_arrow_icon-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0aa78bf0ac0ff4c5e59265e3647758ee3ab1d2a83b4285679206f8215f5eb195
MD5 c5edf49703e1320b85821c03fe76f7a0
BLAKE2b-256 1c3bc6f041351eb2be294984819cfaccd3e43c8f8f274bcb5d017535f0cdf654

See more details on using hashes here.

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