Skip to content
Advertisement

I want to update my car location in javascript

I use leaflet map ,this map can show my location (I success)
I hope I can update my location 10 second a time (just this div field, other data not to update)
but now I just can update hole page to update my map, how can I do to update partial page? this is my code:

JavaScript

thanks

Advertisement

Answer

It looks difficult to do it directly, you can use jQuery to refresh it at some given time. Check this link for more information

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement