mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
adding mapLoaded event to tile_map visualization
This commit is contained in:
parent
cd4e1dc7de
commit
e198f4129f
1 changed files with 11 additions and 0 deletions
|
@ -211,6 +211,17 @@ export default function MapFactory(Private, tilemap, $sanitize) {
|
|||
|
||||
this._tileLayer.on('tileload', saturateTiles);
|
||||
|
||||
this._tileLayer.on('load', () => {
|
||||
if (!self._events) return;
|
||||
|
||||
self._events.emit('mapLoaded', {
|
||||
chart: self._chartData,
|
||||
map: self.map,
|
||||
center: self._mapCenter,
|
||||
zoom: self._mapZoom,
|
||||
});
|
||||
});
|
||||
|
||||
this.map.on('unload', function () {
|
||||
self._tileLayer.off('tileload', saturateTiles);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue