CARVIEW |
Select Language
HTTP/2 301
location: https://raw.githubusercontent.com/neilang/NAMapKit/v3.2.0/NAMapKit/NAAnnotation.h
accept-ranges: bytes
date: Sun, 12 Oct 2025 04:51:17 GMT
via: 1.1 varnish
age: 0
x-served-by: cache-bom-vanm7210027-BOM
x-cache: MISS
x-cache-hits: 0
x-timer: S1760244676.073470,VS0,VE1153
vary: Accept-Encoding
x-fastly-request-id: 179f6671231c909852e795f2bb37d59bd5129f13
content-length: 0
HTTP/2 200
cache-control: max-age=300
content-security-policy: default-src 'none'; style-src 'unsafe-inline'; sandbox
content-type: text/plain; charset=utf-8
etag: W/"9037f81f37038600516c3f64a4db536323790bccd2d6e7c6e18a7c4d8d3ec869"
strict-transport-security: max-age=31536000
x-content-type-options: nosniff
x-frame-options: deny
x-xss-protection: 1; mode=block
x-github-request-id: 4EEC:36725F:1CB2EF:4B8C50:68EB33C5
content-encoding: gzip
accept-ranges: bytes
date: Sun, 12 Oct 2025 04:51:17 GMT
via: 1.1 varnish
x-served-by: cache-bom-vanm7210061-BOM
x-cache: MISS
x-cache-hits: 0
x-timer: S1760244677.280025,VS0,VE338
vary: Authorization,Accept-Encoding
access-control-allow-origin: *
cross-origin-resource-policy: cross-origin
x-fastly-request-id: 249d08cf971aec4c2c5df203d4d6dfadc8a23ba9
expires: Sun, 12 Oct 2025 04:56:17 GMT
source-age: 0
content-length: 605
//
// NAAnnotation.h
// NAMapKit
//
// Created by Neil Ang on 21/07/10.
// Copyright (c) 2010-14 neilang.com. All rights reserved.
//
#import
#import "NAMapViewDelegate.h"
@class NAMapView;
/**
* An annotation is a point on a map.
*/
@interface NAAnnotation : NSObject
/// Point on the map.
@property (nonatomic, assign) CGPoint point;
/// Associated view, displayed on an NAMapView.
@property (nonatomic, readonly) UIView *view;
/// Create an annotation at a given point.
+ (id)annotationWithPoint:(CGPoint)point;
/// Create an annotation at a given point.
- (id)initWithPoint:(CGPoint)point;
/// Callback invoked when adding an annotation to a map view.
- (void)addToMapView:(NAMapView *)mapView animated:(BOOL)animate;
/// Remove this annotation from its map view.
- (void)removeFromMapView;
/// Update the annotation position when zooming in or out.
- (void)updatePosition;
/// Override to return a custom view when the annotation is being added to a map view.
- (UIView *)createViewOnMapView:(NAMapView *)mapView;
/// A delegate to invoke map-specific events.
@property (nonatomic, weak) NSObject *mapViewDelegate;
/// Map view to which the annotation currently belongs.
@property (nonatomic, readonly, weak) NAMapView *mapView;
@end