giswqs commited on
Commit
03c7c7c
·
1 Parent(s): e0a3473

Update basemap

Browse files
Files changed (1) hide show
  1. pages/01_morocco.py +8 -3
pages/01_morocco.py CHANGED
@@ -93,7 +93,12 @@ class Map(leafmap.Map):
93
  def __init__(self, **kwargs):
94
  kwargs['toolbar_control'] = False
95
  super().__init__(**kwargs)
96
- self.add_basemap('Esri.WorldImagery', show=False)
 
 
 
 
 
97
  self.add_layer_manager(opened=False)
98
  update_geojson(self)
99
  default_geojson = f'{url}/datasets/Morocco-Earthquake-Sept-2023.geojson'
@@ -117,5 +122,5 @@ def Page():
117
  data_ctrl=False,
118
  height="780px",
119
  )
120
- # solara.Text(f"Zoom: {zoom.value}")
121
- # solara.Text(f"Center: {center.value}")
 
93
  def __init__(self, **kwargs):
94
  kwargs['toolbar_control'] = False
95
  super().__init__(**kwargs)
96
+ basemap = {
97
+ "url": "https://mt1.google.com/vt/lyrs=s&x={x}&y={y}&z={z}",
98
+ "attribution": "Google",
99
+ "name": "Google Satellite",
100
+ }
101
+ self.add_tile_layer(**basemap, shown=False)
102
  self.add_layer_manager(opened=False)
103
  update_geojson(self)
104
  default_geojson = f'{url}/datasets/Morocco-Earthquake-Sept-2023.geojson'
 
122
  data_ctrl=False,
123
  height="780px",
124
  )
125
+ solara.Text(f"Center: {center.value}")
126
+ solara.Text(f"Zoom: {zoom.value}")