|
@@ -30,7 +30,7 @@ def map_style() -> None:
|
|
options={
|
|
options={
|
|
'maxZoom': 17,
|
|
'maxZoom': 17,
|
|
'attribution':
|
|
'attribution':
|
|
- 'Map data: © <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors, <a href="http://viewfinderpanoramas.org">SRTM</a> | '
|
|
|
|
|
|
+ 'Map data: © <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors, <a href="https://viewfinderpanoramas.org/">SRTM</a> | '
|
|
'Map style: © <a href="https://opentopomap.org">OpenTopoMap</a> (<a href="https://creativecommons.org/licenses/by-sa/3.0/">CC-BY-SA</a>)'
|
|
'Map style: © <a href="https://opentopomap.org">OpenTopoMap</a> (<a href="https://creativecommons.org/licenses/by-sa/3.0/">CC-BY-SA</a>)'
|
|
},
|
|
},
|
|
)
|
|
)
|
|
@@ -139,7 +139,7 @@ def run_layer_methods() -> None:
|
|
ui.button('Hide', on_click=lambda: marker.run_method('setOpacity', 0.3))
|
|
ui.button('Hide', on_click=lambda: marker.run_method('setOpacity', 0.3))
|
|
ui.button('Show', on_click=lambda: marker.run_method('setOpacity', 1.0))
|
|
ui.button('Show', on_click=lambda: marker.run_method('setOpacity', 1.0))
|
|
|
|
|
|
- icon = 'L.icon({iconUrl: "http://leafletjs.com/examples/custom-icons/leaf-green.png"})'
|
|
|
|
|
|
+ icon = 'L.icon({iconUrl: "https://leafletjs.com/examples/custom-icons/leaf-green.png"})'
|
|
ui.button('Change icon', on_click=lambda: marker.run_method(':setIcon', icon))
|
|
ui.button('Change icon', on_click=lambda: marker.run_method(':setIcon', icon))
|
|
|
|
|
|
|
|
|