Git Product home page Git Product logo

folium-groupedlayercontrol's People

Contributors

ikoojoshi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

folium-groupedlayercontrol's Issues

Grouping Google Earth Engine (GEE) & Folium layers?

Is there a way to only have check-boxes? Multiple groups of check-boxes?

My use case:

I have multiple layers that I'd like to separate into two categories, "Vector layers" and "Raster layers". And I need them all to be activated as checkbox by default, I don't need radio.

As you can see in the screenshot bellow, layers are listed as follows:

  • From "openstreetmap" to "Dark Matter": Basemaps using folium.TileLayer
  • From "Topography Map" to "Google Satellite Imagery": Basemaps added using WmsTileLayer
  • From "Tipaza Wilaya Administrative Borders" to "Waterways": Vector layers using geojson folium.features.GeoJson()
  • From "Sentinel-2 True Colors" to "Contour lines": Raster layers using Google Earth Engine method folium.Map.add_ee_layer = add_ee_layer

image

Here's the project repo, the develop branch is the one ahead: https://github.com/IndigoWizard/mega-port-environment/tree/develop
I need to split them to 3 categories: Basemaps | Vector layers, | Raster layers but it doesn't seem to work
The google earth engine layers don't seem to be compatible with this maybe or I'm not doing it right, any chance I get some help with it? Error i get:
m.add_ee_layer(image_satellite, image_params, 'Sentinel-2 True Colors').add_to(raster_layers) AttributeError: 'NoneType' object has no attribute 'add_to'

Folium Layer Tree

Similar to this, is there a way to do a collapsible layer tree using folium? I know there is the leaflet-layer-tree plugin but not sure how it can be implemented within folium python code.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.