Skip to content

Commit 223fd25

Browse files
author
farfromrefug
committed
chore: build fix
1 parent 5f02c41 commit 223fd25

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

src/ui-carto/rastertiles/index.ios.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ import { MapPos, toNativeMapPos } from '../core';
44
import { FeatureCollection, VectorTileFeatureCollection } from '../geometry/feature';
55
import { MapBoxElevationDataDecoderOptions, TerrariumElevationDataDecoderOptions } from '.';
66

7-
export class MapBoxElevationDataDecoder extends BaseNative<com.carto.rastertiles.MapBoxElevationDataDecoder, MapBoxElevationDataDecoderOptions> {
7+
export class MapBoxElevationDataDecoder extends BaseNative<NTMapBoxElevationDataDecoder, MapBoxElevationDataDecoderOptions> {
88
createNative(options: MapBoxElevationDataDecoderOptions) {
9-
return new NTMapBoxElevationDataDecoder();
9+
return NTMapBoxElevationDataDecoder.new();
1010
}
1111
public getElevation(pos: MapPos) {}
1212
}
1313

14-
export class TerrariumElevationDataDecoder extends BaseNative<com.carto.rastertiles.TerrariumElevationDataDecoder, TerrariumElevationDataDecoderOptions> {
14+
export class TerrariumElevationDataDecoder extends BaseNative<NTTerrariumElevationDataDecoder, TerrariumElevationDataDecoderOptions> {
1515
createNative(options: TerrariumElevationDataDecoderOptions) {
16-
return NTTerrariumElevationDataDecoder.alloc.init();
16+
return NTTerrariumElevationDataDecoder.new();
1717
}
1818
public getElevation(pos: MapPos) {}
1919
}

src/ui-carto/search/index.ios.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,10 @@ export class VectorTileSearchService extends BaseNative<AKVectorTileSearchServic
3434
nRequest.setGeometry(geometryFromArgs(options.geometry));
3535
}
3636
if (callback) {
37-
this.getNative().findFeaturesCallback(nRequest, (r)=>new VectorTileFeatureCollection(r))
37+
this.getNative().findFeaturesCallback(nRequest, (r) => new VectorTileFeatureCollection(r));
38+
return null;
3839
} else {
39-
return new VectorTileFeatureCollection(this.getNative().findFeatures(nRequest));
40+
return new VectorTileFeatureCollection(this.getNative().findFeatures(nRequest));
4041
}
4142
}
4243
set layers(value: string | string[]) {
@@ -75,9 +76,10 @@ export class FeatureCollectionSearchService extends BaseNative<AKFeatureCollecti
7576
}
7677
}
7778
if (callback) {
78-
this.getNative().findFeaturesCallback(nRequest, (r)=>new FeatureCollection(r))
79+
this.getNative().findFeaturesCallback(nRequest, (r) => new FeatureCollection(r));
80+
return null;
7981
} else {
80-
return new FeatureCollection(this.getNative().findFeatures(nRequest));
82+
return new FeatureCollection(this.getNative().findFeatures(nRequest));
8183
}
8284
}
8385
}

src/ui-carto/vectorelements/line.ios.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export class Line extends BaseLineVectorElement<NTLine, LineOptions> {
9999
if (styleBuilder instanceof NTLineStyle) {
100100
style = styleBuilder;
101101
} else if (styleBuilder instanceof LineStyleBuilder) {
102-
style = styleBuilder.buildStyle();
102+
style = (styleBuilder as LineStyleBuilder).buildStyle();
103103
} else if (styleBuilder.hasOwnProperty) {
104104
style = new LineStyleBuilder(styleBuilder).buildStyle();
105105
}

0 commit comments

Comments
 (0)