معرفی شرکت ها


folium-vectorgrid-0.1.1


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

VectorGrid plugin for folium
ویژگی مقدار
سیستم عامل -
نام فایل folium-vectorgrid-0.1.1
نام folium-vectorgrid
نسخه کتابخانه 0.1.1
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Benjamin Ramser
ایمیل نویسنده ahoi@ipwnd.pw
آدرس صفحه اصلی -
آدرس اینترنتی https://pypi.org/project/folium-vectorgrid/
مجوز MIT
<br /> <p align="center"> <h3 align="center">Folium-VectorGrid</h3> <p align="center"> VectorGrid.protobuf plugin for Folium <br /> <a href="https://github.com/iwpnd/folium-vector/issues">Report Bug</a> · <a href="https://github.com/iwpnd/folium-vector/issues">Request Feature</a> </p> </p> <!-- TABLE OF CONTENTS --> <details open="open"> <summary><h2 style="display: inline-block">Table of Contents</h2></summary> <ol> <li> <a href="#about-the-project">About The Project</a> <ul> <li><a href="#built-with">Built With</a></li> </ul> </li> <li> <a href="#getting-started">Getting Started</a> <ul> <li><a href="#installation">Installation</a></li> </ul> </li> <li><a href="#usage">Usage</a></li> <li><a href="#license">License</a></li> <li><a href="#contact">Contact</a></li> </ol> </details> <!-- ABOUT THE PROJECT --> ## About The Project Now part of folium plugins as of [v0.13.0](https://github.com/python-visualization/folium/releases/tag/v0.13.0). This library fills a hole in foliums plugin eco-system. Wrapping [Leaflet.VectorGrid](https://github.com/Leaflet/Leaflet.VectorGrid/) into a folium plugin, users can now add vector tile layers (e.g. Mapbox, OpenMapTiles) to their folium maps. ### Built With - [folium](https://github.com/python-visualization/folium) - [Leaflet.VectorGrid](https://github.com/Leaflet/Leaflet.VectorGrid) <!-- GETTING STARTED --> ## Getting Started ### Prerequisite Install [Poetry](https://python-poetry.org/docs/#installation). ### Installation #### as dependency ``` poetry add git+https://github.com/iwpnd/folium-vectorgrid.git ``` ``` pip install folium-vectorgrid ``` #### local development 1. Clone and install ```sh git clone https://github.com/iwpnd/folium-vectorgrid.git poetry install ``` 2. Test it! ```sh poe test # or poetry run pytest . ``` ## Usage ```python from folium_vectorgrid import VectorGridProtobuf import folium url = "https://free-{s}.tilehosting.com/data/v3/{z}/{x}/{y}.pbf?token={token}" m = folium.Map() options = { "subdomain": "my_subdomain", "token": "my_token", "vectorTileLayerStyles": { "my_layer":{ "fill": True, "weight": 1, "fillColor": 'green', "color": 'black', "fillOpacity":0.6, "opacity":0.6 }, } } vc = VectorGridProtobuf(url, "folium_layer_name", options) m.add_child(vc) m ``` Or with conditional styling ```python import folium from folium_vectorgrid import VectorGridProtobuf m = folium.Map() url = "https://free-{s}.tilehosting.com/data/v3/{z}/{x}/{y}.pbf?token={token}" options = '''{ "subdomain": "tilehosting", "token": "af6P2G9dztAt1F75x7KYt0Hx2DJR052G", "vectorTileLayerStyles": { "my_layer": function(f) { if (f.type === 'parks') { return { "fill": true, "weight": 1, "fillColor": 'green', "color": 'black', "fillOpacity":0.6, "opacity":0.6 }; } if (f.type === 'water') { return { "fill": true, "weight": 1, "fillColor": 'purple', "color": 'black', "fillOpacity":0.6, "opacity":0.6 }; } } } }''' VectorGridProtobuf(url,"layer_name",options).add_to(m) m ``` ## License Distributed under the MIT License. See `LICENSE` for more information. ## Contact Benjamin Ramser - [@imwithpanda](https://twitter.com/imwithpanda) - ahoi@iwpnd.pw Project Link: [https://github.com/iwpnd/folium-vector](https://github.com/iwpnd/folium-vectorgrid)


نیازمندی

مقدار نام
>=0.14.0,<0.15.0 folium


زبان مورد نیاز

مقدار نام
>=3.9,<4.0 Python


نحوه نصب


نصب پکیج whl folium-vectorgrid-0.1.1:

    pip install folium-vectorgrid-0.1.1.whl


نصب پکیج tar.gz folium-vectorgrid-0.1.1:

    pip install folium-vectorgrid-0.1.1.tar.gz