Skip to content

Radio control instead of checkboxs for layer control #1025

Closed

Description

@joaopalotti

Hi all,

First of all, thanks for this wonderful library.

I am planning to visualize different data slices on top of the same map.
For example, let's say that for the US Unemployment example (https://python-visualization.github.io/folium/docs-v0.6.0/quickstart.html#Choropleth-maps) I have information of unemployment by gender and education.

How can I create an exclusive group control like was done by this plugin (https://github.com/ismyrnow/leaflet-groupedlayercontrol) here using a radio control instead of a checkbox?

Activity

  1. ocefpaf commented on Nov 22, 2018

    @ocefpaf
    Member

    Every layer that has the option overlay=True/False can be set to a radio button and cycle the layers available. However, what you want is to group those layers with that plugin and this is not possible without the plugin ;-p

    That functionality is a nice candidate for an external plugin but I don't believe it belongs in the core folium. (Happy to be convinced otherwise with a nice PR!)

  2. Conengmo commented on Nov 17, 2022

    @Conengmo
    Member

    This was added in #1592, which will be available in the 0.14.0 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions