GLMapTileSource

Objective-C

@interface GLMapTileSource : NSObject

Swift

class GLMapTileSource : NSObject

GLMapTileSource is the base class for raster and vector tile sources.

  • Called when the layer will be attached to the map view.

    Declaration

    Objective-C

    - (void)willAttachToMapView:(GLMapView *_Nonnull)mapView;

    Swift

    func willAttach(to mapView: GLMapView)

    Parameters

    mapView

    The map view where the layer will be attached.

  • Called when the layer will be detached from the map view.

    Declaration

    Objective-C

    - (void)willDetachFromMapView:(GLMapView *_Nonnull)mapView;

    Swift

    func willDetach(from mapView: GLMapView)

    Parameters

    mapView

    The map view from where the layer will be detached.