Skip to content

Commit

Permalink
playing with map
Browse files Browse the repository at this point in the history
  • Loading branch information
iwan-tee committed Nov 29, 2022
1 parent 02da350 commit 108070d
Showing 1 changed file with 40 additions and 15 deletions.
55 changes: 40 additions & 15 deletions pages/tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@

dash.register_page(__name__, path="/Tool")

url = "https://raw.githubusercontent.com/hflabs/city/master/city.csv"
geodata = pd.read_csv(url)

####example data for example map######
Sample_data = px.data.carshare()

Expand All @@ -29,7 +26,8 @@
#######################################

####example data for example 2map######
Sample_data = px.data.carshare()
url = "https://raw.githubusercontent.com/hflabs/city/master/city.csv"
geodata = pd.read_csv(url)

fig_ = px.scatter_mapbox(
geodata,
Expand All @@ -43,6 +41,30 @@
)
#######################################


card = dbc.Card(
dbc.CardBody(
[
html.Div(
[
html.Div(
[
"direct MPXSonar query: ",
html.Br(),
dcc.Input(
id="my-input", type="text", size="100"
),
]
)
]
)
]
),
style={"width": "18rem"},
)



layout = html.Div(
[
#check box with references
Expand Down Expand Up @@ -82,7 +104,7 @@
),

html.Div(
style={'width':'10%', 'height':'190%','float':'left'},
style={'width':'15%', 'height':'190%','float':'left'},
children=[
dcc.Checklist(
className ='checkbox_1',
Expand All @@ -97,21 +119,24 @@
)
]
),
card,
html.Br(style={'line-height': '10'}),
#html.Div(
# [
# html.Div(
# [
# "direct MPXSonar query: ",
# html.Br(),
# dcc.Input(
# id="my-input", type="text", size="100"
# ),
# ]
# ),
html.Div(
[
html.Div(
[
"direct MPXSonar query: ",
html.Br(),
dcc.Input(
id="my-input", type="text", size="100"
),
]
),
html.Br(),
html.H1("Here is a map"),
dcc.Graph(figure=fig_),
dcc.Graph(figure=fig),
html.Br(),
html.Div(
[
Expand Down

0 comments on commit 108070d

Please sign in to comment.