Skip to content

Commit

Permalink
Improve docs
Browse files Browse the repository at this point in the history
  • Loading branch information
giswqs committed Jul 3, 2023
1 parent 7bae2b9 commit b8ccc81
Showing 1 changed file with 22 additions and 20 deletions.
42 changes: 22 additions & 20 deletions geemap/geemap.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,26 +47,28 @@ class Map(ipyleaflet.Map):

def __init__(self, **kwargs):
"""Initialize a map object. The following additional parameters can be passed in addition to the ipyleaflet.Map parameters:
- ee_initialize: (bool) Whether or not to initialize ee. Defaults to True.
- center: (list) Center of the map (lat, lon). Defaults to [20, 0].
- zoom: (int) Zoom level of the map. Defaults to 2.
- height: (str) Height of the map. Defaults to "600px".
- width: (str) Width of the map. Defaults to "100%".
- basemap: (str) Name of the basemap to add to the map. Defaults to "ROADMAP". Other options include "ROADMAP", "SATELLITE", "TERRAIN".
- add_google_map: (bool) Whether to add Google Maps to the map. Defaults to True.
- sandbox_path: (str) The path to a sandbox folder for voila web app. Defaults to None.
- lite_mode: (bool) Whether to enable lite mode, which only displays zoom control on the map. Defaults to False.
- data_ctrl: (bool) Whether to add the data control to the map. Defaults to True.
- zoom_ctrl: (bool) Whether to add the zoom control to the map. Defaults to True.
- fullscreen_ctrl: (bool) Whether to add the fullscreen control to the map. Defaults to True.
- search_ctrl: (bool) Whether to add the search control to the map. Defaults to True.
- draw_ctrl: (bool) Whether to add the draw control to the map. Defaults to True.
- scale_ctrl: (bool) Whether to add the scale control to the map. Defaults to True.
- measure_ctrl: (bool) Whether to add the measure control to the map. Defaults to True.
- toolbar_ctrl: (bool) Whether to add the toolbar control to the map. Defaults to True.
- layer_ctrl: (bool) Whether to add the layer control to the map. Defaults to False.
- attribution_ctrl: (bool) Whether to add the attribution control to the map. Defaults to True.
- **kwargs: Additional keyword arguments for ipyleaflet.Map.
Args:
ee_initialize (bool): Whether or not to initialize ee. Defaults to True.
center (list): Center of the map (lat, lon). Defaults to [20, 0].
zoom (int): Zoom level of the map. Defaults to 2.
height (str): Height of the map. Defaults to "600px".
width (str): Width of the map. Defaults to "100%".
basemap (str): Name of the basemap to add to the map. Defaults to "ROADMAP". Other options include "ROADMAP", "SATELLITE", "TERRAIN".
add_google_map (bool): Whether to add Google Maps to the map. Defaults to True.
sandbox_path (str): The path to a sandbox folder for voila web app. Defaults to None.
lite_mode (bool): Whether to enable lite mode, which only displays zoom control on the map. Defaults to False.
data_ctrl (bool): Whether to add the data control to the map. Defaults to True.
zoom_ctrl (bool): Whether to add the zoom control to the map. Defaults to True.
fullscreen_ctrl (bool): Whether to add the fullscreen control to the map. Defaults to True.
search_ctrl (bool): Whether to add the search control to the map. Defaults to True.
draw_ctrl (bool): Whether to add the draw control to the map. Defaults to True.
scale_ctrl (bool): Whether to add the scale control to the map. Defaults to True.
measure_ctrl (bool): Whether to add the measure control to the map. Defaults to True.
toolbar_ctrl (bool): Whether to add the toolbar control to the map. Defaults to True.
layer_ctrl (bool): Whether to add the layer control to the map. Defaults to False.
attribution_ctrl (bool): Whether to add the attribution control to the map. Defaults to True.
**kwargs: Additional keyword arguments for ipyleaflet.Map.
"""
warnings.filterwarnings("ignore")

Expand Down

0 comments on commit b8ccc81

Please sign in to comment.