Toggle navigation
Toggle navigation
This project
Loading...
Sign in
尹诚
/
Mapbox-iOS-SDK
·
Commits
Go to a project
GitLab
Go to dashboard
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
Thomas Rasch
13 years ago
Commit
c7f14c11afcb52158701f932c1960dfc154ad06f
1 parent
048306cb
o Added property zoomingInPivotsAroundCenter
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
MapView/Map/RMMapView.h
MapView/Map/RMMapView.m
MapView/Map/RMMapView.h
View file @
c7f14c1
...
...
@@ -73,6 +73,7 @@ typedef enum : NSUInteger {
@property
(
nonatomic
,
assign
)
BOOL
enableDragging
;
@property
(
nonatomic
,
assign
)
BOOL
enableBouncing
;
@property
(
nonatomic
,
assign
)
BOOL
zoomingInPivotsAroundCenter
;
@property
(
nonatomic
,
assign
)
RMMapDecelerationMode
decelerationMode
;
@property
(
nonatomic
,
assign
)
double
metersPerPixel
;
...
...
MapView/Map/RMMapView.m
View file @
c7f14c1
...
...
@@ -124,6 +124,7 @@
@synthesize
decelerationMode
=
_decelerationMode
;
@synthesize
boundingMask
=
_boundingMask
;
@synthesize
zoomingInPivotsAroundCenter
=
_zoomingInPivotsAroundCenter
;
@synthesize
minZoom
=
_minZoom
,
maxZoom
=
_maxZoom
;
@synthesize
screenScale
=
_screenScale
;
@synthesize
tileCache
=
_tileCache
;
...
...
@@ -145,7 +146,7 @@
minZoomLevel
:(
float
)
minZoomLevel
backgroundImage
:(
UIImage
*
)
backgroundImage
{
_constrainMovement
=
_enableBouncing
=
NO
;
_constrainMovement
=
_enableBouncing
=
_zoomingInPivotsAroundCenter
=
NO
;
_enableDragging
=
YES
;
self
.
backgroundColor
=
[
UIColor
grayColor
];
...
...
@@ -1114,7 +1115,10 @@
-
(
void
)
mapTiledLayerView
:
(
RMMapTiledLayerView
*
)
aTiledLayerView
doubleTapAtPoint
:
(
CGPoint
)
aPoint
{
[
self
zoomInToNextNativeZoomAt
:
aPoint
animated
:
YES
];
if
(
self
.
zoomingInPivotsAroundCenter
)
[
self
zoomInToNextNativeZoomAt
:[
self
convertPoint
:
self
.
center
fromView
:
self
.
superview
]
animated
:
YES
];
else
[
self
zoomInToNextNativeZoomAt
:
aPoint
animated
:
YES
];
if
(
_delegateHasDoubleTapOnMap
)
[
_delegate
doubleTapOnMap
:
self
at
:
aPoint
];
...
...
Please
register
or
login
to post a comment