Skip to content

Commit 728e79c

Browse files
committed
chore: clenup
1 parent f85c9fa commit 728e79c

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

src/mapbox.android.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2353,7 +2353,7 @@ export class Mapbox extends MapboxCommon implements MapboxApi {
23532353
}
23542354
} catch (ex) {
23552355
if (Trace.isEnabled()) {
2356-
CLog(CLogTypes.info, 'Error in mapbox.addSource: ' + ex);
2356+
CLog(CLogTypes.info, 'Error in mapbox.updateSource: ' + ex);
23572357
}
23582358
reject(ex);
23592359
}
@@ -2642,7 +2642,6 @@ export class Mapbox extends MapboxCommon implements MapboxApi {
26422642
com.mapbox.mapboxsdk.style.layers.PropertyFactory.circleRadius(new java.lang.Float(16.0)),
26432643
com.mapbox.mapboxsdk.style.layers.PropertyFactory.circleBlur(new java.lang.Float(0.2)),
26442644
]);
2645-
console.log(com.mapbox.mapboxsdk.style.expressions.Expression.get('cluster'));
26462645
unclustered.setFilter(com.mapbox.mapboxsdk.style.expressions.Expression.neq(com.mapbox.mapboxsdk.style.expressions.Expression.get('cluster'), true));
26472646
this._mapboxMapInstance.getStyle().addLayer(unclustered); // , "building");
26482647

src/mapbox.ios.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -353,9 +353,8 @@ export class MapboxView extends MapboxViewBase {
353353
});
354354
// this.delegate.setStyleLoadedCallback((map, style)=>{
355355
// this.delegate.setStyleLoadedCallback(null);
356-
357-
// });
358356

357+
// });
359358

360359
_setMapboxMapOptions(this.nativeMapView, this.settings);
361360
_markers = [];
@@ -2248,7 +2247,6 @@ export class Mapbox extends MapboxCommon implements MapboxApi {
22482247
sw: CLLocationCoordinate2DMake(options.bounds[1], options.bounds[0]),
22492248
ne: CLLocationCoordinate2DMake(options.bounds[3], options.bounds[2]),
22502249
});
2251-
console.log('test', sourceOptions[MGLTileSourceOptionCoordinateBounds]);
22522250
}
22532251
source = MGLRasterTileSource.alloc().initWithIdentifierTileURLTemplatesOptions(id, options.tiles, sourceOptions);
22542252

@@ -2646,7 +2644,7 @@ class MGLMapViewDelegateImpl extends NSObject implements MGLMapViewDelegate {
26462644
}
26472645

26482646
private mapLoadedCallback: (mapView: MGLMapView) => void;
2649-
private styleLoadedCallback: (mapView: MGLMapView, style:MGLStyle) => void;
2647+
private styleLoadedCallback: (mapView: MGLMapView, style: MGLStyle) => void;
26502648

26512649
private mapboxApi: any;
26522650

@@ -2721,7 +2719,7 @@ class MGLMapViewDelegateImpl extends NSObject implements MGLMapViewDelegate {
27212719
*
27222720
* @see Mapbox:setMapStyle()
27232721
*/
2724-
setStyleLoadedCallback(callback: (mapView: MGLMapView, style:MGLStyle) => void) {
2722+
setStyleLoadedCallback(callback: (mapView: MGLMapView, style: MGLStyle) => void) {
27252723
this.styleLoadedCallback = callback;
27262724
}
27272725

@@ -2757,7 +2755,7 @@ class MGLMapViewDelegateImpl extends NSObject implements MGLMapViewDelegate {
27572755
*
27582756
* @link https://mapbox.github.io/mapbox-gl-native/macos/0.3.0/Protocols/MGLMapViewDelegate.html#/c:objc(pl)MGLMapViewDelegate(im)mapView:didFinishLoadingStyle:
27592757
*/
2760-
mapViewDidFinishLoadingStyle(mapView: MGLMapView, style:MGLStyle): void {
2758+
mapViewDidFinishLoadingStyle(mapView: MGLMapView, style: MGLStyle): void {
27612759
if (Trace.isEnabled()) {
27622760
CLog(CLogTypes.info, 'MGLMapViewDelegateImpl:mapViewDidFinishLoadingStyle(): callback called.');
27632761
}

0 commit comments

Comments
 (0)