Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added properties for _mapScrollView and _overlayView to make them accessible #141

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions MapView/Map/RMMapView.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,12 @@ typedef NS_ENUM(NSUInteger, RMMapDecelerationMode) {

@property (nonatomic, assign) NSUInteger boundingMask;

/** The scroll view containing the map tiles */
@property (nonatomic, assign, readonly) RMMapScrollView *mapScrollView;

/** The view used for map overlays like annotations */
@property (nonatomic, assign, readonly) RMMapOverlayView *overlayView;

/** A custom, static view to use behind the map tiles. The default behavior is to use grid imagery that moves with map panning like MapKit. */
@property (nonatomic, retain) UIView *backgroundView;

Expand Down
10 changes: 10 additions & 0 deletions MapView/Map/RMMapView.m
Original file line number Diff line number Diff line change
Expand Up @@ -2153,6 +2153,16 @@ - (void)reloadTileSourceAtIndex:(NSUInteger)index

#pragma mark - Properties

- (RMMapScrollView *)mapScrollView
{
return [[_mapScrollView retain] autorelease];
}

- (RMMapOverlayView *)overlayView
{
return [[_overlayView retain] autorelease];
}

- (UIView *)backgroundView
{
return [[_backgroundView retain] autorelease];
Expand Down