| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- //
- // GMSOverlay.h
- // Google Maps SDK for iOS
- //
- // Copyright 2013 Google Inc.
- //
- // Usage of this SDK is subject to the Google Maps/Google Earth APIs Terms of
- // Service: https://developers.google.com/maps/terms
- //
- #import <CoreLocation/CoreLocation.h>
- #if __has_feature(modules)
- @import GoogleMapsBase;
- #else
- #import <GoogleMapsBase/GoogleMapsBase.h>
- #endif
- GMS_ASSUME_NONNULL_BEGIN
- @class GMSMapView;
- /**
- * GMSOverlay is an abstract class that represents some overlay that may be
- * attached to a specific GMSMapView. It may not be instantiated directly;
- * instead, instances of concrete overlay types should be created directly
- * (such as GMSMarker, GMSPolyline, and GMSPolygon).
- *
- * This supports the NSCopying protocol; [overlay_ copy] will return a copy
- * of the overlay type, but with |map| set to nil.
- */
- @interface GMSOverlay : NSObject<NSCopying>
- /**
- * Title, a short description of the overlay. Some overlays, such as markers,
- * will display the title on the map. The title is also the default
- * accessibility text.
- */
- @property(nonatomic, copy) NSString *GMS_NULLABLE_PTR title;
- /**
- * The map this overlay is on. Setting this property will add the overlay to the
- * map. Setting it to nil removes this overlay from the map. An overlay may be
- * active on at most one map at any given time.
- */
- @property(nonatomic, weak) GMSMapView *GMS_NULLABLE_PTR map;
- /**
- * If this overlay should cause tap notifications. Some overlays, such as
- * markers, will default to being tappable.
- */
- @property(nonatomic, assign, getter=isTappable) BOOL tappable;
- /**
- * Higher |zIndex| value overlays will be drawn on top of lower |zIndex|
- * value tile layers and overlays. Equal values result in undefined draw
- * ordering. Markers are an exception that regardless of |zIndex|, they will
- * always be drawn above tile layers and other non-marker overlays; they
- * are effectively considered to be in a separate z-index group compared to
- * other overlays.
- */
- @property(nonatomic, assign) int zIndex;
- @end
- GMS_ASSUME_NONNULL_END
|