histOSM / map_tab /map_setup.py
muk42's picture
added CRS conversion, plotly map instead of Folium
95327ef
raw
history blame contribute delete
571 Bytes
import gradio as gr
from .map_logic import make_map
def get_map_widgets(city_component):
#map_output = gr.HTML(value="Map will appear here once you type a city", elem_id="map-widget")
map_output = gr.Plot(label="Map", value=None)
show_grid = gr.Checkbox(label="Draw Grid", value=False)
show_georef = gr.Checkbox(label="Show Georeferenced Map", value=False)
inputs = [city_component, show_grid, show_georef]
for comp in inputs:
comp.change(fn=make_map, inputs=inputs, outputs=[map_output])
return map_output, show_grid, show_georef