bills commited on
Commit
6fd3f58
1 Parent(s): a6acbfe

Add new change

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -41,7 +41,7 @@ ais_data = folium.FeatureGroup(name="marine_vessels")
41
  mCluster = MarkerCluster(name="Marine Vessels")
42
  for i in ais_list:
43
  html = f"<h3>{i[1]}</h3> Vessel Type: {i[8]} </br> Destination Port: {i[2]} </br> Reported Destination: {i[4]} </br> Current Port: {i[6]}\
44
- </br> Latitude: {i[9]} </br> Longitude: {i[10]}"
45
  iframe = folium.IFrame(html)
46
  popup = folium.Popup(iframe, min_width=250, max_width=300)
47
  ais_data.add_child(mCluster.add_child(folium.Marker(location=[i[10], i[11]], popup=popup, icon=folium.Icon(color="black", icon="ship", prefix="fa"))))
 
41
  mCluster = MarkerCluster(name="Marine Vessels")
42
  for i in ais_list:
43
  html = f"<h3>{i[1]}</h3> Vessel Type: {i[8]} </br> Destination Port: {i[2]} </br> Reported Destination: {i[4]} </br> Current Port: {i[6]}\
44
+ </br> Latitude: {i[10]} </br> Longitude: {i[11]}"
45
  iframe = folium.IFrame(html)
46
  popup = folium.Popup(iframe, min_width=250, max_width=300)
47
  ais_data.add_child(mCluster.add_child(folium.Marker(location=[i[10], i[11]], popup=popup, icon=folium.Icon(color="black", icon="ship", prefix="fa"))))