File tree 8 files changed +0
-40
lines changed
8 files changed +0
-40
lines changed Original file line number Diff line number Diff line change @@ -8,12 +8,7 @@ import OlAnimationSlide from "./OlAnimationSlide.vue";
8
8
import OlAnimationTeleport from "./OlAnimationTeleport.vue" ;
9
9
import OlAnimationZoom from "./OlAnimationZoom.vue" ;
10
10
11
- let installed = false ;
12
-
13
11
function install ( app : App ) {
14
- if ( installed ) return ;
15
- installed = true ;
16
-
17
12
app . component ( "ol-animation-drop" , OLAnimationDrop ) ;
18
13
app . component ( "ol-animation-fade" , OlAnimationFade ) ;
19
14
app . component ( "ol-animation-feature" , OlAnimationFeature ) ;
Original file line number Diff line number Diff line change @@ -7,12 +7,7 @@ import OlGeomMultiPolygon from "./OlGeomMultiPolygon.vue";
7
7
import OlGeomPoint from "./OlGeomPoint.vue" ;
8
8
import OlGeomPolygon from "./OlGeomPolygon.vue" ;
9
9
10
- let installed = false ;
11
-
12
10
function install ( app : App ) {
13
- if ( installed ) return ;
14
- installed = true ;
15
-
16
11
app . component ( "ol-geom-circle" , OlGeomCircle ) ;
17
12
app . component ( "ol-geom-line-string" , OlGeomLineString ) ;
18
13
app . component ( "ol-geom-multi-line-string" , OlGeomMultiLineString ) ;
Original file line number Diff line number Diff line change @@ -8,12 +8,7 @@ import OlModifyInteraction from "./OlModifyInteraction.vue";
8
8
import OlSnapInteraction from "./OlSnapInteraction.vue" ;
9
9
import OlTransformInteraction from "./OlTransformInteraction.vue" ;
10
10
11
- let installed = false ;
12
-
13
11
function install ( app : App ) {
14
- if ( installed ) return ;
15
- installed = true ;
16
-
17
12
app . component ( "ol-interaction-clusterselect" , OlClusterSelectInteraction ) ;
18
13
app . component ( "ol-interaction-dragrotate" , OlDragRotateInteraction ) ;
19
14
app . component ( "ol-interaction-dragrotatezoom" , OlDragRotateZoomInteraction ) ;
Original file line number Diff line number Diff line change @@ -10,12 +10,7 @@ import OlVectorImageLayer from "./OlVectorImageLayer.vue";
10
10
import OlWebglPointsLayer from "./OlWebglPointsLayer.vue" ;
11
11
import OlWebglTileLayer from "./OlWebglTileLayer.vue" ;
12
12
13
- let installed = false ;
14
-
15
13
function install ( app : App ) {
16
- if ( installed ) return ;
17
- installed = true ;
18
-
19
14
app . component ( "ol-animated-clusterlayer" , OlAnimatedClusterLayer ) ;
20
15
app . component ( "ol-heatmap-layer" , OlHeatmapLayer ) ;
21
16
app . component ( "ol-image-layer" , OlImageLayer ) ;
Original file line number Diff line number Diff line change @@ -6,12 +6,7 @@ import OlOverlay from "./OlOverlay.vue";
6
6
import OlProjectionRegister from "./OlProjectionRegister.vue" ;
7
7
import OlView from "./OlView.vue" ;
8
8
9
- let installed = false ;
10
-
11
9
function install ( app : App ) {
12
- if ( installed ) return ;
13
- installed = true ;
14
-
15
10
app . component ( "ol-feature" , OlFeature ) ;
16
11
app . component ( "ol-geolocation" , OlGeoLocation ) ;
17
12
app . component ( "ol-map" , OlMap ) ;
Original file line number Diff line number Diff line change @@ -19,12 +19,7 @@ import OlZoomControl from "./OlZoomControl.vue";
19
19
import OlZoomSliderControl from "./OlZoomSliderControl.vue" ;
20
20
import OlZoomToExtentControl from "./OlZoomToExtentControl.vue" ;
21
21
22
- let installed = false ;
23
-
24
22
function install ( app : App ) {
25
- if ( installed ) return ;
26
- installed = true ;
27
-
28
23
app . component ( "ol-attribution-control" , OlAttributionControl ) ;
29
24
app . component ( "ol-fullscreen-control" , OlFullScreenControl ) ;
30
25
app . component ( "ol-mouseposition-control" , OlMousePositionControl ) ;
Original file line number Diff line number Diff line change @@ -15,12 +15,7 @@ import OlSourceWebglPoints from "./OlSourceWebglPoints.vue";
15
15
import OlSourceXYZ from "./OlSourceXYZ.vue" ;
16
16
import OlSourceWMTS from "./OlSourceWMTS.vue" ;
17
17
18
- let installed = false ;
19
-
20
18
function install ( app : App ) {
21
- if ( installed ) return ;
22
- installed = true ;
23
-
24
19
app . component ( "ol-source-bingmaps" , OlSourceBingMaps ) ;
25
20
app . component ( "ol-source-cluster" , OlSourceCluster ) ;
26
21
app . component ( "ol-source-image-static" , OlSourceImageStatic ) ;
Original file line number Diff line number Diff line change @@ -9,18 +9,13 @@ import OlStyleFlowline from "./OlStyleFlowline.vue";
9
9
import type { FeatureLike } from "ol/Feature" ;
10
10
import type { Style } from "ol/style" ;
11
11
12
- let installed = false ;
13
-
14
12
type OverrideStyleFunction = (
15
13
feature : FeatureLike ,
16
14
currentStyle : Style ,
17
15
resolution : number
18
16
) => Style | Style [ ] | void ;
19
17
20
18
function install ( app : App ) {
21
- if ( installed ) return ;
22
- installed = true ;
23
-
24
19
app . component ( "ol-style" , OlStyle ) ;
25
20
app . component ( "ol-style-circle" , OlStyleCircle ) ;
26
21
app . component ( "ol-style-stroke" , OlStyleStroke ) ;
You can’t perform that action at this time.
0 commit comments