python-visualization / python-visualization/folium

Feature request: dynamic style functions

Open
#1,112 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Python
Stars
7.4k
Forks
2.3k
Avg merge
17h 22m
Merged PRs (30d)
11

Description

If you have multiple features on a geojson file, it would be handy to keep the features as 'abstract' layers to select which style to be used. By 'abstract' here I mean that they're working on the same data.

An example could be to highlight a set of polygons reflecting feature A in abstract layer 1, while it would highlight feature B in abstract layer 2.

Right now I would have to add the same polygons (geojson) with different style functions to achieve this, essentially duplicating the data. The problem grows with more features I would want to illustrate..

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or entry points are named. Start by clarifying the proposed abstract-layer and dynamic-style-function API for shared GeoJSON data; done should allow multiple styles or feature selections without duplicating the polygons.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, python
Domain
data-visualization
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.