尝试将此处的地图与破折号集成。这是我的破折号代码。
import dash
import dash_html_components as html
external_stylesheets = ['https://js.api.here.com/v3/3.1/mapsjs-ui.css']
external_scripts =
[
'https://js.api.here.com/v3/3.1/mapsjs-core.js',
'https://js.api.here.com/v3/3.1/mapsjs-service.js',
'https://js.api.here.com/v3/3.1/mapsjs-ui.js',
'https://js.api.here.com/v3/3.1/mapsjs-mapevents.js'
]
app = dash.Dash(name, external_stylesheets=external_stylesheets, external_scripts=external_scripts)
app.layout = html.Div([
html.Div(id=‘map’)
])
if name == “main”:
app.run_server(debug=True)
文件夹路径:
- 主要的 :
- 资产
- demo.css – demo.js – style.css
- heredashpolyline.py 我正在关注这个:[在这里地图上绘制折线] https://developer.here.com/documentation/examples/maps-js/geoshapes/polyline-on-the-map
- 资产