GoogleNavigation Framework Reference

Constants

The following constants are available globally.

  • The value used to clear the followingZoomLevel, and reset the camera to adopt the default zoom behavior.

    Declaration

    Swift

    let GMSNavigationNoFollowingZoomLevel: Float

    Objective-C

    extern const float GMSNavigationNoFollowingZoomLevel
  • Accessibility identifier for the compass button.

    @related GMSMapView

    Declaration

    Swift

    let kGMSAccessibilityCompass: String

    Objective-C

    extern NSString *const kGMSAccessibilityCompass
  • Accessibility identifier for the “my location” button.

    @related GMSMapView

    Declaration

    Swift

    let kGMSAccessibilityMyLocation: String

    Objective-C

    extern NSString *const kGMSAccessibilityMyLocation
  • Accessibility identifier for the “out of quota” error label.

    @related GMSMapView

    Declaration

    Swift

    let kGMSAccessibilityOutOfQuota: String

    Objective-C

    extern NSString *const kGMSAccessibilityOutOfQuota
  • The maximum zoom (closest to the Earth’s surface) permitted by the map camera.

    Declaration

    Swift

    let kGMSMaxZoomLevel: Float

    Objective-C

    extern const float kGMSMaxZoomLevel
  • The minimum zoom (farthest from the Earth’s surface) permitted by the map camera.

    Declaration

    Swift

    let kGMSMinZoomLevel: Float

    Objective-C

    extern const float kGMSMinZoomLevel
  • Declaration

    Swift

    static let administrativeAreaLevel1: FeatureType

    Objective-C

    FOUNDATION_EXPORT GMSFeatureType const GMSFeatureTypeAdministrativeAreaLevel1
  • Declaration

    Swift

    static let administrativeAreaLevel2: FeatureType

    Objective-C

    FOUNDATION_EXPORT GMSFeatureType const GMSFeatureTypeAdministrativeAreaLevel2
  • Declaration

    Swift

    static let country: FeatureType

    Objective-C

    FOUNDATION_EXPORT GMSFeatureType const GMSFeatureTypeCountry
  • Declaration

    Swift

    static let locality: FeatureType

    Objective-C

    FOUNDATION_EXPORT GMSFeatureType const GMSFeatureTypeLocality
  • Declaration

    Swift

    static let postalCode: FeatureType

    Objective-C

    FOUNDATION_EXPORT GMSFeatureType const GMSFeatureTypePostalCode
  • Declaration

    Swift

    static let schoolDistrict: FeatureType

    Objective-C

    FOUNDATION_EXPORT GMSFeatureType const GMSFeatureTypeSchoolDistrict
  • Declaration

    Swift

    static let dataset: FeatureType

    Objective-C

    FOUNDATION_EXPORT GMSFeatureType const GMSFeatureTypeDataset
  • Value to use for strokeWidth parameter when the stroke width should be unchanged.

    Declaration

    Swift

    class let strokeWidthUnspecified: CGFloat

    Objective-C

    extern const CGFloat GMSFeatureStyleStrokeWidthUnspecified
  • Value to use for pointRadius parameter when the point radius should be unchanged.

    Declaration

    Swift

    class let pointRadiusUnspecified: CGFloat

    Objective-C

    extern const CGFloat GMSFeatureStylePointRadiusUnspecified
  • Average Earth radius in meters.

    Declaration

    Swift

    let kGMSEarthRadius: CLLocationDistance

    Objective-C

    static const CLLocationDistance kGMSEarthRadius = 6371009.0
  • The default position of the ground anchor of a GMSGroundOverlay the center point of the icon.

    Declaration

    Swift

    let kGMSGroundOverlayDefaultAnchor: CGPoint

    Objective-C

    extern const CGPoint kGMSGroundOverlayDefaultAnchor
  • kGMSLayerCameraLatitudeKey ranges from [-85, 85], and values outside this range will be clamped.

    @related GMSMapLayer

    Declaration

    Swift

    let kGMSLayerCameraLatitudeKey: String

    Objective-C

    extern NSString *const _Nonnull kGMSLayerCameraLatitudeKey
  • kGMSLayerCameraLongitudeKey ranges from [-180, 180), and values outside this range will be wrapped to within this range.

    @related GMSMapLayer

    Declaration

    Swift

    let kGMSLayerCameraLongitudeKey: String

    Objective-C

    extern NSString *const _Nonnull kGMSLayerCameraLongitudeKey
  • kGMSLayerCameraBearingKey ranges from [0, 360), and values are wrapped.

    @related GMSMapLayer

    Declaration

    Swift

    let kGMSLayerCameraBearingKey: String

    Objective-C

    extern NSString *const _Nonnull kGMSLayerCameraBearingKey
  • kGMSLayerCameraZoomLevelKey ranges from [kGMSMinZoomLevel, kGMSMaxZoomLevel], and values are clamped.

    @related GMSMapLayer

    Declaration

    Swift

    let kGMSLayerCameraZoomLevelKey: String

    Objective-C

    extern NSString *const _Nonnull kGMSLayerCameraZoomLevelKey
  • kGMSLayerCameraViewingAngleKey ranges from zero (i.e., facing straight down) and to between 30 and 45 degrees towards the horizon, depending on the model zoom level.

    @related GMSMapLayer

    Declaration

    Swift

    let kGMSLayerCameraViewingAngleKey: String

    Objective-C

    extern NSString *const _Nonnull kGMSLayerCameraViewingAngleKey
  • The default position of the ground anchor of a GMSMarker: the center bottom point of the marker icon.

    Declaration

    Swift

    let kGMSMarkerDefaultGroundAnchor: CGPoint

    Objective-C

    extern const CGPoint kGMSMarkerDefaultGroundAnchor
  • The default position of the info window anchor of a GMSMarker: the center top point of the marker icon.

    Declaration

    Swift

    let kGMSMarkerDefaultInfoWindowAnchor: CGPoint

    Objective-C

    extern const CGPoint kGMSMarkerDefaultInfoWindowAnchor
  • Declaration

    Swift

    let kGMSMarkerLayerLatitude: String

    Objective-C

    extern NSString *const kGMSMarkerLayerLatitude
  • Declaration

    Swift

    let kGMSMarkerLayerLongitude: String

    Objective-C

    extern NSString *const kGMSMarkerLayerLongitude
  • Declaration

    Swift

    let kGMSMarkerLayerRotation: String

    Objective-C

    extern NSString *const kGMSMarkerLayerRotation
  • Declaration

    Swift

    let kGMSMarkerLayerOpacity: String

    Objective-C

    extern NSString *const kGMSMarkerLayerOpacity
  • kGMSLayerPanoramaHeadingKey ranges from [0, 360).

    @related GMSPanoramaLayer

    Declaration

    Swift

    let kGMSLayerPanoramaHeadingKey: String

    Objective-C

    extern NSString *const _Nonnull kGMSLayerPanoramaHeadingKey
  • kGMSLayerPanoramaPitchKey ranges from [-90, 90].

    @related GMSPanoramaLayer

    Declaration

    Swift

    let kGMSLayerPanoramaPitchKey: String

    Objective-C

    extern NSString *const _Nonnull kGMSLayerPanoramaPitchKey
  • kGMSLayerCameraZoomLevelKey ranges from [1, 5], default 1.

    @related GMSPanoramaLayer

    Declaration

    Swift

    let kGMSLayerPanoramaZoomKey: String

    Objective-C

    extern NSString *const _Nonnull kGMSLayerPanoramaZoomKey
  • kGMSLayerPanoramaFOVKey ranges from 1, 160, default 90.

    @related GMSPanoramaLayer

    Declaration

    Swift

    let kGMSLayerPanoramaFOVKey: String

    Objective-C

    extern NSString *const _Nonnull kGMSLayerPanoramaFOVKey
  • kGMSEquatorProjectedMeter may be useful when specifying lengths for segment in “projected” units. The value of kGMSEquatorProjectedMeter, 1/(pi * EarthRadius), represents the length of one meter at the equator in projected units. For example to specify a projected length that corresponds to 100km at the equator use 100000 * kGMSEquatorProjectedMeter. See [GMSPath segmentsForLength:kind:], [GMSPath lengthOfKind:] and kGMSLengthProjected.

    Declaration

    Swift

    let kGMSEquatorProjectedMeter: Double

    Objective-C

    extern const double kGMSEquatorProjectedMeter
  • Declaration

    Swift

    let kGMSPolygonLayerStrokeWidth: String

    Objective-C

    extern NSString *const kGMSPolygonLayerStrokeWidth
  • Declaration

    Swift

    let kGMSPolygonLayerStrokeColor: String

    Objective-C

    extern NSString *const kGMSPolygonLayerStrokeColor
  • Declaration

    Swift

    let kGMSPolygonLayerFillColor: String

    Objective-C

    extern NSString *const kGMSPolygonLayerFillColor
  • Stub tile that is used to indicate that no tile exists for a specific tile coordinate. May be returned by -tileForX:y:zoom: on GMSTileOverlay.

    Declaration

    Swift

    let kGMSTileLayerNoTile: UIImage

    Objective-C

    extern UIImage *const _Nonnull kGMSTileLayerNoTile