mirror of
https://github.com/LibreOffice/online.git
synced 2025-07-25 16:04:48 +00:00
leaflet: show annotation marker only from the selected slide
Change-Id: I6a9950f8f5be0f6e7393faf4f8718b94ffb05ebc Reviewed-on: https://gerrit.libreoffice.org/c/online/+/103114 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Pranam Lashkari <lpranam@collabora.com>
This commit is contained in:
@ -485,6 +485,7 @@ L.Annotation = L.Layer.extend({
|
|||||||
}),
|
}),
|
||||||
draggable: true
|
draggable: true
|
||||||
});
|
});
|
||||||
|
if (this._map._docLayer._partHashes[this._map._docLayer._selectedPart] == this._data.parthash)
|
||||||
this._map.addLayer(this._annotationMarker);
|
this._map.addLayer(this._annotationMarker);
|
||||||
}
|
}
|
||||||
if (this._data.rectangle != null) {
|
if (this._data.rectangle != null) {
|
||||||
|
Reference in New Issue
Block a user