mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 19:16:41 +07:00
added notifications for hidden markers
This commit is contained in:
parent
32e1b4c3fd
commit
ba5e24a56d
12 changed files with 89 additions and 19 deletions
|
@ -244,9 +244,7 @@ L.Polyline.polylineEditor = L.Polyline.extend({
|
|||
* bounds.
|
||||
*/
|
||||
this._showBoundMarkers = () => {
|
||||
if (!this._map) {
|
||||
return;
|
||||
}
|
||||
if (!this._map) return;
|
||||
|
||||
this._setBusy(false);
|
||||
|
||||
|
@ -266,9 +264,9 @@ L.Polyline.polylineEditor = L.Polyline.extend({
|
|||
}
|
||||
|
||||
if (found < that._options.maxMarkers) {
|
||||
// console.log('shown'); // todo: onHide
|
||||
if (this._options.onMarkersShow) this._options.onMarkersShow();
|
||||
} else {
|
||||
// console.log('hidden'); // todo: onShow
|
||||
if (this._options.onMarkersHide) this._options.onMarkersHide();
|
||||
}
|
||||
|
||||
// todo: optimise this
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue