GoogleMaps Framework Reference

  • This documentation details globally available protocols for the Google Maps SDK for iOS.

  • These protocols define interfaces for features, indoor displays, map views, panorama views, and tile receivers.

  • The protocols act as delegates, receiving events and providing callbacks for interactions with map elements.

  • Developers use these protocols to customize the behavior and appearance of map features within their iOS applications.

  • It is crucial to note that feature object references are not stable and should not be stored for extended use.

Protocols

The following protocols are available globally.

  • An interface representing a feature’s metadata.

    Do not save a reference to a particular feature object because the reference will not be stable.

    Declaration

    Swift

    protocol Feature : NSObjectProtocol

    Objective-C

    @protocol GMSFeature <NSObject>
  • Delegate for events on GMSIndoorDisplay.

    Declaration

    Swift

    protocol GMSIndoorDisplayDelegate : NSObjectProtocol

    Objective-C

    @protocol GMSIndoorDisplayDelegate <NSObject>
  • Delegate for events on GMSMapView.

    Declaration

    Swift

    protocol GMSMapViewDelegate : NSObjectProtocol

    Objective-C

    @protocol GMSMapViewDelegate <NSObject>
  • Delegate for events on GMSPanoramaView.

    Declaration

    Swift

    protocol GMSPanoramaViewDelegate : NSObjectProtocol

    Objective-C

    @protocol GMSPanoramaViewDelegate <NSObject>
  • GMSTileReceiver is provided to GMSTileLayer when a tile request is made, allowing the callback to be later (or immediately) invoked.

    Declaration

    Swift

    protocol GMSTileReceiver : NSObjectProtocol

    Objective-C

    @protocol GMSTileReceiver <NSObject>