Implement Live Updates and Trails
masterYou can create a live map by providing a URL and a refresh interval (in seconds). This will periodically fetch new data from the remote source.
refresh: number: Interval in seconds.trail: boolean: Iftrue, shows trails of previous positions.trail: {len: number}: Sets the length of the trail.id: Data points must include anidattribute to be correctly identified and tracked during updates.
// Refresh every 10 seconds with trails
new Mapkick.Map("map", url, {trail: true, refresh: 10})
// Refresh every 10 seconds with a trail length of 10
new Mapkick.Map("map", url, {trail: {len: 10}, refresh: 10})