File tree Expand file tree Collapse file tree 3 files changed +11
-9
lines changed Expand file tree Collapse file tree 3 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -4,16 +4,16 @@ import { MapPos, toNativeMapPos } from '../core';
4
4
import { FeatureCollection , VectorTileFeatureCollection } from '../geometry/feature' ;
5
5
import { MapBoxElevationDataDecoderOptions , TerrariumElevationDataDecoderOptions } from '.' ;
6
6
7
- export class MapBoxElevationDataDecoder extends BaseNative < com . carto . rastertiles . MapBoxElevationDataDecoder , MapBoxElevationDataDecoderOptions > {
7
+ export class MapBoxElevationDataDecoder extends BaseNative < NTMapBoxElevationDataDecoder , MapBoxElevationDataDecoderOptions > {
8
8
createNative ( options : MapBoxElevationDataDecoderOptions ) {
9
- return new NTMapBoxElevationDataDecoder ( ) ;
9
+ return NTMapBoxElevationDataDecoder . new ( ) ;
10
10
}
11
11
public getElevation ( pos : MapPos ) { }
12
12
}
13
13
14
- export class TerrariumElevationDataDecoder extends BaseNative < com . carto . rastertiles . TerrariumElevationDataDecoder , TerrariumElevationDataDecoderOptions > {
14
+ export class TerrariumElevationDataDecoder extends BaseNative < NTTerrariumElevationDataDecoder , TerrariumElevationDataDecoderOptions > {
15
15
createNative ( options : TerrariumElevationDataDecoderOptions ) {
16
- return NTTerrariumElevationDataDecoder . alloc . init ( ) ;
16
+ return NTTerrariumElevationDataDecoder . new ( ) ;
17
17
}
18
18
public getElevation ( pos : MapPos ) { }
19
19
}
Original file line number Diff line number Diff line change @@ -34,9 +34,10 @@ export class VectorTileSearchService extends BaseNative<AKVectorTileSearchServic
34
34
nRequest . setGeometry ( geometryFromArgs ( options . geometry ) ) ;
35
35
}
36
36
if ( callback ) {
37
- this . getNative ( ) . findFeaturesCallback ( nRequest , ( r ) => new VectorTileFeatureCollection ( r ) )
37
+ this . getNative ( ) . findFeaturesCallback ( nRequest , ( r ) => new VectorTileFeatureCollection ( r ) ) ;
38
+ return null ;
38
39
} else {
39
- return new VectorTileFeatureCollection ( this . getNative ( ) . findFeatures ( nRequest ) ) ;
40
+ return new VectorTileFeatureCollection ( this . getNative ( ) . findFeatures ( nRequest ) ) ;
40
41
}
41
42
}
42
43
set layers ( value : string | string [ ] ) {
@@ -75,9 +76,10 @@ export class FeatureCollectionSearchService extends BaseNative<AKFeatureCollecti
75
76
}
76
77
}
77
78
if ( callback ) {
78
- this . getNative ( ) . findFeaturesCallback ( nRequest , ( r ) => new FeatureCollection ( r ) )
79
+ this . getNative ( ) . findFeaturesCallback ( nRequest , ( r ) => new FeatureCollection ( r ) ) ;
80
+ return null ;
79
81
} else {
80
- return new FeatureCollection ( this . getNative ( ) . findFeatures ( nRequest ) ) ;
82
+ return new FeatureCollection ( this . getNative ( ) . findFeatures ( nRequest ) ) ;
81
83
}
82
84
}
83
85
}
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ export class Line extends BaseLineVectorElement<NTLine, LineOptions> {
99
99
if ( styleBuilder instanceof NTLineStyle ) {
100
100
style = styleBuilder ;
101
101
} else if ( styleBuilder instanceof LineStyleBuilder ) {
102
- style = styleBuilder . buildStyle ( ) ;
102
+ style = ( styleBuilder as LineStyleBuilder ) . buildStyle ( ) ;
103
103
} else if ( styleBuilder . hasOwnProperty ) {
104
104
style = new LineStyleBuilder ( styleBuilder ) . buildStyle ( ) ;
105
105
}
You can’t perform that action at this time.
0 commit comments