Skip to content

Commit 94c5911

Browse files
committed
adds tooltip & winds down update interval to 1000
1 parent 3f515b5 commit 94c5911

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

demo/map/map.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ class LocRecords {
131131
this.query_LOC();
132132

133133
// set timer to re-query LOC records
134-
setInterval(function() { this.query_LOC() }.bind(this), 10000);
134+
setInterval(function() { this.query_LOC() }.bind(this), 1000);
135135
}
136136

137137
/// construct a timeable function
@@ -192,6 +192,9 @@ class LocRecords {
192192
let popup_text = this.create_popup_text(latitude, longitude);
193193
marker.bindPopup(popup_text);
194194

195+
// set tooltip
196+
marker.bindTooltip(this.domain).openTooltip();
197+
195198
// add to entries
196199
this.entries.push(marker);
197200
}

0 commit comments

Comments
 (0)