mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 18:51:07 -04:00
Fixes https://github.com/elastic/kibana/issues/158133 Sources where not getting removed because `return` was used instead of `continue` in `for...in` loop. This caused the function to return instead of processing remaining sources. --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
67 lines
1.5 KiB
TypeScript
67 lines
1.5 KiB
TypeScript
/*
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
* Side Public License, v 1.
|
|
*/
|
|
|
|
import type {
|
|
Map,
|
|
LayerSpecification,
|
|
Source,
|
|
GeoJSONSource,
|
|
VectorTileSource,
|
|
RasterTileSource,
|
|
SourceSpecification,
|
|
StyleSpecification,
|
|
MapEvent,
|
|
MapOptions,
|
|
MapMouseEvent,
|
|
MapSourceDataEvent,
|
|
LngLat,
|
|
LngLatBounds,
|
|
Point2D,
|
|
PointLike,
|
|
MapGeoJSONFeature,
|
|
CustomLayerInterface,
|
|
FilterSpecification,
|
|
FeatureIdentifier,
|
|
} from 'maplibre-gl';
|
|
|
|
// @ts-expect-error
|
|
import maplibreglDist from 'maplibre-gl/dist/maplibre-gl-csp';
|
|
// @ts-expect-error
|
|
import mbRtlPlugin from '!!file-loader!@mapbox/mapbox-gl-rtl-text/mapbox-gl-rtl-text.min.js';
|
|
// @ts-expect-error
|
|
import mbWorkerUrl from '!!file-loader!maplibre-gl/dist/maplibre-gl-csp-worker';
|
|
import 'maplibre-gl/dist/maplibre-gl.css';
|
|
|
|
const maplibregl: any = maplibreglDist;
|
|
maplibregl.workerUrl = mbWorkerUrl;
|
|
maplibregl.setRTLTextPlugin(mbRtlPlugin);
|
|
|
|
export { maplibregl };
|
|
|
|
export type {
|
|
Map,
|
|
LayerSpecification,
|
|
SourceSpecification,
|
|
StyleSpecification,
|
|
Source,
|
|
GeoJSONSource,
|
|
VectorTileSource,
|
|
RasterTileSource,
|
|
MapEvent,
|
|
MapOptions,
|
|
MapMouseEvent,
|
|
MapSourceDataEvent,
|
|
LngLat,
|
|
LngLatBounds,
|
|
Point2D,
|
|
PointLike,
|
|
MapGeoJSONFeature,
|
|
CustomLayerInterface,
|
|
FilterSpecification,
|
|
FeatureIdentifier,
|
|
};
|