geemap/geemap.py
def basemap_demo(self):
        """A demo for using geemap basemaps."""
        dropdown = widgets.Dropdown(
            options=list(basemap_tiles.keys()),
            value="HYBRID",
            description="Basemaps",
        )

        def on_click(change):
            basemap_name = change["new"]
            old_basemap = self.layers[-1]
            self.substitute_layer(old_basemap, basemap_tiles[basemap_name])

        dropdown.observe(on_click, "value")
        basemap_control = ipyleaflet.WidgetControl(widget=dropdown, position="topright")
        self.add_control(basemap_control)
A demo for using geemap basemaps.
A demo for using geemap basemaps.
A demo for using geemap basemaps .
def basemap_demo(self):
        dropdown = widgets.Dropdown(
            options=list(basemap_tiles.keys()),
            value="HYBRID",
            description="Basemaps",
        )
        def on_click(change):
            basemap_name = change["new"]
            old_basemap = self.layers[-1]
            self.substitute_layer(old_basemap, basemap_tiles[basemap_name])
        dropdown.observe(on_click, "value")
        basemap_control = ipyleaflet.WidgetControl(widget=dropdown, position="topright")
        self.add_control(basemap_control)
def basemap_demo ( self ) : dropdown = widgets . Dropdown ( options = list ( basemap_tiles . keys ( ) ) , value = "HYBRID" , description = "Basemaps" , ) def on_click ( change ) : basemap_name = change [ "new" ] old_basemap = self . layers [ - 1 ] self . substitute_layer ( old_basemap , basemap_tiles [ basemap_name ] ) dropdown . observe ( on_click , "value" ) basemap_control = ipyleaflet . WidgetControl ( widget = dropdown , position = "topright" ) self . add_control ( basemap_control )
A demo for using geemap basemaps.
A demo for using geemap basemaps .
"""A demo for using geemap basemaps."""
self