@@ -326,35 +326,113 @@ NS_ASSUME_NONNULL_BEGIN
326
326
*/
327
327
- (BOOL )mapView : (MLNMapView *)mapView shouldRemoveStyleImage : (NSString *)imageName ;
328
328
329
- // MARK: Shader Compilation
329
+ // MARK: - Shader Compilation
330
330
331
+ /* *
332
+ Called when a shader is about to be compiled.
333
+
334
+ @param mapView The ``MLNMapView`` instance invoking this delegate method.
335
+ @param id The unique identifier for the shader being compiled.
336
+ @param backend An integer representing the backend type used for shader compilation.
337
+ @param defines A string containing the shader program configuration definitions.
338
+
339
+ > Warning: This method is not thread-safe.
340
+ */
331
341
- (void )mapView : (MLNMapView *)mapView
332
342
shaderWillCompile : (NSInteger )id
333
343
backend : (NSInteger )backend
334
344
defines : (NSString *)defines ;
345
+
346
+ /* *
347
+ Called when a shader was successfully compiled.
348
+
349
+ @param mapView The ``MLNMapView`` instance invoking this delegate method.
350
+ @param id The unique identifier for the shader that was compiled.
351
+ @param backend An integer representing the backend type used for shader compilation.
352
+ @param defines A string containing the shader program configuration definitions.
353
+
354
+ > Warning: This method is not thread-safe.
355
+ */
335
356
- (void )mapView : (MLNMapView *)mapView
336
357
shaderDidCompile : (NSInteger )id
337
358
backend : (NSInteger )backend
338
359
defines : (NSString *)defines ;
360
+
361
+ /* *
362
+ Called when a shader failed to compile.
363
+
364
+ @param mapView The ``MLNMapView`` instance invoking this delegate method.
365
+ @param id The unique identifier for the shader that failed to compile.
366
+ @param backend An integer representing the backend type used for shader compilation.
367
+ @param defines A string containing the shader program configuration definitions.
368
+
369
+ > Warning: This method is not thread-safe.
370
+ */
339
371
- (void )mapView : (MLNMapView *)mapView
340
372
shaderDidFailCompile : (NSInteger )id
341
373
backend : (NSInteger )backend
342
374
defines : (NSString *)defines ;
343
375
344
- // MARK: Glyph Requests
376
+ // MARK: - Glyph Requests
377
+
378
+ /* *
379
+ Called when glyphs for the specified font stack are about to be loaded.
380
+
381
+ @param mapView The ``MLNMapView`` instance invoking this delegate method.
382
+ @param fontStack An array of strings identifying the requested font stack.
383
+ @param range The range of glyphs that are being requested.
345
384
385
+ > Warning: This method is not thread-safe.
386
+ */
346
387
- (void )mapView : (MLNMapView *)mapView
347
388
glyphsWillLoad : (NSArray <NSString *> *)fontStack
348
389
range : (NSRange )range ;
390
+
391
+ /* *
392
+ Called when glyphs for the specified font stack have been successfully loaded.
393
+
394
+ @param mapView The ``MLNMapView`` instance invoking this delegate method.
395
+ @param fontStack An array of strings identifying the requested font stack.
396
+ @param range The range of glyphs that were successfully loaded.
397
+
398
+ > Warning: This method is not thread-safe.
399
+ */
349
400
- (void )mapView : (MLNMapView *)mapView
350
401
glyphsDidLoad : (NSArray <NSString *> *)fontStack
351
402
range : (NSRange )range ;
403
+
404
+ /* *
405
+ Called when an error occurred while loading glyphs for the specified font stack.
406
+
407
+ @param mapView The ``MLNMapView`` instance invoking this delegate method.
408
+ @param fontStack An array of strings identifying the requested font stack.
409
+ @param range The range of glyphs for which loading failed.
410
+
411
+ > Warning: This method is not thread-safe.
412
+ */
352
413
- (void )mapView : (MLNMapView *)mapView
353
414
glyphsDidError : (NSArray <NSString *> *)fontStack
354
415
range : (NSRange )range ;
355
416
356
- // MARK: Tile Requests
417
+ // MARK: - Tile Requests
418
+
419
+ /* *
420
+ Called when a tile-related action is triggered.
421
+
422
+ This method notifies the delegate of various stages of tile processing, such as requesting from
423
+ cache or network, parsing, or encountering errors.
424
+
425
+ @param mapView The ``MLNMapView`` instance invoking this delegate method.
426
+ @param operation The type of tile operation triggered. See ``MLNTileOperation``.
427
+ @param x The x-coordinate of the tile.
428
+ @param y The y-coordinate of the tile.
429
+ @param z The z (zoom) level of the tile.
430
+ @param wrap The wrap value for the tile.
431
+ @param overscaledZ The overscaled zoom level of the tile.
432
+ @param sourceID A string identifier for the tile source.
357
433
434
+ > Warning: This method is not thread-safe.
435
+ */
358
436
- (void )mapView : (MLNMapView *)mapView
359
437
tileDidTriggerAction : (MLNTileOperation)operation
360
438
x : (NSInteger )x
@@ -364,10 +442,39 @@ NS_ASSUME_NONNULL_BEGIN
364
442
overscaledZ : (NSInteger )overscaledZ
365
443
sourceID : (NSString *)sourceID ;
366
444
367
- // MARK: Sprite Requests
445
+ // MARK: - Sprite Requests
446
+
447
+ /* *
448
+ Called when a sprite is about to be loaded.
368
449
450
+ @param mapView The ``MLNMapView`` instance invoking this delegate method.
451
+ @param id The unique identifier for the sprite being loaded.
452
+ @param url The URL from which the sprite is being requested.
453
+
454
+ > Warning: This method is not thread-safe.
455
+ */
369
456
- (void )mapView : (MLNMapView *)mapView spriteWillLoad : (NSString *)id url : (NSString *)url ;
457
+
458
+ /* *
459
+ Called when a sprite has been successfully loaded.
460
+
461
+ @param mapView The ``MLNMapView`` instance invoking this delegate method.
462
+ @param id The unique identifier for the sprite that was loaded.
463
+ @param url The URL from which the sprite was loaded.
464
+
465
+ > Warning: This method is not thread-safe.
466
+ */
370
467
- (void )mapView : (MLNMapView *)mapView spriteDidLoad : (NSString *)id url : (NSString *)url ;
468
+
469
+ /* *
470
+ Called when an error occurs while loading a sprite.
471
+
472
+ @param mapView The ``MLNMapView`` instance invoking this delegate method.
473
+ @param id The unique identifier for the sprite for which loading failed.
474
+ @param url The URL from which the sprite was being requested.
475
+
476
+ > Warning: This method is not thread-safe.
477
+ */
371
478
- (void )mapView : (MLNMapView *)mapView spriteDidError : (NSString *)id url : (NSString *)url ;
372
479
373
480
// MARK: Tracking User Location
0 commit comments