@@ -2156,11 +2156,10 @@ export class Mapbox extends MapboxCommon implements MapboxApi {
21562156 }
21572157 }
21582158 if ( options . bounds ) {
2159- sourceOptions [ MGLTileSourceOptionCoordinateBounds ] = ( NSValue as any ) . valueWithMGLCoordinateBounds ( {
2159+ sourceOptions [ MGLTileSourceOptionCoordinateBounds ] = ( NSValue as any ) . valueWithMGLCoordinateBounds ( {
21602160 sw : CLLocationCoordinate2DMake ( options . bounds [ 1 ] , options . bounds [ 0 ] ) ,
21612161 ne : CLLocationCoordinate2DMake ( options . bounds [ 3 ] , options . bounds [ 2 ] ) ,
21622162 } ) ;
2163-
21642163 }
21652164 source = MGLVectorTileSource . alloc ( ) . initWithIdentifierTileURLTemplatesOptions ( id , options . tiles , sourceOptions ) ;
21662165 }
@@ -2175,9 +2174,9 @@ export class Mapbox extends MapboxCommon implements MapboxApi {
21752174 if ( options . data ) {
21762175 const content : NSString = NSString . stringWithString ( JSON . stringify ( options . data ) ) ;
21772176 const nsData : NSData = content . dataUsingEncoding ( NSUTF8StringEncoding ) ;
2178- geoJsonShape = MGLShape . shapeWithDataEncodingError ( nsData , NSUTF8StringEncoding ) ;
2177+ geoJsonShape = MGLShape . shapeWithDataEncodingError ( nsData , NSUTF8StringEncoding ) ;
21792178 }
2180-
2179+
21812180 const sourceOptions : any = { } ;
21822181 if ( options . minzoom !== undefined ) {
21832182 sourceOptions [ MGLShapeSourceOptionMinimumZoomLevel ] = options . minzoom ;
@@ -2213,11 +2212,11 @@ export class Mapbox extends MapboxCommon implements MapboxApi {
22132212 }
22142213
22152214 if ( options . bounds ) {
2216- sourceOptions [ MGLTileSourceOptionCoordinateBounds ] = ( NSValue as any ) . valueWithMGLCoordinateBounds ( ( {
2215+ sourceOptions [ MGLTileSourceOptionCoordinateBounds ] = ( NSValue as any ) . valueWithMGLCoordinateBounds ( {
22172216 sw : CLLocationCoordinate2DMake ( options . bounds [ 1 ] , options . bounds [ 0 ] ) ,
22182217 ne : CLLocationCoordinate2DMake ( options . bounds [ 3 ] , options . bounds [ 2 ] ) ,
2219- } ) ) ;
2220- console . log ( 'test' , sourceOptions [ MGLTileSourceOptionCoordinateBounds ] )
2218+ } ) ;
2219+ console . log ( 'test' , sourceOptions [ MGLTileSourceOptionCoordinateBounds ] ) ;
22212220 }
22222221 source = MGLRasterTileSource . alloc ( ) . initWithIdentifierTileURLTemplatesOptions ( id , options . tiles , sourceOptions ) ;
22232222
0 commit comments