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
8b63016007fdd7c2602703e3accce50d2e1e6e8b
1 parent
e0fb7ec2
o Updated the sample projects
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
24 additions
and
24 deletions
Proj4/Proj4.xcodeproj/project.pbxproj
samples/LayeredMap/LayeredMap.xcodeproj/project.pbxproj
samples/MBTilesDemo/MBTilesDemo.xcodeproj/project.pbxproj
samples/MapMemoryLeaksCheck/MapMemoryLeaksCheck.xcodeproj/project.pbxproj
samples/MapTestbed/Classes/MainViewController.m
samples/MapTestbed/MapTestbed.xcodeproj/project.pbxproj
samples/MapTestbedFlipMaps/MapTestbedFlipMaps.xcodeproj/project.pbxproj
samples/MapTestbedTwoMaps/Classes/MainViewController.m
samples/MapTestbedTwoMaps/MapTestbedTwoMaps.xcodeproj/project.pbxproj
samples/MarkerMurder/MarkerMurder.xcodeproj/project.pbxproj
samples/ProgrammaticMap/ProgrammaticMap.xcodeproj/project.pbxproj
samples/SampleMap/SampleMap.xcodeproj/project.pbxproj
samples/SimpleMap/Classes/MapViewViewController.m
samples/SimpleMap/SimpleMap.xcodeproj/project.pbxproj
samples/SimpleSampleMap/Classes/MapViewViewController.m
samples/SimpleSampleMap/SimpleSampleMap.xcodeproj/project.pbxproj
Proj4/Proj4.xcodeproj/project.pbxproj
View file @
8b63016
...
...
@@ -620,7 +620,7 @@
0867D690FE84028FC02AAC07 /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 04
3
0;
LastUpgradeCheck = 04
5
0;
};
buildConfigurationList = 1DEB922208733DC00010E9CD /* Build configuration list for PBXProject "Proj4" */;
compatibilityVersion = "Xcode 3.2";
...
...
samples/LayeredMap/LayeredMap.xcodeproj/project.pbxproj
View file @
8b63016
...
...
@@ -183,7 +183,7 @@
29B97313FDCFA39411CA2CEA /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 04
2
0;
LastUpgradeCheck = 04
5
0;
};
buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "LayeredMap" */;
compatibilityVersion = "Xcode 3.2";
...
...
samples/MBTilesDemo/MBTilesDemo.xcodeproj/project.pbxproj
View file @
8b63016
...
...
@@ -198,7 +198,7 @@
29B97313FDCFA39411CA2CEA /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 04
2
0;
LastUpgradeCheck = 04
5
0;
};
buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "MBTilesDemo" */;
compatibilityVersion = "Xcode 3.2";
...
...
samples/MapMemoryLeaksCheck/MapMemoryLeaksCheck.xcodeproj/project.pbxproj
View file @
8b63016
...
...
@@ -188,7 +188,7 @@
29B97313FDCFA39411CA2CEA /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 04
2
0;
LastUpgradeCheck = 04
5
0;
};
buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "MapMemoryLeaksCheck" */;
compatibilityVersion = "Xcode 3.2";
...
...
samples/MapTestbed/Classes/MainViewController.m
View file @
8b63016
...
...
@@ -8,6 +8,7 @@
#import "MainView.h"
#import "RMPath.h"
#import "RMShape.h"
#import "RMMarker.h"
#import "RMAnnotation.h"
...
...
@@ -29,7 +30,7 @@
{
[
super
viewDidLoad
];
mapView
.
delegate
=
self
;
mapView
.
decelerationMode
=
RMMapDeceleration
Fast
;
mapView
.
decelerationMode
=
RMMapDeceleration
Normal
;
[
self
updateInfo
];
}
...
...
@@ -88,16 +89,14 @@
-
(
RMMapLayer
*
)
mapView
:
(
RMMapView
*
)
aMapView
layerForAnnotation
:
(
RMAnnotation
*
)
annotation
{
if
([
annotation
.
annotationType
isEqualToString
:
@"path"
])
{
RMPath
*
testPath
=
[[[
RMPath
alloc
]
initWithView
:
aMapView
]
autorelease
];
if
([
annotation
.
annotationType
isEqualToString
:
@"path"
])
{
// RMPath *testPath = [[[RMPath alloc] initWithView:aMapView] autorelease];
RMShape
*
testPath
=
[[[
RMShape
alloc
]
initWithView
:
aMapView
]
autorelease
];
[
testPath
setLineColor
:[
annotation
.
userInfo
objectForKey
:
@"lineColor"
]];
[
testPath
setFillColor
:[
annotation
.
userInfo
objectForKey
:
@"fillColor"
]];
[
testPath
setLineWidth
:[[
annotation
.
userInfo
objectForKey
:
@"lineWidth"
]
floatValue
]];
CGPathDrawingMode
drawingMode
=
kCGPathStroke
;
if
([
annotation
.
userInfo
containsObject
:
@"pathDrawingMode"
])
drawingMode
=
[[
annotation
.
userInfo
objectForKey
:
@"pathDrawingMode"
]
intValue
];
[
testPath
setDrawingMode
:
drawingMode
];
// testPath.scaleLineWidth = YES;
if
([[
annotation
.
userInfo
objectForKey
:
@"closePath"
]
boolValue
])
[
testPath
closePath
];
...
...
@@ -109,7 +108,9 @@
return
testPath
;
}
if
([
annotation
.
annotationType
isEqualToString
:
@"marker"
])
{
if
([
annotation
.
annotationType
isEqualToString
:
@"marker"
])
{
return
[[[
RMMarker
alloc
]
initWithUIImage
:
annotation
.
annotationIcon
anchorPoint
:
annotation
.
anchorPoint
]
autorelease
];
}
...
...
samples/MapTestbed/MapTestbed.xcodeproj/project.pbxproj
View file @
8b63016
...
...
@@ -226,7 +226,7 @@
29B97313FDCFA39411CA2CEA /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 04
3
0;
LastUpgradeCheck = 04
5
0;
};
buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "MapTestbed" */;
compatibilityVersion = "Xcode 3.2";
...
...
samples/MapTestbedFlipMaps/MapTestbedFlipMaps.xcodeproj/project.pbxproj
View file @
8b63016
...
...
@@ -235,7 +235,7 @@
29B97313FDCFA39411CA2CEA /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 04
2
0;
LastUpgradeCheck = 04
5
0;
};
buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "MapTestbedFlipMaps" */;
compatibilityVersion = "Xcode 3.2";
...
...
samples/MapTestbedTwoMaps/Classes/MainViewController.m
View file @
8b63016
...
...
@@ -26,7 +26,6 @@
// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
-
(
void
)
viewDidLoad
{
LogMethod
();
[
super
viewDidLoad
];
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector
:
@selector
(
tileNotification
:)
name
:
RMTileRequested
object
:
nil
];
...
...
samples/MapTestbedTwoMaps/MapTestbedTwoMaps.xcodeproj/project.pbxproj
View file @
8b63016
...
...
@@ -223,7 +223,7 @@
29B97313FDCFA39411CA2CEA /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 04
2
0;
LastUpgradeCheck = 04
5
0;
};
buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "MapTestbedTwoMaps" */;
compatibilityVersion = "Xcode 3.2";
...
...
samples/MarkerMurder/MarkerMurder.xcodeproj/project.pbxproj
View file @
8b63016
...
...
@@ -238,7 +238,7 @@
29B97313FDCFA39411CA2CEA /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 04
3
0;
LastUpgradeCheck = 04
5
0;
};
buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "MarkerMurder" */;
compatibilityVersion = "Xcode 3.2";
...
...
samples/ProgrammaticMap/ProgrammaticMap.xcodeproj/project.pbxproj
View file @
8b63016
...
...
@@ -186,7 +186,7 @@
29B97313FDCFA39411CA2CEA /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 04
2
0;
LastUpgradeCheck = 04
5
0;
};
buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "ProgrammaticMap" */;
compatibilityVersion = "Xcode 3.2";
...
...
samples/SampleMap/SampleMap.xcodeproj/project.pbxproj
View file @
8b63016
...
...
@@ -226,7 +226,7 @@
29B97313FDCFA39411CA2CEA /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 04
2
0;
LastUpgradeCheck = 04
5
0;
};
buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "SampleMap" */;
compatibilityVersion = "Xcode 3.2";
...
...
samples/SimpleMap/Classes/MapViewViewController.m
View file @
8b63016
...
...
@@ -122,7 +122,7 @@
-
(
void
)
tapOnLabelForAnnotation
:
(
RMAnnotation
*
)
annotation
onMap
:
(
RMMapView
*
)
map
{
NSLog
(
@"Label <%@, RC:%d> tapped for marker <%@, RC:%d>"
,
((
RMMarker
*
)
annotation
.
layer
).
label
,
[((
RMMarker
*
)
annotation
.
layer
).
label
retainCount
],
(
RMMarker
*
)
annotation
.
layer
,
[(
RMMarker
*
)
annotation
.
layer
retainCount
]);
[(
RMMarker
*
)
annotation
.
layer
changeLabelUsingText
:[
NSString
stringWithFormat
:
@"Tapped! (%
U
)"
,
++
tapCount
]];
[(
RMMarker
*
)
annotation
.
layer
changeLabelUsingText
:[
NSString
stringWithFormat
:
@"Tapped! (%
d
)"
,
++
tapCount
]];
}
// Implement viewDidLoad to do additional setup after loading the view.
...
...
samples/SimpleMap/SimpleMap.xcodeproj/project.pbxproj
View file @
8b63016
...
...
@@ -201,7 +201,7 @@
29B97313FDCFA39411CA2CEA /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 04
2
0;
LastUpgradeCheck = 04
5
0;
};
buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "SimpleMap" */;
compatibilityVersion = "Xcode 3.2";
...
...
samples/SimpleSampleMap/Classes/MapViewViewController.m
View file @
8b63016
...
...
@@ -116,7 +116,7 @@
-
(
void
)
tapOnLabelForAnnotation
:
(
RMAnnotation
*
)
annotation
onMap
:
(
RMMapView
*
)
map
{
NSLog
(
@"Label <%@, RC:%d> tapped for marker <%@, RC:%d>"
,
((
RMMarker
*
)
annotation
.
layer
).
label
,
[((
RMMarker
*
)
annotation
.
layer
).
label
retainCount
],
(
RMMarker
*
)
annotation
.
layer
,
[(
RMMarker
*
)
annotation
.
layer
retainCount
]);
[(
RMMarker
*
)
annotation
.
layer
changeLabelUsingText
:[
NSString
stringWithFormat
:
@"Tapped! (%
U
)"
,
++
tapCount
]];
[(
RMMarker
*
)
annotation
.
layer
changeLabelUsingText
:[
NSString
stringWithFormat
:
@"Tapped! (%
d
)"
,
++
tapCount
]];
}
-
(
RMMapLayer
*
)
mapView
:
(
RMMapView
*
)
mapView
layerForAnnotation
:
(
RMAnnotation
*
)
annotation
...
...
samples/SimpleSampleMap/SimpleSampleMap.xcodeproj/project.pbxproj
View file @
8b63016
...
...
@@ -200,7 +200,7 @@
29B97313FDCFA39411CA2CEA /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 04
2
0;
LastUpgradeCheck = 04
5
0;
};
buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "SimpleSampleMap" */;
compatibilityVersion = "Xcode 3.2";
...
...
Please
register
or
login
to post a comment