Python Forum
How can draw a real-time marker on map using folium/leaflet Jupyter notebook
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How can draw a real-time marker on map using folium/leaflet Jupyter notebook
I want to move a marker in real time inside a map using Folium and Jupyter notebook. I've tried the following but doesn't work

Quote:[inline]for x in range (len(loc_225)):
folium.Marker([loc_225.values[x,0]/10000000,loc_225.values[x,1]/10000000], popup='225',icon=folium.Icon(color='red', icon='map-marker')).add_to(m)
folium.Marker([loc_324.values[x,0]/10000000,loc_324.values[x,1]/10000000], popup='324',icon=folium.Icon(color='blue', icon='map-marker')).add_to(m)
Is it possible with folium?

Also, I've tried with leaflet, but same result.

Quote:[inline]for x in range (len(lat_225)):
marker_next = lf.Marker(location=[lat_225['message_basicContainer_reference_position_latitude'].values[x]/10000000,lon_225['message_basicContainer_reference_position_longitude'].values[x]/10000000])
m += marker_next

Possibly Related Threads…
Thread Author Replies Views Last Post
  Setting up and integrating Jupyter Notebook development environment with VSC Drone4four 3 579 Sep-12-2022, 09:18 AM
Last Post: Drone4four
Thumbs Up can't access data from URL in pandas/jupyter notebook aaanoushka 1 933 Feb-13-2022, 01:19 PM
Last Post: jefsummers
Exclamation Jupyter Notebook - Help Needed! eyadfr 1 1,018 Jan-26-2022, 06:42 PM
Last Post: jefsummers
  Help needed with Jupyter Notebook eyadfr 4 1,047 Jan-04-2022, 08:20 PM
Last Post: snippsat
  Human Activity recognition in real time pihidream 0 1,019 Sep-20-2021, 09:55 AM
Last Post: pihidream
  HELP! Importing json file into csv into jupyter notebook vilsef 2 1,567 Jan-22-2021, 11:06 AM
Last Post: snippsat
  no image displayed with folium and pandas Declaix 1 1,330 Oct-29-2020, 05:44 PM
Last Post: snippsat
  Python Custom Module not working in Jupyter Notebook with Pandas fid 0 1,463 Jul-04-2020, 11:05 AM
Last Post: fid
  Real-time plot from serial port Nochill_Senpai 1 3,734 Feb-12-2020, 03:04 AM
Last Post: Larz60+
  How to change working directory in Jupyter Notebook? rajeev1729 2 19,996 Aug-25-2019, 07:25 PM
Last Post: perfringo

Forum Jump:

User Panel Messages

Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020