GMSMarkerLayer.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. //
  2. // GMSMarkerLayer.h
  3. // Google Maps SDK for iOS
  4. //
  5. // Copyright 2013 Google Inc.
  6. //
  7. // Usage of this SDK is subject to the Google Maps/Google Earth APIs Terms of
  8. // Service: https://developers.google.com/maps/terms
  9. //
  10. #import <CoreLocation/CoreLocation.h>
  11. #import <QuartzCore/QuartzCore.h>
  12. #if __has_feature(modules)
  13. @import GoogleMapsBase;
  14. #else
  15. #import <GoogleMapsBase/GoogleMapsBase.h>
  16. #endif
  17. GMS_ASSUME_NONNULL_BEGIN
  18. /**
  19. * GMSMarkerLayer is a custom subclass of CALayer, available on a per-marker
  20. * basis, that allows animation of several properties of its associated
  21. * GMSMarker.
  22. *
  23. * Note that this CALayer is never actually rendered directly, as GMSMapView is
  24. * provided entirely via an OpenGL layer. As such, adjustments or animations to
  25. * 'default' properties of CALayer will not have any effect.
  26. */
  27. @interface GMSMarkerLayer : CALayer
  28. /** Latitude, part of |position| on GMSMarker. */
  29. @property(nonatomic, assign) CLLocationDegrees latitude;
  30. /** Longitude, part of |position| on GMSMarker. */
  31. @property(nonatomic, assign) CLLocationDegrees longitude;
  32. /** Rotation, as per GMSMarker. */
  33. @property(nonatomic, assign) CLLocationDegrees rotation;
  34. /** Opacity, as per GMSMarker. */
  35. @property float opacity;
  36. @end
  37. extern NSString *const kGMSMarkerLayerLatitude;
  38. extern NSString *const kGMSMarkerLayerLongitude;
  39. extern NSString *const kGMSMarkerLayerRotation;
  40. extern NSString *const kGMSMarkerLayerOpacity;
  41. GMS_ASSUME_NONNULL_END