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

Uploaded Source

Built Distribution

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

Uploaded Python 3

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

Hashes for folium_arrow_icon-0.1.2.tar.gz
Algorithm Hash digest
SHA256 40dc293736eace0bafb32c872b98719a621aaec4833811954c3fe683a317d9fc
MD5 23c77b3b00f7a13901e4d0c5657283b0
BLAKE2b-256 c489af91c05cc66acc9f392dc1b64410b043e7c5a1ca510c0b6a8314ac686e65

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for folium_arrow_icon-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a1cc556c4da87ef151132943de65720c31bce513108d06a08b2d8e1e56b9e33c
MD5 2ab64aeb846c5b08275e1926418a5235
BLAKE2b-256 6e22667f38d040f7f9b60d7381ed954d8cf5512927c96542c0c35beff6a871f8

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