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
#1
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)
m
sleep(2.5)[/inline]
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
sleep(0.5)
m[/inline]
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Jupyter notebooks, jupyter kernels, virtual environment created in Anaconda... bytecrunch 8 2,280 Nov-05-2023, 06:38 PM
Last Post: snippsat
  Jupyter Notebook TypeError Holidays entity loader class bmanning20 0 2,724 Jul-20-2023, 06:52 PM
Last Post: bmanning20
  Why does graph look different in Codecademy and Jupyter Notebook abc123456 1 1,481 Mar-29-2023, 09:22 AM
Last Post: newbieAuggie2019
  Setting up and integrating Jupyter Notebook development environment with VSC Drone4four 3 1,866 Sep-12-2022, 09:18 AM
Last Post: Drone4four
Thumbs Up can't access data from URL in pandas/jupyter notebook aaanoushka 1 1,864 Feb-13-2022, 01:19 PM
Last Post: jefsummers
Exclamation Jupyter Notebook - Help Needed! eyadfr 1 1,836 Jan-26-2022, 06:42 PM
Last Post: jefsummers
  Help needed with Jupyter Notebook eyadfr 4 2,117 Jan-04-2022, 08:20 PM
Last Post: snippsat
  Human Activity recognition in real time pihidream 0 1,500 Sep-20-2021, 09:55 AM
Last Post: pihidream
  HELP! Importing json file into csv into jupyter notebook vilsef 2 2,578 Jan-22-2021, 11:06 AM
Last Post: snippsat
  no image displayed with folium and pandas Declaix 1 2,137 Oct-29-2020, 05:44 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

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