diff --git a/src/components/animations/index.ts b/src/components/animations/index.ts index 72c8d734..b45aa4a2 100644 --- a/src/components/animations/index.ts +++ b/src/components/animations/index.ts @@ -8,12 +8,7 @@ import OlAnimationSlide from "./OlAnimationSlide.vue"; import OlAnimationTeleport from "./OlAnimationTeleport.vue"; import OlAnimationZoom from "./OlAnimationZoom.vue"; -let installed = false; - function install(app: App) { - if (installed) return; - installed = true; - app.component("ol-animation-drop", OLAnimationDrop); app.component("ol-animation-fade", OlAnimationFade); app.component("ol-animation-feature", OlAnimationFeature); diff --git a/src/components/geometries/index.ts b/src/components/geometries/index.ts index 186b0180..350042d0 100644 --- a/src/components/geometries/index.ts +++ b/src/components/geometries/index.ts @@ -7,12 +7,7 @@ import OlGeomMultiPolygon from "./OlGeomMultiPolygon.vue"; import OlGeomPoint from "./OlGeomPoint.vue"; import OlGeomPolygon from "./OlGeomPolygon.vue"; -let installed = false; - function install(app: App) { - if (installed) return; - installed = true; - app.component("ol-geom-circle", OlGeomCircle); app.component("ol-geom-line-string", OlGeomLineString); app.component("ol-geom-multi-line-string", OlGeomMultiLineString); diff --git a/src/components/interaction/index.ts b/src/components/interaction/index.ts index b68cb2d6..8b20ae2f 100644 --- a/src/components/interaction/index.ts +++ b/src/components/interaction/index.ts @@ -8,12 +8,7 @@ import OlModifyInteraction from "./OlModifyInteraction.vue"; import OlSnapInteraction from "./OlSnapInteraction.vue"; import OlTransformInteraction from "./OlTransformInteraction.vue"; -let installed = false; - function install(app: App) { - if (installed) return; - installed = true; - app.component("ol-interaction-clusterselect", OlClusterSelectInteraction); app.component("ol-interaction-dragrotate", OlDragRotateInteraction); app.component("ol-interaction-dragrotatezoom", OlDragRotateZoomInteraction); diff --git a/src/components/layers/index.ts b/src/components/layers/index.ts index b0b6de68..ec99b399 100644 --- a/src/components/layers/index.ts +++ b/src/components/layers/index.ts @@ -10,12 +10,7 @@ import OlVectorImageLayer from "./OlVectorImageLayer.vue"; import OlWebglPointsLayer from "./OlWebglPointsLayer.vue"; import OlWebglTileLayer from "./OlWebglTileLayer.vue"; -let installed = false; - function install(app: App) { - if (installed) return; - installed = true; - app.component("ol-animated-clusterlayer", OlAnimatedClusterLayer); app.component("ol-heatmap-layer", OlHeatmapLayer); app.component("ol-image-layer", OlImageLayer); diff --git a/src/components/map/index.ts b/src/components/map/index.ts index 6f9a7ff7..a885fa97 100644 --- a/src/components/map/index.ts +++ b/src/components/map/index.ts @@ -6,12 +6,7 @@ import OlOverlay from "./OlOverlay.vue"; import OlProjectionRegister from "./OlProjectionRegister.vue"; import OlView from "./OlView.vue"; -let installed = false; - function install(app: App) { - if (installed) return; - installed = true; - app.component("ol-feature", OlFeature); app.component("ol-geolocation", OlGeoLocation); app.component("ol-map", OlMap); diff --git a/src/components/mapControls/index.ts b/src/components/mapControls/index.ts index 0daa28d6..eccc3b8c 100644 --- a/src/components/mapControls/index.ts +++ b/src/components/mapControls/index.ts @@ -19,12 +19,7 @@ import OlZoomControl from "./OlZoomControl.vue"; import OlZoomSliderControl from "./OlZoomSliderControl.vue"; import OlZoomToExtentControl from "./OlZoomToExtentControl.vue"; -let installed = false; - function install(app: App) { - if (installed) return; - installed = true; - app.component("ol-attribution-control", OlAttributionControl); app.component("ol-fullscreen-control", OlFullScreenControl); app.component("ol-mouseposition-control", OlMousePositionControl); diff --git a/src/components/sources/index.ts b/src/components/sources/index.ts index 30306272..e188a94b 100644 --- a/src/components/sources/index.ts +++ b/src/components/sources/index.ts @@ -15,12 +15,7 @@ import OlSourceWebglPoints from "./OlSourceWebglPoints.vue"; import OlSourceXYZ from "./OlSourceXYZ.vue"; import OlSourceWMTS from "./OlSourceWMTS.vue"; -let installed = false; - function install(app: App) { - if (installed) return; - installed = true; - app.component("ol-source-bingmaps", OlSourceBingMaps); app.component("ol-source-cluster", OlSourceCluster); app.component("ol-source-image-static", OlSourceImageStatic); diff --git a/src/components/styles/index.ts b/src/components/styles/index.ts index 80b5f734..c993791d 100644 --- a/src/components/styles/index.ts +++ b/src/components/styles/index.ts @@ -9,8 +9,6 @@ import OlStyleFlowline from "./OlStyleFlowline.vue"; import type { FeatureLike } from "ol/Feature"; import type { Style } from "ol/style"; -let installed = false; - type OverrideStyleFunction = ( feature: FeatureLike, currentStyle: Style, @@ -18,9 +16,6 @@ type OverrideStyleFunction = ( ) => Style | Style[] | void; function install(app: App) { - if (installed) return; - installed = true; - app.component("ol-style", OlStyle); app.component("ol-style-circle", OlStyleCircle); app.component("ol-style-stroke", OlStyleStroke);