From 7b1b57e8ae8d87c7782bf9b1dcb6f233b72731c3 Mon Sep 17 00:00:00 2001 From: Thomas Neirynck Date: Tue, 19 Jan 2021 11:53:58 -0500 Subject: [PATCH] rename --- x-pack/plugins/maps/public/actions/data_request_actions.ts | 4 ++-- .../classes/layers/vector_tile_layer/vector_tile_layer.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/x-pack/plugins/maps/public/actions/data_request_actions.ts b/x-pack/plugins/maps/public/actions/data_request_actions.ts index 16ab77901705c..4467a7bd72b48 100644 --- a/x-pack/plugins/maps/public/actions/data_request_actions.ts +++ b/x-pack/plugins/maps/public/actions/data_request_actions.ts @@ -47,8 +47,8 @@ import { IVectorStyle } from '../classes/styles/vector/vector_style'; const FIT_TO_BOUNDS_SCALE_FACTOR = 0.1; export type DataRequestContext = { - startLoading(dataId: string, requestToken: symbol, meta: DataMeta): void; - stopLoading(dataId: string, requestToken: symbol, data: object, additionalMeta?: DataMeta): void; + startLoading(dataId: string, requestToken: symbol, requestMeta: DataMeta): void; + stopLoading(dataId: string, requestToken: symbol, data: object, resultsMeta?: DataMeta): void; onLoadError(dataId: string, requestToken: symbol, errorMessage: string): void; updateSourceData(newData: unknown): void; isRequestStillActive(dataId: string, requestToken: symbol): boolean; diff --git a/x-pack/plugins/maps/public/classes/layers/vector_tile_layer/vector_tile_layer.js b/x-pack/plugins/maps/public/classes/layers/vector_tile_layer/vector_tile_layer.js index 40f4338b6b7b7..f2673062fee93 100644 --- a/x-pack/plugins/maps/public/classes/layers/vector_tile_layer/vector_tile_layer.js +++ b/x-pack/plugins/maps/public/classes/layers/vector_tile_layer/vector_tile_layer.js @@ -63,7 +63,7 @@ export class VectorTileLayer extends TileLayer { ...styleAndSprites, spriteSheetImageData, }; - stopLoading(SOURCE_DATA_REQUEST_ID, requestToken, data, nextMeta); + stopLoading(SOURCE_DATA_REQUEST_ID, requestToken, data); } catch (error) { onLoadError(SOURCE_DATA_REQUEST_ID, requestToken, error.message); }