├── .gitignore ├── HelloAmap.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcuserdata │ │ └── wangfei.xcuserdatad │ │ └── UserInterfaceState.xcuserstate └── xcuserdata │ └── wangfei.xcuserdatad │ └── xcschemes │ ├── HelloAmap.xcscheme │ └── xcschememanagement.plist ├── HelloAmap ├── AppDelegate.h ├── AppDelegate.m ├── Base.lproj │ ├── LaunchScreen.xib │ └── Main.storyboard ├── Extern │ ├── AMapSearchKit.framework │ │ ├── AMapSearchKit │ │ ├── Headers │ │ ├── Resources │ │ └── Versions │ │ │ ├── 2.4.1.16e89a2 │ │ │ ├── AMapSearchKit │ │ │ └── Headers │ │ │ │ ├── AMapCommonObj.h │ │ │ │ ├── AMapSearchAPI.h │ │ │ │ └── AMapSearchObj.h │ │ │ └── Current │ └── MAMapKit.framework │ │ ├── Headers │ │ ├── MAMapKit │ │ ├── Resources │ │ └── Versions │ │ ├── 2.4.0.601e6b9.60159 │ │ ├── Headers │ │ │ ├── MAAnnotation.h │ │ │ ├── MAAnnotationView.h │ │ │ ├── MACircle.h │ │ │ ├── MACircleView.h │ │ │ ├── MAGeodesicPolyline.h │ │ │ ├── MAGeometry.h │ │ │ ├── MAGroundOverlay.h │ │ │ ├── MAGroundOverlayView.h │ │ │ ├── MALineDrawType.h │ │ │ ├── MAMapKit.h │ │ │ ├── MAMapServices.h │ │ │ ├── MAMapView.h │ │ │ ├── MAMultiPoint.h │ │ │ ├── MAOfflineCity.h │ │ │ ├── MAOfflineItem.h │ │ │ ├── MAOfflineItemCommonCity.h │ │ │ ├── MAOfflineItemMunicipality.h │ │ │ ├── MAOfflineItemNationWide.h │ │ │ ├── MAOfflineMap.h │ │ │ ├── MAOfflineProvince.h │ │ │ ├── MAOverlay.h │ │ │ ├── MAOverlayPathView.h │ │ │ ├── MAOverlayView.h │ │ │ ├── MAPinAnnotationView.h │ │ │ ├── MAPointAnnotation.h │ │ │ ├── MAPolygon.h │ │ │ ├── MAPolygonView.h │ │ │ ├── MAPolyline.h │ │ │ ├── MAPolylineView.h │ │ │ ├── MAShape.h │ │ │ ├── MATileOverlay.h │ │ │ ├── MATileOverlayView.h │ │ │ ├── MATouchPoi.h │ │ │ ├── MATypes.h │ │ │ └── MAUserLocation.h │ │ ├── MAMapKit │ │ └── Resources │ │ │ └── AMap.bundle │ │ │ ├── AMap3D.bundle │ │ │ ├── bktile.data │ │ │ ├── bktile_n.data │ │ │ ├── dash.data │ │ │ ├── iconr.data │ │ │ ├── iconr_n.data │ │ │ ├── lineround.data │ │ │ ├── roadarrow.data │ │ │ ├── style_l.data │ │ │ ├── style_nl.data │ │ │ ├── style_sl.data │ │ │ ├── tbl.data │ │ │ ├── tgl.data │ │ │ ├── trl.data │ │ │ └── tyl.data │ │ │ ├── images │ │ │ ├── greenPin.png │ │ │ ├── greenPin@2x.png │ │ │ ├── greenPin_lift.png │ │ │ ├── greenPin_lift@2x.png │ │ │ ├── lineDashTexture.png │ │ │ ├── lineTexture.png │ │ │ ├── pin_shadow.png │ │ │ ├── pin_shadow@2x.png │ │ │ ├── purplePin.png │ │ │ ├── purplePin@2x.png │ │ │ ├── purplePin_lift.png │ │ │ ├── purplePin_lift@2x.png │ │ │ ├── redPin.png │ │ │ ├── redPin@2x.png │ │ │ ├── redPin_lift.png │ │ │ ├── redPin_lift@2x.png │ │ │ ├── userlocation.png │ │ │ └── userlocation@2x.png │ │ │ └── offline │ │ │ └── offlinePackage.plist │ │ └── Current ├── Images.xcassets │ └── AppIcon.appiconset │ │ └── Contents.json ├── Info.plist ├── POIAnnotation.h ├── POIAnnotation.m ├── ViewController.h ├── ViewController.m └── main.m ├── HelloAmapTests ├── HelloAmapTests.m └── Info.plist └── README.md /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/autonaviapi/HelloAmapForEnglish/cddcb1508b9d21011aadac428f2ce28b9c5a99c5/.gitignore -------------------------------------------------------------------------------- /HelloAmap.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 7B47BF571A52B4B600A60551 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 7B47BF561A52B4B600A60551 /* main.m */; }; 11 | 7B47BF5A1A52B4B600A60551 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7B47BF591A52B4B600A60551 /* AppDelegate.m */; }; 12 | 7B47BF5D1A52B4B600A60551 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 7B47BF5C1A52B4B600A60551 /* ViewController.m */; }; 13 | 7B47BF601A52B4B600A60551 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 7B47BF5E1A52B4B600A60551 /* Main.storyboard */; }; 14 | 7B47BF621A52B4B600A60551 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 7B47BF611A52B4B600A60551 /* Images.xcassets */; }; 15 | 7B47BF651A52B4B600A60551 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 7B47BF631A52B4B600A60551 /* LaunchScreen.xib */; }; 16 | 7B47BF711A52B4B600A60551 /* HelloAmapTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 7B47BF701A52B4B600A60551 /* HelloAmapTests.m */; }; 17 | 7B47BF8E1A52B58000A60551 /* POIAnnotation.m in Sources */ = {isa = PBXBuildFile; fileRef = 7B47BF8D1A52B58000A60551 /* POIAnnotation.m */; }; 18 | 7B47BF901A52B5EF00A60551 /* AMapSearchKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7B47BF8F1A52B5EF00A60551 /* AMapSearchKit.framework */; }; 19 | 7B47BF921A52B60F00A60551 /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7B47BF911A52B60F00A60551 /* SystemConfiguration.framework */; }; 20 | 7B47BF941A52B64300A60551 /* libstdc++.6.0.9.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 7B47BF931A52B64300A60551 /* libstdc++.6.0.9.dylib */; }; 21 | 7B47BF961A52B64D00A60551 /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 7B47BF951A52B64D00A60551 /* libz.dylib */; }; 22 | 7B47BF981A52B65300A60551 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7B47BF971A52B65300A60551 /* UIKit.framework */; }; 23 | 7B47BF9A1A52B65D00A60551 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7B47BF991A52B65D00A60551 /* Foundation.framework */; }; 24 | 7B47BF9C1A52B66700A60551 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7B47BF9B1A52B66700A60551 /* CoreGraphics.framework */; }; 25 | 7B47BF9E1A52B67300A60551 /* CoreTelephony.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7B47BF9D1A52B67300A60551 /* CoreTelephony.framework */; }; 26 | 7B47BFA01A52B68400A60551 /* MapKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7B47BF9F1A52B68400A60551 /* MapKit.framework */; }; 27 | /* End PBXBuildFile section */ 28 | 29 | /* Begin PBXContainerItemProxy section */ 30 | 7B47BF6B1A52B4B600A60551 /* PBXContainerItemProxy */ = { 31 | isa = PBXContainerItemProxy; 32 | containerPortal = 7B47BF491A52B4B600A60551 /* Project object */; 33 | proxyType = 1; 34 | remoteGlobalIDString = 7B47BF501A52B4B600A60551; 35 | remoteInfo = HelloAmap; 36 | }; 37 | /* End PBXContainerItemProxy section */ 38 | 39 | /* Begin PBXFileReference section */ 40 | 7B47BF511A52B4B600A60551 /* HelloAmap.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = HelloAmap.app; sourceTree = BUILT_PRODUCTS_DIR; }; 41 | 7B47BF551A52B4B600A60551 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 42 | 7B47BF561A52B4B600A60551 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 43 | 7B47BF581A52B4B600A60551 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 44 | 7B47BF591A52B4B600A60551 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 45 | 7B47BF5B1A52B4B600A60551 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; 46 | 7B47BF5C1A52B4B600A60551 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; 47 | 7B47BF5F1A52B4B600A60551 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 48 | 7B47BF611A52B4B600A60551 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 49 | 7B47BF641A52B4B600A60551 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 50 | 7B47BF6A1A52B4B600A60551 /* HelloAmapTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = HelloAmapTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 51 | 7B47BF6F1A52B4B600A60551 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 52 | 7B47BF701A52B4B600A60551 /* HelloAmapTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = HelloAmapTests.m; sourceTree = ""; }; 53 | 7B47BF8C1A52B58000A60551 /* POIAnnotation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = POIAnnotation.h; sourceTree = ""; }; 54 | 7B47BF8D1A52B58000A60551 /* POIAnnotation.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = POIAnnotation.m; sourceTree = ""; }; 55 | 7B47BF8F1A52B5EF00A60551 /* AMapSearchKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AMapSearchKit.framework; path = HelloAmap/Extern/AMapSearchKit.framework; sourceTree = ""; }; 56 | 7B47BF911A52B60F00A60551 /* SystemConfiguration.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SystemConfiguration.framework; path = System/Library/Frameworks/SystemConfiguration.framework; sourceTree = SDKROOT; }; 57 | 7B47BF931A52B64300A60551 /* libstdc++.6.0.9.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = "libstdc++.6.0.9.dylib"; path = "usr/lib/libstdc++.6.0.9.dylib"; sourceTree = SDKROOT; }; 58 | 7B47BF951A52B64D00A60551 /* libz.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libz.dylib; path = usr/lib/libz.dylib; sourceTree = SDKROOT; }; 59 | 7B47BF971A52B65300A60551 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; 60 | 7B47BF991A52B65D00A60551 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; 61 | 7B47BF9B1A52B66700A60551 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; 62 | 7B47BF9D1A52B67300A60551 /* CoreTelephony.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreTelephony.framework; path = System/Library/Frameworks/CoreTelephony.framework; sourceTree = SDKROOT; }; 63 | 7B47BF9F1A52B68400A60551 /* MapKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MapKit.framework; path = System/Library/Frameworks/MapKit.framework; sourceTree = SDKROOT; }; 64 | /* End PBXFileReference section */ 65 | 66 | /* Begin PBXFrameworksBuildPhase section */ 67 | 7B47BF4E1A52B4B600A60551 /* Frameworks */ = { 68 | isa = PBXFrameworksBuildPhase; 69 | buildActionMask = 2147483647; 70 | files = ( 71 | 7B47BFA01A52B68400A60551 /* MapKit.framework in Frameworks */, 72 | 7B47BF9E1A52B67300A60551 /* CoreTelephony.framework in Frameworks */, 73 | 7B47BF9C1A52B66700A60551 /* CoreGraphics.framework in Frameworks */, 74 | 7B47BF9A1A52B65D00A60551 /* Foundation.framework in Frameworks */, 75 | 7B47BF981A52B65300A60551 /* UIKit.framework in Frameworks */, 76 | 7B47BF961A52B64D00A60551 /* libz.dylib in Frameworks */, 77 | 7B47BF941A52B64300A60551 /* libstdc++.6.0.9.dylib in Frameworks */, 78 | 7B47BF921A52B60F00A60551 /* SystemConfiguration.framework in Frameworks */, 79 | 7B47BF901A52B5EF00A60551 /* AMapSearchKit.framework in Frameworks */, 80 | ); 81 | runOnlyForDeploymentPostprocessing = 0; 82 | }; 83 | 7B47BF671A52B4B600A60551 /* Frameworks */ = { 84 | isa = PBXFrameworksBuildPhase; 85 | buildActionMask = 2147483647; 86 | files = ( 87 | ); 88 | runOnlyForDeploymentPostprocessing = 0; 89 | }; 90 | /* End PBXFrameworksBuildPhase section */ 91 | 92 | /* Begin PBXGroup section */ 93 | 7B47BF481A52B4B600A60551 = { 94 | isa = PBXGroup; 95 | children = ( 96 | 7B47BF9F1A52B68400A60551 /* MapKit.framework */, 97 | 7B47BF9D1A52B67300A60551 /* CoreTelephony.framework */, 98 | 7B47BF9B1A52B66700A60551 /* CoreGraphics.framework */, 99 | 7B47BF991A52B65D00A60551 /* Foundation.framework */, 100 | 7B47BF971A52B65300A60551 /* UIKit.framework */, 101 | 7B47BF951A52B64D00A60551 /* libz.dylib */, 102 | 7B47BF931A52B64300A60551 /* libstdc++.6.0.9.dylib */, 103 | 7B47BF911A52B60F00A60551 /* SystemConfiguration.framework */, 104 | 7B47BF8F1A52B5EF00A60551 /* AMapSearchKit.framework */, 105 | 7B47BF531A52B4B600A60551 /* HelloAmap */, 106 | 7B47BF6D1A52B4B600A60551 /* HelloAmapTests */, 107 | 7B47BF521A52B4B600A60551 /* Products */, 108 | ); 109 | sourceTree = ""; 110 | }; 111 | 7B47BF521A52B4B600A60551 /* Products */ = { 112 | isa = PBXGroup; 113 | children = ( 114 | 7B47BF511A52B4B600A60551 /* HelloAmap.app */, 115 | 7B47BF6A1A52B4B600A60551 /* HelloAmapTests.xctest */, 116 | ); 117 | name = Products; 118 | sourceTree = ""; 119 | }; 120 | 7B47BF531A52B4B600A60551 /* HelloAmap */ = { 121 | isa = PBXGroup; 122 | children = ( 123 | 7B47BF8C1A52B58000A60551 /* POIAnnotation.h */, 124 | 7B47BF8D1A52B58000A60551 /* POIAnnotation.m */, 125 | 7B47BF5B1A52B4B600A60551 /* ViewController.h */, 126 | 7B47BF5C1A52B4B600A60551 /* ViewController.m */, 127 | 7B47BF581A52B4B600A60551 /* AppDelegate.h */, 128 | 7B47BF591A52B4B600A60551 /* AppDelegate.m */, 129 | 7B47BF5E1A52B4B600A60551 /* Main.storyboard */, 130 | 7B47BF611A52B4B600A60551 /* Images.xcassets */, 131 | 7B47BF631A52B4B600A60551 /* LaunchScreen.xib */, 132 | 7B47BF541A52B4B600A60551 /* Supporting Files */, 133 | ); 134 | path = HelloAmap; 135 | sourceTree = ""; 136 | }; 137 | 7B47BF541A52B4B600A60551 /* Supporting Files */ = { 138 | isa = PBXGroup; 139 | children = ( 140 | 7B47BF551A52B4B600A60551 /* Info.plist */, 141 | 7B47BF561A52B4B600A60551 /* main.m */, 142 | ); 143 | name = "Supporting Files"; 144 | sourceTree = ""; 145 | }; 146 | 7B47BF6D1A52B4B600A60551 /* HelloAmapTests */ = { 147 | isa = PBXGroup; 148 | children = ( 149 | 7B47BF701A52B4B600A60551 /* HelloAmapTests.m */, 150 | 7B47BF6E1A52B4B600A60551 /* Supporting Files */, 151 | ); 152 | path = HelloAmapTests; 153 | sourceTree = ""; 154 | }; 155 | 7B47BF6E1A52B4B600A60551 /* Supporting Files */ = { 156 | isa = PBXGroup; 157 | children = ( 158 | 7B47BF6F1A52B4B600A60551 /* Info.plist */, 159 | ); 160 | name = "Supporting Files"; 161 | sourceTree = ""; 162 | }; 163 | /* End PBXGroup section */ 164 | 165 | /* Begin PBXNativeTarget section */ 166 | 7B47BF501A52B4B600A60551 /* HelloAmap */ = { 167 | isa = PBXNativeTarget; 168 | buildConfigurationList = 7B47BF741A52B4B600A60551 /* Build configuration list for PBXNativeTarget "HelloAmap" */; 169 | buildPhases = ( 170 | 7B47BF4D1A52B4B600A60551 /* Sources */, 171 | 7B47BF4E1A52B4B600A60551 /* Frameworks */, 172 | 7B47BF4F1A52B4B600A60551 /* Resources */, 173 | ); 174 | buildRules = ( 175 | ); 176 | dependencies = ( 177 | ); 178 | name = HelloAmap; 179 | productName = HelloAmap; 180 | productReference = 7B47BF511A52B4B600A60551 /* HelloAmap.app */; 181 | productType = "com.apple.product-type.application"; 182 | }; 183 | 7B47BF691A52B4B600A60551 /* HelloAmapTests */ = { 184 | isa = PBXNativeTarget; 185 | buildConfigurationList = 7B47BF771A52B4B600A60551 /* Build configuration list for PBXNativeTarget "HelloAmapTests" */; 186 | buildPhases = ( 187 | 7B47BF661A52B4B600A60551 /* Sources */, 188 | 7B47BF671A52B4B600A60551 /* Frameworks */, 189 | 7B47BF681A52B4B600A60551 /* Resources */, 190 | ); 191 | buildRules = ( 192 | ); 193 | dependencies = ( 194 | 7B47BF6C1A52B4B600A60551 /* PBXTargetDependency */, 195 | ); 196 | name = HelloAmapTests; 197 | productName = HelloAmapTests; 198 | productReference = 7B47BF6A1A52B4B600A60551 /* HelloAmapTests.xctest */; 199 | productType = "com.apple.product-type.bundle.unit-test"; 200 | }; 201 | /* End PBXNativeTarget section */ 202 | 203 | /* Begin PBXProject section */ 204 | 7B47BF491A52B4B600A60551 /* Project object */ = { 205 | isa = PBXProject; 206 | attributes = { 207 | LastUpgradeCheck = 0600; 208 | ORGANIZATIONNAME = autonavi; 209 | TargetAttributes = { 210 | 7B47BF501A52B4B600A60551 = { 211 | CreatedOnToolsVersion = 6.0.1; 212 | }; 213 | 7B47BF691A52B4B600A60551 = { 214 | CreatedOnToolsVersion = 6.0.1; 215 | TestTargetID = 7B47BF501A52B4B600A60551; 216 | }; 217 | }; 218 | }; 219 | buildConfigurationList = 7B47BF4C1A52B4B600A60551 /* Build configuration list for PBXProject "HelloAmap" */; 220 | compatibilityVersion = "Xcode 3.2"; 221 | developmentRegion = English; 222 | hasScannedForEncodings = 0; 223 | knownRegions = ( 224 | en, 225 | Base, 226 | ); 227 | mainGroup = 7B47BF481A52B4B600A60551; 228 | productRefGroup = 7B47BF521A52B4B600A60551 /* Products */; 229 | projectDirPath = ""; 230 | projectRoot = ""; 231 | targets = ( 232 | 7B47BF501A52B4B600A60551 /* HelloAmap */, 233 | 7B47BF691A52B4B600A60551 /* HelloAmapTests */, 234 | ); 235 | }; 236 | /* End PBXProject section */ 237 | 238 | /* Begin PBXResourcesBuildPhase section */ 239 | 7B47BF4F1A52B4B600A60551 /* Resources */ = { 240 | isa = PBXResourcesBuildPhase; 241 | buildActionMask = 2147483647; 242 | files = ( 243 | 7B47BF601A52B4B600A60551 /* Main.storyboard in Resources */, 244 | 7B47BF651A52B4B600A60551 /* LaunchScreen.xib in Resources */, 245 | 7B47BF621A52B4B600A60551 /* Images.xcassets in Resources */, 246 | ); 247 | runOnlyForDeploymentPostprocessing = 0; 248 | }; 249 | 7B47BF681A52B4B600A60551 /* Resources */ = { 250 | isa = PBXResourcesBuildPhase; 251 | buildActionMask = 2147483647; 252 | files = ( 253 | ); 254 | runOnlyForDeploymentPostprocessing = 0; 255 | }; 256 | /* End PBXResourcesBuildPhase section */ 257 | 258 | /* Begin PBXSourcesBuildPhase section */ 259 | 7B47BF4D1A52B4B600A60551 /* Sources */ = { 260 | isa = PBXSourcesBuildPhase; 261 | buildActionMask = 2147483647; 262 | files = ( 263 | 7B47BF5D1A52B4B600A60551 /* ViewController.m in Sources */, 264 | 7B47BF8E1A52B58000A60551 /* POIAnnotation.m in Sources */, 265 | 7B47BF5A1A52B4B600A60551 /* AppDelegate.m in Sources */, 266 | 7B47BF571A52B4B600A60551 /* main.m in Sources */, 267 | ); 268 | runOnlyForDeploymentPostprocessing = 0; 269 | }; 270 | 7B47BF661A52B4B600A60551 /* Sources */ = { 271 | isa = PBXSourcesBuildPhase; 272 | buildActionMask = 2147483647; 273 | files = ( 274 | 7B47BF711A52B4B600A60551 /* HelloAmapTests.m in Sources */, 275 | ); 276 | runOnlyForDeploymentPostprocessing = 0; 277 | }; 278 | /* End PBXSourcesBuildPhase section */ 279 | 280 | /* Begin PBXTargetDependency section */ 281 | 7B47BF6C1A52B4B600A60551 /* PBXTargetDependency */ = { 282 | isa = PBXTargetDependency; 283 | target = 7B47BF501A52B4B600A60551 /* HelloAmap */; 284 | targetProxy = 7B47BF6B1A52B4B600A60551 /* PBXContainerItemProxy */; 285 | }; 286 | /* End PBXTargetDependency section */ 287 | 288 | /* Begin PBXVariantGroup section */ 289 | 7B47BF5E1A52B4B600A60551 /* Main.storyboard */ = { 290 | isa = PBXVariantGroup; 291 | children = ( 292 | 7B47BF5F1A52B4B600A60551 /* Base */, 293 | ); 294 | name = Main.storyboard; 295 | sourceTree = ""; 296 | }; 297 | 7B47BF631A52B4B600A60551 /* LaunchScreen.xib */ = { 298 | isa = PBXVariantGroup; 299 | children = ( 300 | 7B47BF641A52B4B600A60551 /* Base */, 301 | ); 302 | name = LaunchScreen.xib; 303 | sourceTree = ""; 304 | }; 305 | /* End PBXVariantGroup section */ 306 | 307 | /* Begin XCBuildConfiguration section */ 308 | 7B47BF721A52B4B600A60551 /* Debug */ = { 309 | isa = XCBuildConfiguration; 310 | buildSettings = { 311 | ALWAYS_SEARCH_USER_PATHS = NO; 312 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 313 | CLANG_CXX_LIBRARY = "libc++"; 314 | CLANG_ENABLE_MODULES = YES; 315 | CLANG_ENABLE_OBJC_ARC = YES; 316 | CLANG_WARN_BOOL_CONVERSION = YES; 317 | CLANG_WARN_CONSTANT_CONVERSION = YES; 318 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 319 | CLANG_WARN_EMPTY_BODY = YES; 320 | CLANG_WARN_ENUM_CONVERSION = YES; 321 | CLANG_WARN_INT_CONVERSION = YES; 322 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 323 | CLANG_WARN_UNREACHABLE_CODE = YES; 324 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 325 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 326 | COPY_PHASE_STRIP = NO; 327 | ENABLE_STRICT_OBJC_MSGSEND = YES; 328 | GCC_C_LANGUAGE_STANDARD = gnu99; 329 | GCC_DYNAMIC_NO_PIC = NO; 330 | GCC_OPTIMIZATION_LEVEL = 0; 331 | GCC_PREPROCESSOR_DEFINITIONS = ( 332 | "DEBUG=1", 333 | "$(inherited)", 334 | ); 335 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 336 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 337 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 338 | GCC_WARN_UNDECLARED_SELECTOR = YES; 339 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 340 | GCC_WARN_UNUSED_FUNCTION = YES; 341 | GCC_WARN_UNUSED_VARIABLE = YES; 342 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 343 | MTL_ENABLE_DEBUG_INFO = YES; 344 | ONLY_ACTIVE_ARCH = YES; 345 | SDKROOT = iphoneos; 346 | TARGETED_DEVICE_FAMILY = "1,2"; 347 | }; 348 | name = Debug; 349 | }; 350 | 7B47BF731A52B4B600A60551 /* Release */ = { 351 | isa = XCBuildConfiguration; 352 | buildSettings = { 353 | ALWAYS_SEARCH_USER_PATHS = NO; 354 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 355 | CLANG_CXX_LIBRARY = "libc++"; 356 | CLANG_ENABLE_MODULES = YES; 357 | CLANG_ENABLE_OBJC_ARC = YES; 358 | CLANG_WARN_BOOL_CONVERSION = YES; 359 | CLANG_WARN_CONSTANT_CONVERSION = YES; 360 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 361 | CLANG_WARN_EMPTY_BODY = YES; 362 | CLANG_WARN_ENUM_CONVERSION = YES; 363 | CLANG_WARN_INT_CONVERSION = YES; 364 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 365 | CLANG_WARN_UNREACHABLE_CODE = YES; 366 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 367 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 368 | COPY_PHASE_STRIP = YES; 369 | ENABLE_NS_ASSERTIONS = NO; 370 | ENABLE_STRICT_OBJC_MSGSEND = YES; 371 | GCC_C_LANGUAGE_STANDARD = gnu99; 372 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 373 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 374 | GCC_WARN_UNDECLARED_SELECTOR = YES; 375 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 376 | GCC_WARN_UNUSED_FUNCTION = YES; 377 | GCC_WARN_UNUSED_VARIABLE = YES; 378 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 379 | MTL_ENABLE_DEBUG_INFO = NO; 380 | SDKROOT = iphoneos; 381 | TARGETED_DEVICE_FAMILY = "1,2"; 382 | VALIDATE_PRODUCT = YES; 383 | }; 384 | name = Release; 385 | }; 386 | 7B47BF751A52B4B600A60551 /* Debug */ = { 387 | isa = XCBuildConfiguration; 388 | buildSettings = { 389 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 390 | FRAMEWORK_SEARCH_PATHS = ( 391 | "$(inherited)", 392 | "$(PROJECT_DIR)/HelloAmap/Extern", 393 | ); 394 | INFOPLIST_FILE = HelloAmap/Info.plist; 395 | IPHONEOS_DEPLOYMENT_TARGET = 5.1.1; 396 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 397 | LIBRARY_SEARCH_PATHS = ( 398 | "$(inherited)", 399 | "$(PROJECT_DIR)", 400 | ); 401 | PRODUCT_NAME = "$(TARGET_NAME)"; 402 | }; 403 | name = Debug; 404 | }; 405 | 7B47BF761A52B4B600A60551 /* Release */ = { 406 | isa = XCBuildConfiguration; 407 | buildSettings = { 408 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 409 | FRAMEWORK_SEARCH_PATHS = ( 410 | "$(inherited)", 411 | "$(PROJECT_DIR)/HelloAmap/Extern", 412 | ); 413 | INFOPLIST_FILE = HelloAmap/Info.plist; 414 | IPHONEOS_DEPLOYMENT_TARGET = 5.1.1; 415 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 416 | LIBRARY_SEARCH_PATHS = ( 417 | "$(inherited)", 418 | "$(PROJECT_DIR)", 419 | ); 420 | PRODUCT_NAME = "$(TARGET_NAME)"; 421 | }; 422 | name = Release; 423 | }; 424 | 7B47BF781A52B4B600A60551 /* Debug */ = { 425 | isa = XCBuildConfiguration; 426 | buildSettings = { 427 | BUNDLE_LOADER = "$(TEST_HOST)"; 428 | FRAMEWORK_SEARCH_PATHS = ( 429 | "$(SDKROOT)/Developer/Library/Frameworks", 430 | "$(inherited)", 431 | ); 432 | GCC_PREPROCESSOR_DEFINITIONS = ( 433 | "DEBUG=1", 434 | "$(inherited)", 435 | ); 436 | INFOPLIST_FILE = HelloAmapTests/Info.plist; 437 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 438 | PRODUCT_NAME = "$(TARGET_NAME)"; 439 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/HelloAmap.app/HelloAmap"; 440 | }; 441 | name = Debug; 442 | }; 443 | 7B47BF791A52B4B600A60551 /* Release */ = { 444 | isa = XCBuildConfiguration; 445 | buildSettings = { 446 | BUNDLE_LOADER = "$(TEST_HOST)"; 447 | FRAMEWORK_SEARCH_PATHS = ( 448 | "$(SDKROOT)/Developer/Library/Frameworks", 449 | "$(inherited)", 450 | ); 451 | INFOPLIST_FILE = HelloAmapTests/Info.plist; 452 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 453 | PRODUCT_NAME = "$(TARGET_NAME)"; 454 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/HelloAmap.app/HelloAmap"; 455 | }; 456 | name = Release; 457 | }; 458 | /* End XCBuildConfiguration section */ 459 | 460 | /* Begin XCConfigurationList section */ 461 | 7B47BF4C1A52B4B600A60551 /* Build configuration list for PBXProject "HelloAmap" */ = { 462 | isa = XCConfigurationList; 463 | buildConfigurations = ( 464 | 7B47BF721A52B4B600A60551 /* Debug */, 465 | 7B47BF731A52B4B600A60551 /* Release */, 466 | ); 467 | defaultConfigurationIsVisible = 0; 468 | defaultConfigurationName = Release; 469 | }; 470 | 7B47BF741A52B4B600A60551 /* Build configuration list for PBXNativeTarget "HelloAmap" */ = { 471 | isa = XCConfigurationList; 472 | buildConfigurations = ( 473 | 7B47BF751A52B4B600A60551 /* Debug */, 474 | 7B47BF761A52B4B600A60551 /* Release */, 475 | ); 476 | defaultConfigurationIsVisible = 0; 477 | }; 478 | 7B47BF771A52B4B600A60551 /* Build configuration list for PBXNativeTarget "HelloAmapTests" */ = { 479 | isa = XCConfigurationList; 480 | buildConfigurations = ( 481 | 7B47BF781A52B4B600A60551 /* Debug */, 482 | 7B47BF791A52B4B600A60551 /* Release */, 483 | ); 484 | defaultConfigurationIsVisible = 0; 485 | }; 486 | /* End XCConfigurationList section */ 487 | }; 488 | rootObject = 7B47BF491A52B4B600A60551 /* Project object */; 489 | } 490 | -------------------------------------------------------------------------------- /HelloAmap.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /HelloAmap.xcodeproj/project.xcworkspace/xcuserdata/wangfei.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/autonaviapi/HelloAmapForEnglish/cddcb1508b9d21011aadac428f2ce28b9c5a99c5/HelloAmap.xcodeproj/project.xcworkspace/xcuserdata/wangfei.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /HelloAmap.xcodeproj/xcuserdata/wangfei.xcuserdatad/xcschemes/HelloAmap.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 38 | 39 | 44 | 45 | 47 | 53 | 54 | 55 | 56 | 57 | 63 | 64 | 65 | 66 | 75 | 76 | 82 | 83 | 84 | 85 | 86 | 87 | 93 | 94 | 100 | 101 | 102 | 103 | 105 | 106 | 109 | 110 | 111 | -------------------------------------------------------------------------------- /HelloAmap.xcodeproj/xcuserdata/wangfei.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | HelloAmap.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | 7B47BF501A52B4B600A60551 16 | 17 | primary 18 | 19 | 20 | 7B47BF691A52B4B600A60551 21 | 22 | primary 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /HelloAmap/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // HelloAmap 4 | // 5 | // Created by 王菲 on 14-12-30. 6 | // Copyright (c) 2014年 autonavi. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface AppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | 16 | @end 17 | 18 | -------------------------------------------------------------------------------- /HelloAmap/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // HelloAmap 4 | // 5 | // Created by 王菲 on 14-12-30. 6 | // Copyright (c) 2014年 autonavi. All rights reserved. 7 | // 8 | 9 | #import "AppDelegate.h" 10 | 11 | @interface AppDelegate () 12 | 13 | @end 14 | 15 | @implementation AppDelegate 16 | 17 | 18 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 19 | // Override point for customization after application launch. 20 | return YES; 21 | } 22 | 23 | - (void)applicationWillResignActive:(UIApplication *)application { 24 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 25 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 26 | } 27 | 28 | - (void)applicationDidEnterBackground:(UIApplication *)application { 29 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 30 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 31 | } 32 | 33 | - (void)applicationWillEnterForeground:(UIApplication *)application { 34 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 35 | } 36 | 37 | - (void)applicationDidBecomeActive:(UIApplication *)application { 38 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 39 | } 40 | 41 | - (void)applicationWillTerminate:(UIApplication *)application { 42 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 43 | } 44 | 45 | @end 46 | -------------------------------------------------------------------------------- /HelloAmap/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 20 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /HelloAmap/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /HelloAmap/Extern/AMapSearchKit.framework/AMapSearchKit: -------------------------------------------------------------------------------- 1 | Versions/Current/AMapSearchKit -------------------------------------------------------------------------------- /HelloAmap/Extern/AMapSearchKit.framework/Headers: -------------------------------------------------------------------------------- 1 | Versions/Current/Headers -------------------------------------------------------------------------------- /HelloAmap/Extern/AMapSearchKit.framework/Resources: -------------------------------------------------------------------------------- 1 | Versions/Current/Resources -------------------------------------------------------------------------------- /HelloAmap/Extern/AMapSearchKit.framework/Versions/2.4.1.16e89a2/AMapSearchKit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/autonaviapi/HelloAmapForEnglish/cddcb1508b9d21011aadac428f2ce28b9c5a99c5/HelloAmap/Extern/AMapSearchKit.framework/Versions/2.4.1.16e89a2/AMapSearchKit -------------------------------------------------------------------------------- /HelloAmap/Extern/AMapSearchKit.framework/Versions/2.4.1.16e89a2/Headers/AMapCommonObj.h: -------------------------------------------------------------------------------- 1 | // 2 | // AMapCommonObj.h 3 | // searchKitV3 4 | // 5 | // Created by yin cai on 13-7-3. 6 | // Copyright (c) 2013年 Autonavi. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | 12 | #pragma mark - #基础数据类型 13 | 14 | /*! 15 | @brief 经纬度 16 | */ 17 | @interface AMapGeoPoint : NSObject 18 | 19 | @property (nonatomic, assign) CGFloat latitude; 20 | @property (nonatomic, assign) CGFloat longitude; 21 | 22 | + (AMapGeoPoint *)locationWithLatitude:(CGFloat)lat longitude:(CGFloat)lon; 23 | 24 | @end 25 | 26 | /*! 27 | @brief 多边形 矩形:左下-右上两个顶点,其他情况需要首尾坐标相同,当做闭合图形处理 28 | */ 29 | @interface AMapGeoPolygon : NSObject 30 | 31 | @property (nonatomic, strong) NSArray *points;// 坐标集:AMapGeoPoint数组 32 | 33 | + (AMapGeoPolygon *)polygonWithPoints:(NSArray *)points; 34 | 35 | @end 36 | 37 | /*! 38 | @brief 城市区域 39 | */ 40 | @interface AMapDistrict : NSObject 41 | 42 | @property (nonatomic, strong) NSString *name; // 区域名称 43 | @property (nonatomic, strong) NSString *adcode; // 区域代码 44 | 45 | // 行政区域查询中返回数据 46 | @property (nonatomic, strong) NSString *citycode; // 区域名称 47 | @property (nonatomic, strong) AMapGeoPoint *center; // 中心点 48 | @property (nonatomic, strong) NSArray *polylines; // 边界坐标点, NSString 数组 49 | @property (nonatomic, strong) NSString *level; // 级别 50 | @property (nonatomic, strong) NSArray *districts; // 下级行政区域 51 | 52 | + (AMapDistrict *)districtWithName:(NSString *)name adcode:(NSString *)adcode; 53 | 54 | @end 55 | 56 | /*! 57 | @brief 城市 58 | */ 59 | @interface AMapCity : NSObject 60 | 61 | @property (nonatomic, strong) NSString *city; // 城市名称 62 | @property (nonatomic, strong) NSString *citycode; // 城市编码 63 | @property (nonatomic, strong) NSString *adcode; // 城市区域编码 64 | @property (nonatomic, assign) NSInteger num; // 此区域的建议结果数目, AMapSuggestion 中使用 65 | @property (nonatomic, strong) NSArray *districts; // 途径区域 AMapDistrict 数组,AMepStep中使用 66 | 67 | @end 68 | 69 | /*! 70 | @brief 查询建议 71 | */ 72 | @interface AMapSuggestion : NSObject 73 | 74 | @property (nonatomic, strong) NSArray *keywords; //NSString数组 75 | @property (nonatomic, strong) NSArray *cities; //AMapCity数组 76 | 77 | @end 78 | 79 | /*! 80 | @brief 手机应用网址 81 | */ 82 | @interface AMapAppUrl : NSObject 83 | 84 | @property (nonatomic, strong) NSString *android; // android url 85 | @property (nonatomic, strong) NSString *ios; // ios url 86 | @property (nonatomic, strong) NSString *wp; // winphone url 87 | 88 | + (AMapAppUrl *)appUrlWithAndroid:(NSString *)android ios:(NSString *)ios wp:(NSString *)wp; 89 | 90 | @end 91 | 92 | /*! 93 | @brief 图片信息 94 | */ 95 | @interface AMapPhoto : NSObject 96 | 97 | @property (nonatomic, strong) NSString *title; // 标题 98 | @property (nonatomic, strong) NSString *url; // URL地址 99 | @property (nonatomic, strong) NSString *provider; // 来源 100 | 101 | + (AMapPhoto *)photoWithTitle:(NSString *)title url:(NSString *)url provider:(NSString *)provider; 102 | 103 | @end 104 | 105 | #pragma mark - #市场动态信息 106 | 107 | /*! 108 | @brief 团购信息 109 | */ 110 | @interface AMapGroupBuy : NSObject 111 | 112 | @property (nonatomic, strong) NSString *typeCode; // 团购分类代码 113 | @property (nonatomic, strong) NSString *type; // 团购分类 114 | @property (nonatomic, strong) NSString *detail; // 团购详情 115 | @property (nonatomic, strong) NSString *startTime; // 团购开始时间 116 | @property (nonatomic, strong) NSString *endTime; // 团购结束时间 117 | @property (nonatomic, assign) NSInteger num; // 团购总量 118 | @property (nonatomic, assign) NSInteger soldNum; // 已卖出数量 119 | @property (nonatomic, assign) CGFloat originalPrice; // 原价 120 | @property (nonatomic, assign) CGFloat groupbuyPrice; // 团购价 121 | @property (nonatomic, assign) CGFloat discount; // 折扣 122 | @property (nonatomic, strong) NSString *ticketAddress; // 取票地址 123 | @property (nonatomic, strong) NSString *ticketTel; // 取票电话 124 | @property (nonatomic, strong) NSArray *photos; //图片信息 : AMapPhoto数组 125 | @property (nonatomic, strong) NSString *url; // 来源URL 126 | @property (nonatomic, strong) NSString *provider; // 来源标识 127 | 128 | @end 129 | 130 | /*! 131 | @brief 打折信息 132 | */ 133 | @interface AMapDiscount : NSObject 134 | 135 | @property (nonatomic, strong) NSString *title; // 标题 136 | @property (nonatomic, strong) NSString *detail; // 优惠详情 137 | @property (nonatomic, strong) NSString *startTime; // 开始时间 138 | @property (nonatomic, strong) NSString *endTime; // 结束时间 139 | @property (nonatomic, assign) NSInteger soldNum; // 已卖出数量 140 | @property (nonatomic, strong) NSArray *photos; //图片信息 : AMapPhoto数组 141 | @property (nonatomic, strong) NSString *url; // 来源URL 142 | @property (nonatomic, strong) NSString *provider; // 来源标识 143 | 144 | @end 145 | 146 | /*! 147 | @brief 动态市场信息 148 | */ 149 | @interface AMapRichContent : NSObject 150 | 151 | @property (nonatomic, strong) NSArray *groupbuys; //团购信息 : AMapGroupBuy数组 152 | @property (nonatomic, strong) NSArray *discounts; //优惠信息 : AMapDiscount数组 153 | 154 | @end 155 | 156 | #pragma mark - #行业深度信息 157 | 158 | /*! 159 | @brief 电影行业的场次信息 160 | */ 161 | @interface AMapTicket : NSObject 162 | 163 | @property (nonatomic, strong) NSString *startTime; // 放映时间 164 | @property (nonatomic, strong) NSString *screen; // 屏幕信息 165 | @property (nonatomic, strong) NSString *lang; // 语言 166 | @property (nonatomic, assign) CGFloat price; // 价格 167 | @property (nonatomic, assign) BOOL seatOrdering; // 是否可选座 168 | @property (nonatomic, strong) NSString *orderingUrlWap; // 手机端选座网址 169 | @property (nonatomic, strong) NSString *orderingUrlWeb; // 网页版选座网址 170 | 171 | @end 172 | 173 | /*! 174 | @brief 电影行业的动态信息 175 | */ 176 | @interface AMapMovie : NSObject 177 | 178 | @property (nonatomic, strong) NSString *name; // 影片名称 179 | @property (nonatomic, strong) NSString *uid; // 影片id 180 | @property (nonatomic, strong) NSString *actors; // 演员 181 | @property (nonatomic, strong) NSString *director; // 导演 182 | @property (nonatomic, strong) NSString *type; // 类型 183 | @property (nonatomic, assign) NSInteger length; // 片长 184 | @property (nonatomic, strong) NSArray *tickets; // 场次列表 AMapTicket 数组 185 | 186 | @end 187 | 188 | /*! 189 | @brief 酒店行业的房型详细信息 190 | */ 191 | @interface AMapRoom : NSObject 192 | 193 | @property (nonatomic, strong) NSString *uid; // 客房id 194 | @property (nonatomic, strong) NSString *type; // 房型类别 195 | @property (nonatomic, strong) NSString *name; // 房型名称 196 | @property (nonatomic, assign) CGFloat price; // 房价 197 | @property (nonatomic, strong) NSString *breakfast; // 早餐供应 198 | @property (nonatomic, strong) NSString *network; // 提供网络 199 | @property (nonatomic, assign) BOOL guarantee; // 是否需要预订担保 200 | @property (nonatomic, strong) NSString *tel; // 预订电话 201 | @property (nonatomic, strong) NSString *orderingUrlWap; // 手机端预定网址 202 | @property (nonatomic, strong) NSString *orderingUrlWeb; // 网页版预定网址 203 | @property (nonatomic, strong) NSString *provider; // 房型价格来源 204 | 205 | @end 206 | 207 | /*! 208 | @brief 餐饮行业深度信息 209 | */ 210 | @interface AMapDiningDeepContent : NSObject 211 | 212 | @property (nonatomic, strong) NSString *cuisines; // 菜系 213 | @property (nonatomic, strong) NSString *tag; // 标签 214 | @property (nonatomic, assign) CGFloat cpRating; // 单数据源的评分 215 | @property (nonatomic, assign) CGFloat tasteRating; // 口味评分 216 | @property (nonatomic, assign) CGFloat environmentRating; // 环境评分 217 | @property (nonatomic, assign) CGFloat serviceRating; // 服务评分 218 | @property (nonatomic, assign) CGFloat cost; // 人均消费 219 | @property (nonatomic, strong) NSString *recommend; // 特色菜推荐 220 | @property (nonatomic, strong) NSString *atmosphere; // 氛围 221 | @property (nonatomic, strong) NSString *addition; // 餐厅特色 222 | @property (nonatomic, strong) AMapAppUrl *appUrl; // 手机应用订餐网址 223 | @property (nonatomic, strong) NSString *orderingUrlWap; // 手机端订餐网址 224 | @property (nonatomic, strong) NSString *orderingUrlWeb; // 网页版订餐网址 225 | @property (nonatomic, strong) NSString *opentimeGDF; // 规范格式的营业时间 226 | @property (nonatomic, strong) NSString *opentime; // 非规范格式的营业时间 227 | 228 | @end 229 | 230 | /*! 231 | @brief 酒店行业深度信息 232 | */ 233 | @interface AMapHotelDeepContent : NSObject 234 | 235 | @property (nonatomic, assign) NSInteger star; // 星级 236 | @property (nonatomic, assign) CGFloat lowestPrice; // 最低价 237 | @property (nonatomic, assign) CGFloat faciRating; // 设施评分 238 | @property (nonatomic, assign) CGFloat healthRating; // 卫生评分 239 | @property (nonatomic, assign) CGFloat environmentRating; // 环境评分 240 | @property (nonatomic, assign) CGFloat serviceRating; // 服务评分 241 | @property (nonatomic, strong) NSString *traffic; // 交通提示 242 | @property (nonatomic, strong) NSString *addition; // 特色服务 243 | 244 | @property (nonatomic, strong) NSArray *rooms; //房型信息 AMapRoom 数组 245 | 246 | @end 247 | 248 | /*! 249 | @brief 景点行业深度信息 250 | */ 251 | @interface AMapScenicDeepContent : NSObject 252 | 253 | @property (nonatomic, strong) NSString *level; // 景区国标级别 254 | @property (nonatomic, assign) CGFloat price; // 门票价格 255 | @property (nonatomic, strong) NSString *season; // 适合游玩的月份,多个月份用"|"隔开 256 | @property (nonatomic, strong) NSString *recommend; // 推荐景点 ,多个景点用"|"隔开 257 | @property (nonatomic, strong) NSString *theme; // 景区主题 258 | @property (nonatomic, strong) NSString *orderingUrlWap; // 手机端购票网址 259 | @property (nonatomic, strong) NSString *orderingUrlWeb; // 网页版购票网址 260 | @property (nonatomic, strong) NSString *opentimeGDF; // 规范格式的营业时间 261 | @property (nonatomic, strong) NSString *opentime; // 非规范格式的营业时间 262 | 263 | @end 264 | 265 | /*! 266 | @brief 电影行业的深度信息 267 | */ 268 | @interface AMapCinemaDeepContent : NSObject 269 | 270 | @property (nonatomic, assign) BOOL is3D; // 是否支持3D 271 | @property (nonatomic, strong) NSString *parking; // 停车场设施 272 | @property (nonatomic, strong) NSString *opentimeGDF; // 规范格式的营业时间 273 | @property (nonatomic, strong) NSString *opentime; // 非规范格式的营业时间 274 | 275 | @property (nonatomic, strong) NSArray *movies; //电影行业的动态信息列表 : AMapMovie数组 276 | 277 | @end 278 | 279 | /*! 280 | @brief 行业深度信息 281 | */ 282 | @interface AMapDeepContent : NSObject 283 | 284 | @property (nonatomic, strong) NSString *type; // 行业类型 285 | @property (nonatomic, strong) NSString *intro; // 简介 286 | @property (nonatomic, assign) CGFloat rating; // 综合评分 287 | @property (nonatomic, strong) NSString *provider; // 信息来源 288 | @property (nonatomic, strong) NSArray *photos; // 图片信息 289 | @property (nonatomic, strong) AMapDiningDeepContent *deepDining; // 餐饮行业的深度信息 290 | @property (nonatomic, strong) AMapHotelDeepContent *deepHotel; // 酒店行业的深度信息 291 | @property (nonatomic, strong) AMapScenicDeepContent *deepScenic; // 景点行业的深度信息 292 | @property (nonatomic, strong) AMapCinemaDeepContent *deepCinema; // 电影行业的深度信息 293 | 294 | @end 295 | 296 | /*! 297 | @brief 行业类型 298 | */ 299 | extern NSString *const AMapDeepContentTypeDining; 300 | extern NSString *const AMapDeepContentTypeHotel; 301 | extern NSString *const AMapDeepContentTypeScenic; 302 | extern NSString *const AMapDeepContentTypeCinema; 303 | 304 | #pragma mark - #POI查询扩展信息 305 | 306 | /*! 307 | @brief 行业扩展信息 308 | */ 309 | @interface AMapBizExtention : NSObject 310 | 311 | @property (nonatomic, assign) CGFloat rating; // 综合评分 312 | @property (nonatomic, assign) CGFloat cost; // 人均消费 313 | @property (nonatomic, assign) CGFloat lowestPriceForHotel; // 最低价格 314 | @property (nonatomic, assign) NSUInteger starForHotel; // 星级 315 | @property (nonatomic, assign) BOOL mealOrderingForDining; // 是否可订餐 316 | @property (nonatomic, assign) BOOL seatOrderingForCinema; // 是否可选座 317 | @property (nonatomic, assign) BOOL ticketOrderingForScenic; // 是否可订票 318 | @property (nonatomic, assign) BOOL hasGroupbuy; // 是否有团购 319 | @property (nonatomic, assign) BOOL hasDiscount; // 是否有优惠 320 | 321 | @end 322 | 323 | #pragma mark - #查询结果数据类型 324 | 325 | /*! 326 | @brief POI 327 | */ 328 | @interface AMapPOI : NSObject 329 | 330 | // basic: 331 | @property (nonatomic, strong) NSString *uid; // POI全局唯一ID 332 | @property (nonatomic, strong) NSString *name; // 名称 333 | @property (nonatomic, strong) NSString *type; // 兴趣点类型 334 | @property (nonatomic, strong) AMapGeoPoint *location; // 经纬度 335 | @property (nonatomic, strong) NSString *address; // 地址 336 | @property (nonatomic, strong) NSString *tel; // 电话 337 | @property (nonatomic, assign) NSInteger distance; // 距中心点距离 338 | 339 | // extensions: 340 | @property (nonatomic, strong) NSString *postcode; // 邮编 341 | @property (nonatomic, strong) NSString *website; // 网址 342 | @property (nonatomic, strong) NSString *email; // 电子邮件 343 | @property (nonatomic, strong) NSString *province; // 省 344 | @property (nonatomic, strong) NSString *pcode; // 省编码 345 | @property (nonatomic, strong) NSString *city; // 城市名称 346 | @property (nonatomic, strong) NSString *citycode; // 城市编码 347 | @property (nonatomic, strong) NSString *district; // 区域名称 348 | @property (nonatomic, strong) NSString *adcode; // 区域编码 349 | @property (nonatomic, strong) NSString *gridcode; // 地理格ID / *暂未开通 */ 350 | @property (nonatomic, strong) NSString *navipoiid; // 导航点ID/ *暂未开通 */ 351 | @property (nonatomic, strong) AMapGeoPoint *enterLocation; // 入口经纬度 352 | @property (nonatomic, strong) AMapGeoPoint *exitLocation; // 出口经纬度 353 | @property (nonatomic, assign) CGFloat weight; // 权重 / *暂未开通 */ 354 | @property (nonatomic, assign) CGFloat match; // 匹配 / *暂未开通 */ 355 | @property (nonatomic, assign) NSInteger recommend; // 推荐标识 / *暂未开通 */ 356 | @property (nonatomic, strong) NSString *timestamp; // 时间戳 / *暂未开通 */ 357 | @property (nonatomic, strong) NSString *direction; // 方向 358 | 359 | @property (nonatomic, assign) BOOL hasIndoorMap; // 是否有室内地图 360 | @property (nonatomic, strong) NSString *indoorMapProvider; // 室内地图来源 361 | 362 | /** 团购信息数目,推荐使用bizExtension中的hasGroupbuy代替。*/ 363 | @property (nonatomic, assign) NSInteger groupbuyNum __attribute__((deprecated("use 'hasGroupbuy' in deepContent instead"))); 364 | 365 | /** 优惠信息数目,推荐使用bizExtension中的hasDiscount代替。*/ 366 | @property (nonatomic, assign) NSInteger discountNum __attribute__((deprecated("use 'hasDiscount' in deepContent instead"))); 367 | 368 | @property (nonatomic, strong) AMapBizExtention *bizExtention; // 扩展信息 369 | @property (nonatomic, strong) AMapRichContent *richContent; // 动态市场信息 370 | @property (nonatomic, strong) AMapDeepContent *deepContent; // 行业深度信息 371 | 372 | @end 373 | 374 | /*! 375 | @brief 公交站 376 | */ 377 | @interface AMapBusStop : NSObject 378 | 379 | @property (nonatomic, strong) NSString *uid; // 公交站ID 380 | @property (nonatomic, strong) NSString *name; // 站名 381 | @property (nonatomic, assign) NSInteger sequence; // 公交站序号 382 | @property (nonatomic, strong) NSString *citycode; // 城市编码 383 | @property (nonatomic, strong) NSString *adcode; // 区域编码 384 | @property (nonatomic, strong) NSString *gridcode; // 地理格ID / *暂未开通 */ 385 | @property (nonatomic, strong) AMapGeoPoint *location; // 经纬度 386 | @property (nonatomic, strong) NSString *timestamp; // 时间戳 / *暂未开通 */ 387 | @property (nonatomic, strong) NSArray *buslines; // 途径此站的公交路线 AMapBusLine 数组 388 | 389 | @end 390 | 391 | /*! 392 | @brief 公交线路 393 | */ 394 | @interface AMapBusLine : NSObject 395 | 396 | // basic: 397 | @property (nonatomic, strong) NSString *uid; // 公交线路ID 398 | @property (nonatomic, strong) NSString *name; // 线路名称 399 | @property (nonatomic, strong) NSString *type; // 公交类型 400 | @property (nonatomic, strong) NSString *polyline; // 坐标串定义 401 | @property (nonatomic, strong) NSString *citycode; // 城市编码 402 | @property (nonatomic, strong) NSString *gridcode; // 地理格ID / *暂未开通 */ 403 | @property (nonatomic, strong) AMapBusStop *startStop; // 首发站 404 | @property (nonatomic, strong) AMapBusStop *endStop; // 终点站 405 | 406 | // extensions: 407 | @property (nonatomic, strong) NSString *startTime; // 首班车时间 408 | @property (nonatomic, strong) NSString *endTime; // 末班车时间 409 | @property (nonatomic, strong) NSString *company; // 所属公交公司 410 | @property (nonatomic, assign) float distance; // 全程里程(单位:千米) 411 | @property (nonatomic, assign) NSInteger duration; // 预计行驶时间(单位:秒) 412 | @property (nonatomic, assign) float basicPrice; // 起步价 413 | @property (nonatomic, assign) float totalPrice; // 全程票价 414 | @property (nonatomic, strong) NSArray *bounds; // 矩形区域左下、右上顶点坐标 AMapGeoPoint 数组 415 | @property (nonatomic, assign) NSInteger busStopsNum; // 途径公交站数 416 | @property (nonatomic, strong) NSArray *busStops; // 途经公交站 AMapBusStop数组 417 | @property (nonatomic, strong) AMapBusStop *departureStop; // 起程站 418 | @property (nonatomic, strong) AMapBusStop *arrivalStop; // 下车站 419 | 420 | @end 421 | 422 | /*! 423 | @brief 输入提示 424 | */ 425 | @interface AMapTip : NSObject 426 | 427 | @property (nonatomic, strong) NSString *name; // 名称 428 | @property (nonatomic, strong) NSString *adcode; // 区域编码 429 | @property (nonatomic, strong) NSString *district; // 所属区域 430 | 431 | + (AMapTip *)tipWithName:(NSString *)name adcode:(NSString *)adcode district:(NSString *)district; 432 | 433 | @end 434 | 435 | /*! 436 | @brief 地理编码 437 | */ 438 | @interface AMapGeocode : NSObject 439 | 440 | @property (nonatomic, strong) NSString *formattedAddress; // 格式化地址 441 | @property (nonatomic, strong) NSString *province; // 所在省 442 | @property (nonatomic, strong) NSString *city; // 城市名 443 | @property (nonatomic, strong) NSString *district; // 区域名称 444 | @property (nonatomic, strong) NSString *township; // 所在乡镇 445 | @property (nonatomic, strong) NSString *neighborhood; // 社区 446 | @property (nonatomic, strong) NSString *building; // 楼 447 | @property (nonatomic, strong) NSString *adcode; // 区域编码 448 | @property (nonatomic, strong) AMapGeoPoint *location; // 坐标点 449 | @property (nonatomic, strong) NSArray *level; // 匹配的等级 NSString 数组 450 | 451 | @end 452 | 453 | /*! 454 | @brief 道路 455 | */ 456 | @interface AMapRoad : NSObject 457 | 458 | @property (nonatomic, strong) NSString *uid; // 道路ID 459 | @property (nonatomic, strong) NSString *name; // 道路名称 460 | @property (nonatomic, assign) NSInteger distance; // 距离(单位:米) 461 | @property (nonatomic, strong) NSString *direction; // 方向 462 | @property (nonatomic, strong) AMapGeoPoint *location; // 坐标点 463 | @property (nonatomic, strong) NSString *citycode; // 城市编码 464 | @property (nonatomic, strong) NSString *width; // 道路宽度 465 | @property (nonatomic, strong) NSString *type; // 道路分类 466 | 467 | @end 468 | 469 | /*! 470 | @brief 道路交叉口 471 | */ 472 | @interface AMapRoadInter : NSObject 473 | 474 | @property (nonatomic, assign) NSInteger distance; // 距离(单位:米) 475 | @property (nonatomic, strong) NSString *direction; // 方向 476 | @property (nonatomic, strong) AMapGeoPoint *location; // 经纬度 477 | @property (nonatomic, strong) NSString *firstId; // 第一条道路ID 478 | @property (nonatomic, strong) NSString *firstName; // 第一条道路名称 479 | @property (nonatomic, strong) NSString *secondId; // 第二条道路ID 480 | @property (nonatomic, strong) NSString *secondName; // 第二条道路名称 481 | 482 | @end 483 | 484 | /*! 485 | @brief 门牌信息 486 | */ 487 | @interface AMapStreetNumber : NSObject 488 | 489 | @property (nonatomic, strong) NSString *street; // 街道名称 490 | @property (nonatomic, strong) NSString *number; // 门牌号 491 | @property (nonatomic, strong) AMapGeoPoint *location; // 坐标点 492 | @property (nonatomic, assign) NSInteger distance; // 距离(单位:米) 493 | @property (nonatomic, strong) NSString *direction; // 方向 494 | 495 | @end 496 | 497 | /*! 498 | @brief 地址组成要素 499 | */ 500 | @interface AMapAddressComponent : NSObject 501 | 502 | @property (nonatomic, strong) NSString *province; // 省 503 | @property (nonatomic, strong) NSString *city; // 市 504 | @property (nonatomic, strong) NSString *district; // 区 505 | @property (nonatomic, strong) NSString *township; // 乡镇 506 | @property (nonatomic, strong) NSString *neighborhood; // 社区 507 | @property (nonatomic, strong) NSString *building; // 建筑 508 | @property (nonatomic, strong) NSString *citycode; // 城市编码 509 | @property (nonatomic, strong) NSString *adcode; // 区域编码 510 | @property (nonatomic, strong) AMapStreetNumber *streetNumber; // 门牌信息 511 | 512 | @end 513 | 514 | /*! 515 | @brief 逆地理编码 516 | */ 517 | @interface AMapReGeocode : NSObject 518 | 519 | // basic: 520 | @property (nonatomic, strong) NSString *formattedAddress; // 格式化地址 521 | @property (nonatomic, strong) AMapAddressComponent *addressComponent; // 地址组成要素 522 | 523 | // extensions: 524 | @property (nonatomic, strong) NSArray *roads; // 道路信息 AMapRoad数组 525 | @property (nonatomic, strong) NSArray *roadinters; // 道路路口信息 AMapRoadInter 数组 526 | @property (nonatomic, strong) NSArray *pois; // 兴趣点信息 AMapPOI数组 527 | 528 | @end 529 | 530 | #pragma mark - #导航结果数据类型 531 | 532 | /*! 533 | @brief 实时路况信息 534 | */ 535 | @interface AMapTMC : NSObject 536 | 537 | @property (nonatomic, strong) NSString *lcode; // 路况信息对应的locationcode 538 | @property (nonatomic, assign) NSInteger distance; // 路段长度(单位:米) 539 | @property (nonatomic, assign) NSInteger status; // 路况状态:0-未知;1-畅通;2-缓行;3-拥堵 540 | 541 | + (AMapTMC *)TMCWithLCode:(NSString *)lcode distance:(NSInteger)distance status:(NSInteger)status; 542 | 543 | @end 544 | 545 | /*! 546 | @brief 导航路段 547 | */ 548 | @interface AMapStep : NSObject 549 | 550 | // basic: 551 | @property (nonatomic, strong) NSString *instruction; // 行走指示 552 | @property (nonatomic, strong) NSString *orientation; // 方向 553 | @property (nonatomic, strong) NSString *road; // 道路名称 554 | @property (nonatomic, assign) NSInteger distance; // 此路段长度(单位:米) 555 | @property (nonatomic, assign) NSInteger duration; // 此路段预计耗时(单位:秒) 556 | @property (nonatomic, strong) NSString *polyline; // 此路段坐标点串 557 | @property (nonatomic, strong) NSString *action; // 导航主要动作 558 | @property (nonatomic, strong) NSString *assistantAction; // 导航辅助动作 559 | @property (nonatomic, assign) CGFloat tolls; // 此段收费(单位:元) 560 | @property (nonatomic, assign) NSInteger tollDistance; // 收费路段长度(单位:米) 561 | @property (nonatomic, strong) NSString *tollRoad; // 主要收费路段 562 | 563 | // extensions: 564 | @property (nonatomic, strong) NSArray *tmcs; // 路况信息 AMapTMC 数组 565 | @property (nonatomic, strong) NSArray *cities; // 途径城市 AMapCity 数组 566 | 567 | @end 568 | 569 | /*! 570 | @brief 步行、驾车方案 571 | */ 572 | @interface AMapPath : NSObject 573 | 574 | @property (nonatomic, assign) NSInteger distance; // 起点和终点的距离 575 | @property (nonatomic, assign) NSInteger duration; // 预计耗时(单位:秒) 576 | @property (nonatomic, strong) NSString *strategy; // 导航策略 577 | @property (nonatomic, strong) NSArray *steps; // 导航路段 AMapStep数组 578 | @property (nonatomic, assign) CGFloat tolls; // 此方案费用(单位:元) 579 | @property (nonatomic, assign) NSInteger tollDistance; // 此方案收费路段长度(单位:米) 580 | 581 | @end 582 | 583 | /*! 584 | @brief 导航方案 585 | */ 586 | @interface AMapRoute : NSObject 587 | 588 | @property (nonatomic, strong) AMapGeoPoint *origin; // 起点坐标 589 | @property (nonatomic, strong) AMapGeoPoint *destination; // 终点坐标 590 | @property (nonatomic, assign) CGFloat taxiCost; // 出租车费用(单位:元) 591 | @property (nonatomic, strong) NSArray *paths; // 步行、驾车方案列表 AMapPath 数组 592 | @property (nonatomic, strong) NSArray *transits; // 公交换乘方案列表 AMapTransit 数组 593 | 594 | @end 595 | 596 | /*! 597 | @brief 步行导航信息 598 | */ 599 | @interface AMapWalking : NSObject 600 | 601 | @property (nonatomic, strong) AMapGeoPoint *origin; // 起点坐标 602 | @property (nonatomic, strong) AMapGeoPoint *destination; // 终点坐标 603 | @property (nonatomic, assign) NSInteger distance; // 起点和终点的步行距离 604 | @property (nonatomic, assign) NSInteger duration; // 步行预计时间 605 | @property (nonatomic, strong) NSArray *steps; // 步行路段 AMapStep数组 606 | 607 | @end 608 | 609 | /*! 610 | @brief 公交换乘路段 611 | */ 612 | @interface AMapSegment : NSObject 613 | 614 | @property (nonatomic, strong) AMapWalking *walking; // 此路段步行导航信息 615 | @property (nonatomic, strong) AMapBusLine *busline; // 此路段公交导航信息 616 | @property (nonatomic, strong) NSString *enterName; // 入口名称 617 | @property (nonatomic, strong) AMapGeoPoint *enterLocation; // 入口经纬度 618 | @property (nonatomic, strong) NSString *exitName; // 出口名称 619 | @property (nonatomic, strong) AMapGeoPoint *exitLocation; // 出口经纬度 620 | 621 | @end 622 | 623 | /*! 624 | @brief 公交方案 625 | */ 626 | @interface AMapTransit : NSObject 627 | 628 | @property (nonatomic, assign) CGFloat cost; // 此公交方案价格(单位:元) 629 | @property (nonatomic, assign) NSInteger duration; // 此换乘方案预期时间(单位:秒) 630 | @property (nonatomic, assign) BOOL nightflag; // 是否是夜班车 631 | @property (nonatomic, assign) NSInteger walkingDistance; // 此方案总步行距离(单位:米) 632 | @property (nonatomic, strong) NSArray *segments; // 换乘路段 AMapSegment数组 633 | 634 | @end 635 | 636 | #pragma mark - 意图分析相关 637 | 638 | /*! 639 | @brief 出发点/终点 640 | */ 641 | @interface AMapWPoint : NSObject 642 | 643 | @property (nonatomic, strong) NSString *name; // 名称 644 | @property (nonatomic, strong) NSArray *pois; 645 | 646 | @end 647 | 648 | /*! 649 | @brief 出发点/终点集合 650 | */ 651 | @interface AMapWayPoint : NSObject 652 | 653 | @property (nonatomic, strong) AMapWPoint *origin; // 起点 654 | @property (nonatomic, strong) AMapWPoint *destination; // 终点 655 | 656 | @end 657 | 658 | 659 | -------------------------------------------------------------------------------- /HelloAmap/Extern/AMapSearchKit.framework/Versions/2.4.1.16e89a2/Headers/AMapSearchAPI.h: -------------------------------------------------------------------------------- 1 | // 2 | // AMapSearchAPI.h 3 | // searchKitV3 4 | // 5 | // Created by yin cai on 13-7-4. 6 | // Copyright (c) 2013年 Autonavi. All rights reserved. 7 | // 8 | #import 9 | #import "AMapSearchObj.h" 10 | 11 | @protocol AMapSearchDelegate; 12 | 13 | typedef NS_ENUM(NSInteger, AMapSearchLanguage) 14 | { 15 | AMapSearchLanguage_en = 0, 16 | AMapSearchLanguage_zh_CN = 1, 17 | }; 18 | 19 | #pragma mark - AMapSearchAPI Interface 20 | 21 | @interface AMapSearchAPI : NSObject 22 | 23 | /*! 24 | @brief 实现了AMapSearchDelegate协议的类指针 25 | */ 26 | @property (nonatomic, assign) id delegate; 27 | 28 | /*! 29 | @brief 查询超时时间 默认超时时间20秒 30 | */ 31 | @property (nonatomic, assign) NSInteger timeOut; 32 | 33 | /*! 34 | @brief 查询结果返回语言 35 | */ 36 | @property (nonatomic, assign) AMapSearchLanguage language; 37 | 38 | /*! 39 | @brief AMapSearch的初始化函数。注意,请不要直接使用init进行初始化,会因为有些属性没有初始化而发生错误。 40 | @param key 搜索模块鉴权Key(详情请访问 http://api.amap.com/ ) 41 | @param delegate 实现AMapSearchDelegate协议的对象id 42 | @return AMapSearch类对象id 43 | */ 44 | - (id)initWithSearchKey:(NSString *)key Delegate:(id)delegate; 45 | 46 | /*! 47 | @brief POI查询接口函数,即根据 POI 参数选项进行 POI 查询。 48 | @param request 查询选项。具体属性字段请参考 AMapPlaceSearchRequest 类。 49 | */ 50 | - (void)AMapPlaceSearch:(AMapPlaceSearchRequest *)request; 51 | 52 | /*! 53 | @brief 路径规划查询接口。 54 | @param request 查询选项。具体属性字段请参考 AMapNavigationSearchRequest 类。 55 | */ 56 | - (void)AMapNavigationSearch:(AMapNavigationSearchRequest *)request; 57 | 58 | /*! 59 | @brief 输入提示查询接口。 60 | @param request 查询选项。具体属性字段请参考 AMapInputTipsSearchRequest 类。 61 | */ 62 | - (void)AMapInputTipsSearch:(AMapInputTipsSearchRequest *)request; 63 | 64 | /*! 65 | @brief 地址编码查询接口。 66 | @param request 查询选项。具体属性字段请参考 AMapGeocodeSearchRequest 类。 67 | */ 68 | - (void)AMapGeocodeSearch:(AMapGeocodeSearchRequest *)request; 69 | 70 | /*! 71 | @brief 逆地址编码查询接口。 72 | @param request 查询选项。具体属性字段请参考 AMapReGeocodeSearchRequest 类。 73 | */ 74 | - (void)AMapReGoecodeSearch:(AMapReGeocodeSearchRequest *)request; 75 | 76 | /*! 77 | @brief 公交线路查询接口。 78 | @param request 查询选项。具体属性字段请参考 AMapBusLineSearchRequest 类。 79 | */ 80 | - (void)AMapBusLineSearch:(AMapBusLineSearchRequest *)request; 81 | 82 | /*! 83 | @brief 公交车站查询接口。 84 | @param request 查询选项。具体属性字段请参考 AMapBusStopSearchRequest 类。 85 | */ 86 | - (void)AMapBusStopSearch:(AMapBusStopSearchRequest *)request; 87 | 88 | /*! 89 | @brief 行政区域查询接口。 90 | @param request 查询选项。具体属性字段请参考 AMapDistrictSearchRequest 类。 91 | */ 92 | - (void)AMapDistrictSearch:(AMapDistrictSearchRequest *)request; 93 | 94 | @end 95 | 96 | #pragma mark - AMapSearchDelegate 97 | 98 | /** AMapSearch errorCode */ 99 | enum 100 | { 101 | AMapSearchErrorUnknown = 1, // 未知错误 102 | AMapSearchErrorInvalidSCode = 2, // 安全码验证错误 103 | AMapSearchErrorInvalidKey = 3, // key非法或过期 104 | AMapSearchErrorInvalidService = 4, // 请求服务不存在 105 | AMapSearchErrorInvalidResponse = 5, // 请求服务响应错误 106 | AMapSearchErrorInsufficientPrivileges = 6, // 无权限访问此服务 107 | AMapSearchErrorOverQuota = 7, // 请求超出配额 108 | AMapSearchErrorInvalidParams = 8, // 请求参数非法 109 | AMapSearchErrorInvalidProtocol = 9, // 协议解析错误 110 | AMapSearchErrorTimeOut = 10, // 连接超时 111 | AMapSearchErrorCannotFindHost = 11, // 找不到主机 112 | AMapSearchErrorBadURL = 12, // URL异常 113 | AMapSearchErrorNotConnectedToInternet = 13, // 连接异常 114 | AMapSearchErrorCannotConnectToHost = 14, // 服务器连接失败 115 | }; 116 | 117 | /** AMapSearch errorDomain */ 118 | extern NSString *const AMapSearchErrorDomain; 119 | 120 | /** AMapSearchDelegate协议类,从NSObject类继承. */ 121 | @protocol AMapSearchDelegate 122 | 123 | @optional 124 | 125 | /*! 126 | 当请求发生错误时,会调用代理的此方法. 127 | @param request 发生错误的请求. 128 | @param error 返回的错误. 129 | */ 130 | - (void)searchRequest:(id)request didFailWithError:(NSError *)error; 131 | 132 | - (void)search:(id)searchRequest error:(NSString *)errInfo __attribute__ ((deprecated("use -search:didFailWithError instead."))); 133 | 134 | /*! 135 | @brief POI查询回调函数 136 | @param request 发起查询的查询选项(具体字段参考AMapPlaceSearchRequest类中的定义) 137 | @param response 查询结果(具体字段参考AMapPlaceSearchResponse类中的定义) 138 | */ 139 | - (void)onPlaceSearchDone:(AMapPlaceSearchRequest *)request response:(AMapPlaceSearchResponse *)response; 140 | 141 | /*! 142 | @brief 路径规划查询回调函数 143 | @param request 发起查询的查询选项(具体字段参考AMapNavigationSearchRequest类中的定义) 144 | @param response 查询结果(具体字段参考AMapNavigationSearchResponse类中的定义) 145 | */ 146 | - (void)onNavigationSearchDone:(AMapNavigationSearchRequest *)request response:(AMapNavigationSearchResponse *)response; 147 | 148 | /*! 149 | @brief 输入提示查询回调函数 150 | @param request 发起查询的查询选项(具体字段参考AMapInputTipsSearchRequest类中的定义) 151 | @param response 查询结果(具体字段参考AMapInputTipsSearchResponse类中的定义) 152 | */ 153 | - (void)onInputTipsSearchDone:(AMapInputTipsSearchRequest *)request response:(AMapInputTipsSearchResponse *)response; 154 | 155 | /*! 156 | @brief 地理编码查询回调函数 157 | @param request 发起查询的查询选项(具体字段参考AMapGeocodeSearchRequest类中的定义) 158 | @param response 查询结果(具体字段参考AMapGeocodeSearchResponse类中的定义) 159 | */ 160 | - (void)onGeocodeSearchDone:(AMapGeocodeSearchRequest *)request response:(AMapGeocodeSearchResponse *)response; 161 | 162 | /*! 163 | @brief 逆地理编码查询回调函数 164 | @param request 发起查询的查询选项(具体字段参考AMapReGeocodeSearchRequest类中的定义) 165 | @param response 查询结果(具体字段参考AMapReGeocodeSearchResponse类中的定义) 166 | */ 167 | - (void)onReGeocodeSearchDone:(AMapReGeocodeSearchRequest *)request response:(AMapReGeocodeSearchResponse *)response; 168 | 169 | /*! 170 | @brief 公交线路查询回调函数 171 | @param request 发起查询的查询选项(具体字段参考AMapBusLineSearchRequest类中的定义) 172 | @param response 查询结果(具体字段参考AMapBusLineSearchResponse类中的定义) 173 | */ 174 | - (void)onBusLineSearchDone:(AMapBusLineSearchRequest *)request response:(AMapBusLineSearchResponse *)response; 175 | 176 | /*! 177 | @brief 公交站查询回调函数 178 | @param request 发起查询的查询选项(具体字段参考AMapBusStopSearchRequest类中的定义) 179 | @param response 查询结果(具体字段参考AMapBusStopSearchResponse类中的定义) 180 | */ 181 | - (void)onBusStopSearchDone:(AMapBusStopSearchRequest *)request response:(AMapBusStopSearchResponse *)response; 182 | 183 | /*! 184 | @brief 行政区域查询回调函数 185 | @param request 发起查询的查询选项(具体字段参考AMapDistrictSearchRequest类中的定义) 186 | @param response 查询结果(具体字段参考AMapDistrictSearchResponse类中的定义) 187 | */ 188 | - (void)onDistrictSearchDone:(AMapDistrictSearchRequest *)request response:(AMapDistrictSearchResponse *)response; 189 | 190 | 191 | @end 192 | 193 | 194 | -------------------------------------------------------------------------------- /HelloAmap/Extern/AMapSearchKit.framework/Versions/2.4.1.16e89a2/Headers/AMapSearchObj.h: -------------------------------------------------------------------------------- 1 | // 2 | // AMapSearchObj.h 3 | // searchKitV3 4 | // 5 | // Created by yin cai on 13-7-2. 6 | // Copyright (c) 2013年 Autonavi. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "AMapCommonObj.h" 11 | 12 | /*! 13 | @brief SearchType可选值 14 | */ 15 | typedef NS_ENUM(NSInteger, AMapSearchType) 16 | { 17 | AMapSearchType_PlaceID = 1, 18 | AMapSearchType_PlaceKeyword = 2, 19 | AMapSearchType_PlaceAround = 3, 20 | AMapSearchType_PlacePolygon = 4, 21 | AMapSearchType_Geocode = 5, 22 | AMapSearchType_ReGeocode = 6, 23 | AMapSearchType_StopKeyword = 8, 24 | AMapSearchType_InputTips = 9, 25 | AMapSearchType_RoadID = 11, 26 | AMapSearchType_LineID = 13, 27 | AMapSearchType_LineKeyword = 14, 28 | AMapSearchType_NaviDrive = 16, 29 | AMapSearchType_NaviWalking = 17, 30 | AMapSearchType_NaviBus = 20, 31 | AMapSearchType_District = 22, 32 | AMapSearchType_Intention = 24, 33 | }; 34 | 35 | #pragma mark - AMapPlaceSearchRequest 36 | 37 | /*! 38 | @brief POI查询过滤参数 39 | */ 40 | typedef NS_OPTIONS(NSUInteger, AMapRequireFilter) 41 | { 42 | AMapRequireNone = 0, 43 | AMapRequireGroupbuy = 1 << 0, // 全行业 44 | AMapRequireDiscount = 1 << 1, // 全行业 45 | AMapRequireMealOrdering = 1 << 2, // 餐饮行业 46 | }; 47 | 48 | @interface AMapPlaceSearchFilter : NSObject 49 | 50 | @property (nonatomic, assign) NSUInteger starFilter; // 过滤酒店星级(酒店行业)。(只限1,2,3,4,5;0 为不过滤)。 51 | @property (nonatomic, copy) NSArray *costFilter; // 过滤平均消费范围(全行业)。NSNumber(double)数组,[min, max] 表示价格区间,上限max可为空。 52 | @property (nonatomic, assign) AMapRequireFilter requireFilter; // 查询结果过滤. 53 | 54 | @end 55 | 56 | /*! 57 | @brief POI搜索 58 | */ 59 | @interface AMapPlaceSearchRequest : NSObject 60 | 61 | @property (nonatomic, assign) AMapSearchType searchType; // 默认为keyword 62 | 63 | /** 是否返回扩展信息,默认为 NO,若设置了requireGroup/requireDiscount任意一个为YES,则该参数自动设置为YES。*/ 64 | @property (nonatomic, assign) BOOL requireExtension; 65 | 66 | /** 查询结果过滤选项,和types配合使用,得到的结果在POI的bizExtension属性中体现。设置requireExtension为YES生效. */ 67 | @property (nonatomic, copy) AMapPlaceSearchFilter *searchFilter; 68 | 69 | /** 是否过滤带团购信息的结果,默认为 NO; 推荐使用searchFilter中的requireFilter代替。*/ 70 | @property (nonatomic, assign) BOOL requireGroup __attribute__((deprecated("use 'requireFilter' in searchFilter instead"))); 71 | 72 | /** 是否过滤带优惠信息的结果,默认为 NO; 推荐使用searchFilter中的requireFilter代替。*/ 73 | @property (nonatomic, assign) BOOL requireDiscount __attribute__((deprecated("use 'requireFilter' in searchFilter instead"))); 74 | 75 | // ID查询参数 76 | @property (nonatomic, copy) NSString *uid; // POI全局唯一ID 77 | 78 | // 周边查询参数: 79 | @property (nonatomic, copy) AMapGeoPoint *location; // 中心点坐标 80 | @property (nonatomic, assign) NSInteger radius; // 查询半径,单位:米 [default = 3000] 81 | 82 | // 多边形查询参数 83 | @property (nonatomic, copy) AMapGeoPolygon *polygon; // 坐标串定义 84 | 85 | // 关键字查询参数 86 | @property (nonatomic, copy) NSString *keywords; // 查询关键字,多个关键字用“|”分割,“空格"表示与,“双引号”表示不可分割 87 | @property (nonatomic, strong) NSArray *types; // POI分类字符串数组 88 | @property (nonatomic, strong) NSArray *city; // 城市数组,可选值:cityname(中文或中文全拼)、citycode、adcode 89 | 90 | @property (nonatomic, assign) NSInteger sortrule; // 排序规则:0-混合排序;1-距离排序 [default = 0] 91 | @property (nonatomic, assign) NSInteger offset; // 每页记录数 [default = 20] 92 | @property (nonatomic, assign) NSInteger page; // 当前页数 [default = 1] 93 | 94 | @end 95 | 96 | @interface AMapPlaceSearchResponse : NSObject 97 | 98 | @property (nonatomic, assign) NSInteger count; // 返回的POI数目 99 | @property (nonatomic, strong) AMapSuggestion *suggestion; // 关键字建议列表和城市建议列表 100 | @property (nonatomic, strong) NSArray *pois; // POI对象数组 101 | 102 | @end 103 | 104 | #pragma mark - AMapGeocodeSearchRequest 105 | 106 | @interface AMapGeocodeSearchRequest : NSObject 107 | 108 | @property (nonatomic, assign) AMapSearchType searchType; 109 | @property (nonatomic, copy) NSString *address; //地址 110 | @property (nonatomic, strong) NSArray *city; // 城市,可选值:cityname(中文或中文全拼)、citycode、adcode NSString数组 111 | @end 112 | 113 | @interface AMapGeocodeSearchResponse : NSObject 114 | 115 | @property (nonatomic, assign) NSInteger count; // 返回数目 116 | @property (nonatomic, strong) NSArray* geocodes; // 地理编码结果 AMapGeocode数组 117 | @end 118 | 119 | #pragma mark - AMapReGeocodeSearchRequest 120 | 121 | @interface AMapReGeocodeSearchRequest : NSObject 122 | 123 | @property (nonatomic, assign) AMapSearchType searchType; 124 | @property (nonatomic, assign) BOOL requireExtension; // 是否返回扩展信息,默认为 NO 125 | @property (nonatomic, copy) AMapGeoPoint *location; // 中心点坐标 126 | @property (nonatomic, assign) NSInteger radius; //[default = 1000]; // 查询半径,单位:米 127 | @property (nonatomic, copy) NSString *poiIdFilter; // 返回结果屏蔽此ID的POI 128 | 129 | @end 130 | 131 | @interface AMapReGeocodeSearchResponse : NSObject 132 | 133 | @property(nonatomic, strong) AMapReGeocode *regeocode; // 逆地理编码结果 134 | 135 | @end 136 | 137 | #pragma mark - AMapInputTipsSearchRequest 138 | 139 | @interface AMapInputTipsSearchRequest : NSObject 140 | 141 | @property (nonatomic, assign) AMapSearchType searchType; 142 | @property (nonatomic, copy) NSString *keywords; // 查询关键字,多个关键字用“|”分割,“空格"表示与,“双引号”表示不可分割 143 | @property (nonatomic, strong) NSArray *types; // POI分类 NSString数组 144 | @property (nonatomic, strong) NSArray *city; // 城市,可选值:cityname(中文或中文全拼)、citycode、adcode NSString数组 145 | 146 | @end 147 | 148 | @interface AMapInputTipsSearchResponse : NSObject 149 | 150 | @property (nonatomic, assign) NSInteger count; // 返回数目 151 | @property (nonatomic, strong) NSArray *tips; // 提示列表 AMapTip数组 152 | 153 | @end 154 | 155 | #pragma mark - AMapBusLineSearchRequest 156 | 157 | @interface AMapBusLineSearchRequest : NSObject 158 | 159 | @property (nonatomic, assign) AMapSearchType searchType; // 默认为keyword 160 | @property (nonatomic, assign) BOOL requireExtension; // 是否返回扩展信息,默认为 NO 161 | @property (nonatomic, copy) NSString *uid; // 公交路线ID 162 | @property (nonatomic, copy) NSString *keywords; // 查询关键字,多个关键字用“|”分割,“空格"表示与,“双引号”表示不可分割 163 | @property (nonatomic, strong) NSArray *city; // 城市,可选值:cityname(中文或中文全拼)、citycode、adcode NSString数组 164 | @property (nonatomic, assign) NSInteger offset; // [default = 20]; // 每页记录数 165 | @property (nonatomic, assign) NSInteger page; // [default = 1]; // 当前页数 166 | 167 | @end 168 | 169 | @interface AMapBusLineSearchResponse : NSObject 170 | 171 | @property (nonatomic, assign) NSInteger count; // 返回数目 172 | @property (nonatomic, strong) AMapSuggestion *suggestion; // 关键字建议列表和城市建议列表 173 | @property (nonatomic, strong) NSArray *buslines; // 公交路线 AMapBusLine 数组 174 | @end 175 | 176 | #pragma mark - AMapBusStopSearchRequest 177 | 178 | @interface AMapBusStopSearchRequest : NSObject 179 | 180 | @property (nonatomic, assign) AMapSearchType searchType; // 默认为keyword 181 | @property (nonatomic, copy) NSString *keywords; // 查询关键字,多个关键字用“|”分割,“空格"表示与,“双引号”表示不可分割 182 | @property (nonatomic, strong) NSArray *city; // 城市,可选值:cityname(中文或中文全拼)、citycode、adcode NSString数组 183 | @property (nonatomic, assign) NSInteger offset; // [default = 20]; // 每页记录数 184 | @property (nonatomic, assign) NSInteger page; // [default = 1]; // 当前页数 185 | 186 | @end 187 | 188 | @interface AMapBusStopSearchResponse : NSObject 189 | 190 | @property (nonatomic, assign) NSInteger count; // 返回数目 191 | @property (nonatomic, strong) AMapSuggestion *suggestion; // 关键字建议列表和城市建议列表 192 | @property (nonatomic, strong) NSArray *busstops; // 公交站 AMapBusStop 数组 193 | 194 | @end 195 | 196 | #pragma mark - AMapNavigationSearchRequest 197 | 198 | @interface AMapNavigationSearchRequest : NSObject 199 | 200 | @property (nonatomic, assign) AMapSearchType searchType; // 默认为bus 201 | // 步行导航参数: 202 | @property (nonatomic, assign) NSInteger multipath; //[default = 0]; // 是否提供备选步行方案:0-只提供一条步行方案;1-提供备选步行方案(有可能无备选方案) 203 | 204 | // 驾车导航参数: 205 | @property (nonatomic, strong) NSArray *waypoints; // 途经点 AMapGeoPoint 数组 206 | @property (nonatomic, strong) NSArray *avoidpolygons; // 避让区域 AMapGeoPolygon 数组 207 | @property (nonatomic, copy) NSString *avoidroad; // 避让道路名 208 | @property (nonatomic, copy) NSString *originId; // 出发点 POI ID 209 | @property (nonatomic, copy) NSString *destinationId; // 目的地 POI ID 210 | 211 | // 公交换乘参数: 212 | @property (nonatomic, assign) BOOL nightflag; // 是否包含夜班车 213 | 214 | // 策略: 215 | // 驾车导航策略:0-速度优先(时间);1-费用优先(不走收费路段的最快道路);2-距离优先;3-不走快速路;4-结合实时交通(躲避拥堵);5-多策略(同时使用速度优先、费用优先、距离优先三个策略);6-不走高速;7-不走高速且避免收费;8-躲避收费和拥堵;9-不走高速且躲避收费和拥堵 216 | // 公交换乘策略:0-最快捷模式;1-最经济模式;2-最少换乘模式;3-最少步行模式;4-最舒适模式;5-不乘地铁模式 217 | @property (nonatomic, assign) NSInteger strategy; //[default = 0]; 218 | 219 | @property (nonatomic, copy) AMapGeoPoint *origin; // 出发点 220 | @property (nonatomic, copy) AMapGeoPoint *destination; // 目的地 221 | @property (nonatomic, copy) NSString *city; // 城市 222 | @property (nonatomic, assign) BOOL requireExtension; // 是否返回扩展信息,默认为 NO 223 | 224 | @end 225 | 226 | @interface AMapNavigationSearchResponse : NSObject 227 | 228 | @property (nonatomic, assign) NSInteger count; // 返回数目 229 | @property (nonatomic, strong) AMapRoute *route; // 导航方案 230 | 231 | @end 232 | 233 | #pragma mark - AMapDistrictSearchRequest 234 | 235 | @interface AMapDistrictSearchRequest : NSObject 236 | 237 | @property (nonatomic, assign) AMapSearchType searchType; // 默认为行政区域查询 238 | @property (nonatomic, copy) NSString *keywords; // 查询关键字,只支持单关键字搜索,全国范围 239 | @property (nonatomic, assign) BOOL requireExtension; // 是否返回边界坐标,默认为 NO 240 | 241 | @end 242 | 243 | @interface AMapDistrictSearchResponse : NSObject 244 | 245 | @property (nonatomic, assign) NSInteger count; // 返回数目 246 | @property (nonatomic, strong) NSArray *districts; // 行政区域 AMapDistrict 数组 247 | 248 | @end 249 | 250 | 251 | 252 | 253 | -------------------------------------------------------------------------------- /HelloAmap/Extern/AMapSearchKit.framework/Versions/Current: -------------------------------------------------------------------------------- 1 | 2.4.1.16e89a2 -------------------------------------------------------------------------------- /HelloAmap/Extern/MAMapKit.framework/Headers: -------------------------------------------------------------------------------- 1 | Versions/Current/Headers -------------------------------------------------------------------------------- /HelloAmap/Extern/MAMapKit.framework/MAMapKit: -------------------------------------------------------------------------------- 1 | Versions/Current/MAMapKit -------------------------------------------------------------------------------- /HelloAmap/Extern/MAMapKit.framework/Resources: -------------------------------------------------------------------------------- 1 | Versions/Current/Resources -------------------------------------------------------------------------------- /HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Headers/MAAnnotation.h: -------------------------------------------------------------------------------- 1 | // 2 | // MAAnnotation.h 3 | // MAMapKit 4 | // 5 | // Created by yin cai on 11-12-13. 6 | // Copyright (c) 2011年 Autonavi Inc. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | #import 12 | 13 | /*! 14 | @brief 该类为标注点的protocol,提供了标注类的基本信息函数 15 | */ 16 | @protocol MAAnnotation 17 | 18 | /*! 19 | @brief 标注view中心坐标 20 | */ 21 | @property (nonatomic, readonly) CLLocationCoordinate2D coordinate; 22 | 23 | @optional 24 | 25 | /*! 26 | @brief 获取annotation标题 27 | @return 返回annotation的标题信息 28 | */ 29 | - (NSString *)title; 30 | 31 | /*! 32 | @brief 获取annotation副标题 33 | @return 返回annotation的副标题信息 34 | */ 35 | - (NSString *)subtitle; 36 | 37 | /** 38 | @brief 设置标注的坐标,在拖拽时会被调用. 39 | @param newCoordinate 新的坐标值 40 | */ 41 | - (void)setCoordinate:(CLLocationCoordinate2D)newCoordinate; 42 | 43 | @end 44 | -------------------------------------------------------------------------------- /HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Headers/MAAnnotationView.h: -------------------------------------------------------------------------------- 1 | // 2 | // MAAnnotationView.h 3 | // MAMapKitDemo 4 | // 5 | // Created by songjian on 13-1-7. 6 | // Copyright (c) 2013年 songjian. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | #if (__IPHONE_4_0 <= __IPHONE_OS_VERSION_MAX_ALLOWED) 12 | 13 | enum { 14 | MAAnnotationViewDragStateNone = 0, // View is at rest, sitting on the map. 15 | MAAnnotationViewDragStateStarting, // View is beginning to drag (e.g. pin lift) 16 | MAAnnotationViewDragStateDragging, // View is dragging ("lift" animations are complete) 17 | MAAnnotationViewDragStateCanceling, // View was not dragged and should return to it's starting position (e.g. pin drop) 18 | MAAnnotationViewDragStateEnding // View was dragged, new coordinate is set and view should return to resting position (e.g. pin drop) 19 | }; 20 | 21 | typedef NSUInteger MAAnnotationViewDragState; 22 | 23 | #endif // #if (__IPHONE_4_0 <= __IPHONE_OS_VERSION_MAX_ALLOWED) 24 | 25 | @class MAAnnotationViewInternal; 26 | @protocol MAAnnotation; 27 | 28 | /*! 29 | @brief 标注view 30 | */ 31 | @interface MAAnnotationView : UIView 32 | 33 | /*! 34 | @brief 初始化并返回一个annotation view 35 | @param annotation 关联的annotation对象 36 | @param reuseIdentifier 如果要重用view,传入一个字符串,否则设为nil,建议重用view 37 | @return 初始化成功则返回annotation view,否则返回nil 38 | */ 39 | - (id)initWithAnnotation:(id )annotation reuseIdentifier:(NSString *)reuseIdentifier; 40 | 41 | /*! 42 | @brief 复用标识 43 | */ 44 | @property (nonatomic, readonly, copy) NSString *reuseIdentifier; 45 | 46 | /*! 47 | @brief 当从reuse队列里取出时被调用 48 | */ 49 | - (void)prepareForReuse; 50 | 51 | /*! 52 | @brief 关联的annotation 53 | */ 54 | @property (nonatomic, strong) id annotation; 55 | 56 | /*! 57 | @brief 显示的image 58 | */ 59 | @property (nonatomic, strong) UIImage *image; 60 | 61 | /*! 62 | @brief 默认情况下, annotation view的中心位于annotation的坐标位置,可以设置centerOffset改变view的位置,正的偏移使view朝右下方移动,负的朝左上方,单位是像素 63 | */ 64 | @property (nonatomic) CGPoint centerOffset; 65 | 66 | /*! 67 | @brief 默认情况下, 弹出的气泡位于view正中上方,可以设置calloutOffset改变view的位置,正的偏移使view朝右下方移动,负的朝左上方,单位是像素 68 | */ 69 | @property (nonatomic) CGPoint calloutOffset; 70 | 71 | /*! 72 | @brief 默认为YES,当为NO时view忽略触摸事件 73 | */ 74 | @property (nonatomic, getter=isEnabled) BOOL enabled; 75 | 76 | @property (nonatomic, getter=isHighlighted) BOOL highlighted; 77 | 78 | /*! 79 | @brief 设置是否处于选中状态 80 | */ 81 | @property (nonatomic, getter=isSelected) BOOL selected; 82 | - (void)setSelected:(BOOL)selected animated:(BOOL)animated; 83 | 84 | @property (nonatomic) BOOL canShowCallout; 85 | 86 | /*! 87 | @brief 显示在气泡左侧的view 88 | */ 89 | @property (strong, nonatomic) UIView *leftCalloutAccessoryView; 90 | 91 | /*! 92 | @brief 显示在气泡右侧的view 93 | */ 94 | @property (strong, nonatomic) UIView *rightCalloutAccessoryView; 95 | 96 | /*! 97 | @brief 是否支持拖动 98 | */ 99 | @property (nonatomic, getter=isDraggable) BOOL draggable NS_AVAILABLE(NA, 4_0); 100 | 101 | /*! 102 | @brief 当前view的拖动状态 103 | */ 104 | @property (nonatomic) MAAnnotationViewDragState dragState NS_AVAILABLE(NA, 4_0); 105 | - (void)setDragState:(MAAnnotationViewDragState)newDragState animated:(BOOL)animated NS_AVAILABLE(NA, 4_2); 106 | 107 | @end 108 | -------------------------------------------------------------------------------- /HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Headers/MACircle.h: -------------------------------------------------------------------------------- 1 | // 2 | // MACircle.h 3 | // MAMapKit 4 | // 5 | // 6 | // Copyright (c) 2011年 Autonavi Inc. All rights reserved. 7 | // 8 | 9 | #import "MAShape.h" 10 | #import "MAOverlay.h" 11 | #import "MAGeometry.h" 12 | 13 | /*! 14 | @brief 该类用于定义一个圆, 通常MACircle是MACircleView的model 15 | */ 16 | @interface MACircle : MAShape { 17 | @package 18 | CLLocationCoordinate2D _coordinate; 19 | CLLocationDistance _radius; 20 | 21 | MAMapRect _boundingMapRect; 22 | } 23 | 24 | /*! 25 | @brief 根据中心点和半径生成圆 26 | @param coord 中心点的经纬度坐标 27 | @param radius 半径,单位:米 28 | @return 新生成的圆 29 | */ 30 | + (instancetype)circleWithCenterCoordinate:(CLLocationCoordinate2D)coord 31 | radius:(CLLocationDistance)radius; 32 | 33 | /*! 34 | @brief 根据map rect生成圆 35 | @param mapRect 圆的最小外界矩形 36 | @return 新生成的圆 37 | */ 38 | + (instancetype)circleWithMapRect:(MAMapRect)mapRect; 39 | 40 | /*! 41 | @brief 中心点经纬度坐标 42 | */ 43 | @property (nonatomic, readonly) CLLocationCoordinate2D coordinate; 44 | 45 | /*! 46 | @brief 半径,单位:米 47 | */ 48 | @property (nonatomic, readonly) CLLocationDistance radius; 49 | 50 | /*! 51 | @brief 该圆的外接map rect 52 | */ 53 | @property (nonatomic, readonly) MAMapRect boundingMapRect; 54 | 55 | @end 56 | -------------------------------------------------------------------------------- /HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Headers/MACircleView.h: -------------------------------------------------------------------------------- 1 | // 2 | // MACircleView.h 3 | // MAMapKit 4 | // 5 | // Created by yin cai on 11-12-30. 6 | // Copyright (c) 2011年 __MyCompanyName__. All rights reserved. 7 | // 8 | 9 | #import "MACircle.h" 10 | #import "MAOverlayPathView.h" 11 | 12 | /*! 13 | @brief 该类是MACircle的显示圆view,可以通过MAOverlayPathView修改其fill和stroke attributes 14 | */ 15 | @interface MACircleView : MAOverlayPathView 16 | 17 | /*! 18 | @brief 根据指定圆生成对应的View 19 | @param circle 指定的MACircle model 20 | @return 生成的View 21 | */ 22 | - (id)initWithCircle:(MACircle *)circle; 23 | 24 | /*! 25 | @brief 关联的MAcirlce model 26 | */ 27 | @property (nonatomic, readonly) MACircle *circle; 28 | 29 | @end 30 | -------------------------------------------------------------------------------- /HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Headers/MAGeodesicPolyline.h: -------------------------------------------------------------------------------- 1 | // 2 | // MAGeodesicPolyline.h 3 | // MapKit_static 4 | // 5 | // Created by songjian on 13-10-23. 6 | // Copyright (c) 2013年 songjian. All rights reserved. 7 | // 8 | 9 | #import "MAPolyline.h" 10 | 11 | @interface MAGeodesicPolyline : MAPolyline 12 | 13 | + (instancetype)polylineWithPoints:(MAMapPoint *)points count:(NSUInteger)count; 14 | + (instancetype)polylineWithCoordinates:(CLLocationCoordinate2D *)coords count:(NSUInteger)count; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Headers/MAGeometry.h: -------------------------------------------------------------------------------- 1 | // 2 | // MAGeometry.h 3 | // MAMapKitDemo 4 | // 5 | // Created by songjian on 12-12-21. 6 | // Copyright (c) 2012年 songjian. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | 12 | 13 | #ifdef __cplusplus 14 | extern "C" { 15 | #endif 16 | 17 | typedef struct { 18 | CLLocationDegrees latitudeDelta; 19 | CLLocationDegrees longitudeDelta; 20 | } MACoordinateSpan; 21 | 22 | typedef struct { 23 | CLLocationCoordinate2D center; 24 | MACoordinateSpan span; 25 | } MACoordinateRegion; 26 | 27 | static inline MACoordinateSpan MACoordinateSpanMake(CLLocationDegrees latitudeDelta, CLLocationDegrees longitudeDelta) 28 | { 29 | return (MACoordinateSpan){latitudeDelta, longitudeDelta}; 30 | } 31 | 32 | typedef struct { 33 | CLLocationCoordinate2D northEast; 34 | CLLocationCoordinate2D southWest; 35 | } MACoordinateBounds; 36 | 37 | static inline MACoordinateBounds MACoordinateBoundsMake(CLLocationCoordinate2D northEast,CLLocationCoordinate2D southWest) 38 | { 39 | return (MACoordinateBounds){northEast, southWest}; 40 | } 41 | 42 | static inline MACoordinateRegion MACoordinateRegionMake(CLLocationCoordinate2D centerCoordinate, MACoordinateSpan span) 43 | { 44 | return (MACoordinateRegion){centerCoordinate, span}; 45 | } 46 | 47 | extern MACoordinateRegion MACoordinateRegionMakeWithDistance(CLLocationCoordinate2D centerCoordinate, 48 | CLLocationDistance latitudinalMeters, 49 | CLLocationDistance longitudinalMeters); 50 | 51 | typedef struct { 52 | double x; 53 | double y; 54 | } MAMapPoint; 55 | 56 | typedef struct { 57 | double width; 58 | double height; 59 | } MAMapSize; 60 | 61 | typedef struct { 62 | MAMapPoint origin; 63 | MAMapSize size; 64 | } MAMapRect; 65 | 66 | /*! 67 | @brief 经纬度转投影 68 | */ 69 | extern MAMapPoint MAMapPointForCoordinate(CLLocationCoordinate2D coordinate); 70 | 71 | /*! 72 | @brief 投影转经纬度 73 | */ 74 | extern CLLocationCoordinate2D MACoordinateForMapPoint(MAMapPoint mapPoint); 75 | 76 | /*! 77 | @brief 投影Rect转经纬度Rect 78 | */ 79 | extern MACoordinateRegion MACoordinateRegionForMapRect(MAMapRect rect); 80 | 81 | /*! 82 | @brief 经纬度Rect转投影Rect 83 | */ 84 | extern MAMapRect MAMapRectForCoordinateRegion(MACoordinateRegion region); 85 | 86 | static inline MAMapPoint MAMapPointMake(double x, double y) 87 | { 88 | return (MAMapPoint){x, y}; 89 | } 90 | 91 | static inline MAMapSize MAMapSizeMake(double width, double height) 92 | { 93 | return (MAMapSize){width, height}; 94 | } 95 | 96 | static inline MAMapRect MAMapRectMake(double x, double y, double width, double height) 97 | { 98 | return (MAMapRect){MAMapPointMake(x, y), MAMapSizeMake(width, height)}; 99 | } 100 | 101 | static inline double MAMapRectGetMinX(MAMapRect rect) 102 | { 103 | return rect.origin.x; 104 | } 105 | 106 | static inline double MAMapRectGetMinY(MAMapRect rect) 107 | { 108 | return rect.origin.y; 109 | } 110 | 111 | static inline double MAMapRectGetMidX(MAMapRect rect) 112 | { 113 | return rect.origin.x + rect.size.width / 2.0; 114 | } 115 | 116 | static inline double MAMapRectGetMidY(MAMapRect rect) 117 | { 118 | return rect.origin.y + rect.size.height / 2.0; 119 | } 120 | 121 | static inline double MAMapRectGetMaxX(MAMapRect rect) 122 | { 123 | return rect.origin.x + rect.size.width; 124 | } 125 | 126 | static inline double MAMapRectGetMaxY(MAMapRect rect) 127 | { 128 | return rect.origin.y + rect.size.height; 129 | } 130 | 131 | static inline double MAMapRectGetWidth(MAMapRect rect) 132 | { 133 | return rect.size.width; 134 | } 135 | 136 | static inline double MAMapRectGetHeight(MAMapRect rect) 137 | { 138 | return rect.size.height; 139 | } 140 | 141 | /*! 142 | @brief 判断点是否在矩形内 143 | */ 144 | extern BOOL MAMapRectContainsPoint(MAMapRect rect, MAMapPoint point); 145 | 146 | /*! 147 | @brief 判断两矩形是否相交 148 | */ 149 | extern BOOL MAMapRectIntersectsRect(MAMapRect rect1, MAMapRect rect2); 150 | 151 | /*! 152 | @brief 判断矩形rect1是否包含矩形rect2 153 | */ 154 | extern BOOL MAMapRectContainsRect(MAMapRect rect1, MAMapRect rect2); 155 | 156 | /*! 157 | @brief 判断点是否在圆内 158 | */ 159 | extern BOOL MACircleContainsPoint(MAMapPoint point, MAMapPoint center, double radius); 160 | 161 | extern BOOL MACircleContainsCoordinate(CLLocationCoordinate2D point, CLLocationCoordinate2D center, double radius); 162 | 163 | /*! 164 | @brief 判断点是否在多边形内 165 | */ 166 | extern BOOL MAPolygonContainsPoint(MAMapPoint point, MAMapPoint *polygon, NSUInteger count); 167 | 168 | extern BOOL MAPolygonContainsCoordinate(CLLocationCoordinate2D point, CLLocationCoordinate2D *polygon, NSUInteger count); 169 | 170 | /*! 171 | 获取在lineStart和lineEnd组成的线段上距离point距离最近的点. 172 | @param lineStart 线段起点. 173 | @param lineEnd 线段终点. 174 | @param point 测试点. 175 | @return 距离point最近的点坐标. 176 | */ 177 | extern MAMapPoint MAGetNearestMapPointFromLine(MAMapPoint lineStart, MAMapPoint lineEnd, MAMapPoint point); 178 | 179 | /*! 180 | @brief 单位投影的距离 181 | */ 182 | extern CLLocationDistance MAMetersPerMapPointAtLatitude(CLLocationDegrees latitude); 183 | 184 | /*! 185 | @brief 1米对应的投影 186 | */ 187 | extern double MAMapPointsPerMeterAtLatitude(CLLocationDegrees latitude); 188 | 189 | /*! 190 | @brief 投影两点之间的距离 191 | */ 192 | extern CLLocationDistance MAMetersBetweenMapPoints(MAMapPoint a, MAMapPoint b); 193 | 194 | /*! 195 | @brief 经纬度间的面积(单位 平方米) 196 | */ 197 | extern double MAAreaBetweenCoordinates(CLLocationCoordinate2D leftTop, CLLocationCoordinate2D rightBottom); 198 | 199 | /*! 200 | 获取墨卡托投影切块回调block,如果是无效的映射,则返回(-1, -1, 0, 0, 0, 0). 201 | 202 | @param offsetX 左上点距离所属tile的位移X, 单位像素. 203 | @param offsetY 左上点距离所属tile的位移Y, 单位像素. 204 | @param minX 覆盖tile的最小x. 205 | @param maxX 覆盖tile的最大x. 206 | @param minY 覆盖tile的最小y. 207 | @param maxY 覆盖tile的最大y. 208 | */ 209 | typedef void (^AMapTileProjectionBlock)(int offsetX, int offsetY, int minX, int maxX, int minY, int maxY); 210 | 211 | /*! 212 | 根据所给经纬度区域获取墨卡托投影切块信息. 213 | 214 | @param bounds 经纬度区域. 215 | @param levelOfDetails 对应缩放级别, 取值0-20。 216 | @param tileProjection 返回的切块信息block. 217 | */ 218 | extern void MAGetTileProjectionFromBounds(MACoordinateBounds bounds, int levelOfDetails, AMapTileProjectionBlock tileProjection); 219 | 220 | 221 | #ifdef __cplusplus 222 | } 223 | #endif 224 | 225 | @interface NSValue (NSValueMAGeometryExtensions) 226 | 227 | + (NSValue *)valueWithMAMapPoint:(MAMapPoint)mapPoint; 228 | + (NSValue *)valueWithMAMapSize:(MAMapSize)mapSize; 229 | + (NSValue *)valueWithMAMapRect:(MAMapRect)mapRect; 230 | 231 | - (MAMapPoint)MAMapPointValue; 232 | - (MAMapSize)MAMapSizeValue; 233 | - (MAMapRect)MAMapRectValue; 234 | 235 | @end 236 | 237 | -------------------------------------------------------------------------------- /HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Headers/MAGroundOverlay.h: -------------------------------------------------------------------------------- 1 | // 2 | // MAGroundOverlay.h 3 | // MapKit_static 4 | // 5 | // Created by Li Fei on 11/12/13. 6 | // Copyright (c) 2013 songjian. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | #import "MAShape.h" 12 | #import "MAOverlay.h" 13 | 14 | /*! 15 | @brief 该类用于确定覆盖在地图上的图片,及其覆盖区域, 通常MAGroundOverlay是MAGroundOverlayView的model 16 | */ 17 | @interface MAGroundOverlay : MAShape 18 | 19 | /*! 20 | @brief 绘制在地图上的覆盖图片 21 | */ 22 | @property (nonatomic, readonly) UIImage *icon; 23 | 24 | /*! 25 | @brief 透明度. 最终透明度 = 纹理透明度 * alpha. 有效范围为[0.f, 1.f], 默认为1.f 26 | */ 27 | @property (nonatomic) CGFloat alpha; 28 | 29 | /*! 30 | @brief 覆盖图片在地图尺寸等同于其像素的zoom值 31 | */ 32 | @property (nonatomic, readonly) CGFloat zoomLevel; 33 | 34 | /*! 35 | @brief 图片在地图中的覆盖范围 36 | */ 37 | @property (nonatomic, readonly) MACoordinateBounds bounds; 38 | 39 | /*! 40 | @brief 根据bounds值和icon生成GroundOverlay 41 | @param bounds 图片的在地图的覆盖范围 42 | @param icon 覆盖图片 43 | @return 以bounds和icon 新生成GroundOverlay 44 | */ 45 | + (instancetype)groundOverlayWithBounds:(MACoordinateBounds)bounds 46 | icon:(UIImage *)icon; 47 | 48 | /*! 49 | @brief 根据coordinate,icon,zoomLevel生成GroundOverlay 50 | @param coordinate 图片的在地图上的中心点 51 | @param zoomLevel 图片在地图尺寸等同于像素的zoom值 52 | @param icon 覆盖图片 53 | @return 以coordinate,icon,zoomLevel 新生成GroundOverlay 54 | */ 55 | + (instancetype)groundOverlayWithCoordinate:(CLLocationCoordinate2D)coordinate 56 | zoomLevel:(CGFloat)zoomLevel 57 | icon:(UIImage *)icon; 58 | @end 59 | -------------------------------------------------------------------------------- /HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Headers/MAGroundOverlayView.h: -------------------------------------------------------------------------------- 1 | // 2 | // MAGroundOverlayView.h 3 | // MapKit_static 4 | // 5 | // Created by Li Fei on 11/13/13. 6 | // Copyright (c) 2013 songjian. All rights reserved. 7 | // 8 | 9 | #import "MAOverlayView.h" 10 | #import "MAGroundOverlay.h" 11 | 12 | /*! 13 | @brief 此类是将MAGroundOverlay中的覆盖图片显示在地图上的view; 14 | */ 15 | @interface MAGroundOverlayView : MAOverlayView 16 | 17 | /*! 18 | @brief groundOverlay 具有覆盖图片,以及图片覆盖的区域 19 | */ 20 | @property (nonatomic ,readonly) MAGroundOverlay *groundOverlay; 21 | 22 | /*! 23 | @brief 根据指定的GroundOverlay生成将图片显示在地图上View 24 | @param groundOverlay 制定了覆盖图片,以及图片的覆盖区域的groundOverlay 25 | @return 以GroundOverlay新生成View 26 | */ 27 | - (id)initWithGroundOverlay:(MAGroundOverlay *)groundOverlay; 28 | 29 | @end 30 | -------------------------------------------------------------------------------- /HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Headers/MALineDrawType.h: -------------------------------------------------------------------------------- 1 | // 2 | // MALineDrawType.h 3 | // MapKit_static 4 | // 5 | // Created by yi chen on 14-7-30. 6 | // Copyright (c) 2014年 songjian. All rights reserved. 7 | // 8 | 9 | #ifndef MapKit_static_MALineDrawType_h 10 | #define MapKit_static_MALineDrawType_h 11 | 12 | enum MALineJoinType 13 | { 14 | kMALineJoinBevel, 15 | kMALineJoinMiter, 16 | kMALineJoinRound 17 | }; 18 | typedef enum MALineJoinType MALineJoinType; 19 | 20 | enum MALineCapType 21 | { 22 | kMALineCapButt, 23 | kMALineCapSquare, 24 | kMALineCapArrow, 25 | kMALineCapRound 26 | }; 27 | typedef enum MALineCapType MALineCapType; 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Headers/MAMapKit.h: -------------------------------------------------------------------------------- 1 | // 2 | // MAMapKit.h 3 | // MAMapKitDemo 4 | // 5 | // Created by songjian on 12-12-21. 6 | // Copyright (c) 2012年 songjian. All rights reserved. 7 | // 8 | 9 | #import "MAMapView.h" 10 | #import "MAGeometry.h" 11 | #import "MATypes.h" 12 | #import "MAAnnotation.h" 13 | #import "MAOverlay.h" 14 | #import "MACircle.h" 15 | #import "MACircleView.h" 16 | #import "MAMultiPoint.h" 17 | #import "MAOverlayPathView.h" 18 | #import "MAOverlayView.h" 19 | #import "MAPolygon.h" 20 | #import "MAPolygonView.h" 21 | #import "MAPolyline.h" 22 | #import "MAPolylineView.h" 23 | #import "MAGroundOverlay.h" 24 | #import "MAGroundOverlayView.h" 25 | #import "MATileOverlay.h" 26 | #import "MATileOverlayView.h" 27 | #import "MAShape.h" 28 | #import "MAPinAnnotationView.h" 29 | #import "MAAnnotationView.h" 30 | #import "MAPointAnnotation.h" 31 | #import "MAUserlocation.h" 32 | #import "MAMapServices.h" 33 | #import "MATouchPoi.h" 34 | #import "MAGeodesicPolyline.h" 35 | 36 | #import "MAOfflineMap.h" 37 | #import "MAOfflineItem.h" 38 | #import "MAOfflineCity.h" 39 | #import "MAOfflineItemCommonCity.h" 40 | #import "MAOfflineItemMunicipality.h" 41 | #import "MAOfflineItemNationWide.h" 42 | #import "MAOfflineProvince.h" 43 | -------------------------------------------------------------------------------- /HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Headers/MAMapServices.h: -------------------------------------------------------------------------------- 1 | // 2 | // MAMapServices.h 3 | // MapKit_static 4 | // 5 | // Created by songjian on 13-6-13. 6 | // Copyright (c) 2013年 songjian. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface MAMapServices : NSObject 12 | 13 | + (MAMapServices *)sharedServices; 14 | 15 | /*! 16 | @brief API Key, 在创建MAMapView之前需要先绑定key. 17 | */ 18 | @property (nonatomic, copy) NSString *apiKey; 19 | 20 | /*! 21 | @brief SDK 版本号. 22 | */ 23 | @property (nonatomic, readonly) NSString *SDKVersion; 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Headers/MAMapView.h: -------------------------------------------------------------------------------- 1 | // 2 | // MAMapView.h 3 | // MAMapKitDemo 4 | // 5 | // Created by songjian on 12-12-21. 6 | // Copyright (c) 2012年 songjian. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "MATypes.h" 11 | #import "MAOverlay.h" 12 | #import "MAOverlayView.h" 13 | #import "MAAnnotationView.h" 14 | #import "MAAnnotation.h" 15 | 16 | /** 17 | * MAMapView 的layer 支持中心点, 缩放级别, 旋转角度, 摄像机俯视角度. 这四个地图状态属性的CABasicAnimation, CAKeyframeAnimation. 18 | * 19 | * *************************************************** 20 | * 说明 21 | * 22 | * CAMediaTimingFunction 支持的类型如下: 23 | * 1> kCAMediaTimingFunctionLinear (default) 24 | * 2> kCAMediaTimingFunctionEaseIn 25 | * 3> kCAMediaTimingFunctionEaseOut 26 | * 4> kCAMediaTimingFunctionEaseInEaseOut 27 | * 28 | * CAAnimation 支持的变量如下: 29 | * 1> duration 30 | * 2> timingFunction 31 | * 3> delegate 32 | * 33 | * CAPropertyAnimation 支持的变量如下: 34 | * 1> keyPath 35 | * 36 | * CABasicAnimation 支持的变量如下: 37 | * 1> fromValue 38 | * 2> toValue 39 | * 40 | * CAKeyframeAnimation 支持的变量如下: 41 | * 1> values 42 | * 2> keyTimes 43 | * 3> timingFunctions 44 | * 45 | * ***************************************************** 46 | * Add CABasicAnimation Example: 47 | * 48 | * CLLocationCoordinate2D toCoordiante = CLLocationCoordinate2DMake(39.989870, 116.480940); 49 | * CABasicAnimation *centerAnimation = [CABasicAnimation animationWithKeyPath:kMAMapLayerCenterMapPointKey]; 50 | * centerAnimation.duration = 3.f; 51 | * centerAnimation.toValue = [NSValue valueWithMAMapPoint:MAMapPointForCoordinate(toCoordiante)]; 52 | * centerAnimation.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseIn]; 53 | * [mapView.layer addAnimation:centerAnimation forKey:kMAMapLayerCenterMapPointKey]; 54 | * 55 | * Add CAKeyframeAnimation Example: 56 | * 57 | * CAKeyframeAnimation *zoomLevelAnimation = [CAKeyframeAnimation animationWithKeyPath:kMAMapLayerZoomLevelKey]; 58 | * zoomLevelAnimation.duration = 3.f; 59 | * zoomLevelAnimation.values = @[@(15), @(12), @(18)]; 60 | * zoomLevelAnimation.keyTimes = @[@(0.f), @(0.4f), @(1.f)]; 61 | * [mapView.layer addAnimation:zoomLevelAnimation forKey:kMAMapLayerZoomLevelKey]; 62 | * 63 | * Remove animation Example: 64 | * [mapView.layer removeAnimationForKey:kMAMapLayerZoomLevelKey]; 65 | * 66 | **/ 67 | 68 | /*! 69 | @brief 中心点(MAMapPoint)key, 封装成[NSValue valueWithMAMapPoint:]. 70 | */ 71 | extern NSString * const kMAMapLayerCenterMapPointKey; 72 | 73 | /*! 74 | @brief 缩放级别key, 范围[minZoomLevel, maxZoomLevel], 封装成NSNumber. 75 | */ 76 | extern NSString * const kMAMapLayerZoomLevelKey; 77 | 78 | /*! 79 | @brief 旋转角度key, 范围[0, 360), 封装成NSNumber. 80 | */ 81 | extern NSString * const kMAMapLayerRotationDegreeKey; 82 | 83 | /*! 84 | @brief 摄像机俯视角度, 范围[0, 45], 封装成NSNumber. 85 | */ 86 | extern NSString * const kMAMapLayerCameraDegreeKey; 87 | 88 | 89 | enum { 90 | MAUserTrackingModeNone = 0, // the user's location is not followed 91 | MAUserTrackingModeFollow, // the map follows the user's location 92 | MAUserTrackingModeFollowWithHeading, // the map follows the user's location and heading 93 | }; 94 | 95 | typedef NSInteger MAUserTrackingMode; 96 | 97 | @class MAUserLocation; 98 | @class MATouchPoi; 99 | @class MACircle; 100 | 101 | @protocol MAMapViewDelegate; 102 | 103 | /*! 104 | @brief 地图view 105 | */ 106 | @interface MAMapView : UIView 107 | 108 | /*! 109 | @brief 代理 110 | */ 111 | @property (nonatomic, assign) id delegate; 112 | 113 | /*! 114 | @brief 地图类型 115 | */ 116 | @property (nonatomic) MAMapType mapType; 117 | 118 | /*! 119 | @brief logo位置, 必须在mapView.bounds之内,否则会被忽略 120 | */ 121 | @property (nonatomic) CGPoint logoCenter; 122 | 123 | /*! 124 | @brief logo的宽高 125 | */ 126 | @property (nonatomic, readonly) CGSize logoSize; 127 | 128 | /*! 129 | @brief 是否显示交通 130 | */ 131 | @property (nonatomic, getter = isShowTraffic) BOOL showTraffic; 132 | 133 | /*! 134 | @brief 是否隐藏楼块, 默认为NO 135 | */ 136 | @property (nonatomic, getter = isBuildingsDisabled) BOOL buildingsDisabled; 137 | 138 | /*! 139 | @brief 是否支持缩放 140 | */ 141 | @property (nonatomic, getter = isZoomEnabled) BOOL zoomEnabled; 142 | 143 | /*! 144 | @brief 是否支持平移 145 | */ 146 | @property (nonatomic, getter = isScrollEnabled) BOOL scrollEnabled; 147 | 148 | /*! 149 | @brief 是否支持旋转 150 | */ 151 | @property (nonatomic, getter = isRotateEnabled) BOOL rotateEnabled; 152 | 153 | /*! 154 | @brief 是否支持单击地图获取POI信息(默认为NO) 155 | 对应的回调是 - (void)mapView:(MAMapView *)mapView didTouchPois:(NSArray *)pois 156 | */ 157 | @property (nonatomic) BOOL touchPOIEnabled; 158 | 159 | /*! 160 | @brief 设置地图旋转角度(逆时针为正向) 161 | */ 162 | @property (nonatomic) CGFloat rotationDegree; 163 | 164 | /*! 165 | @brief 设置地图旋转角度(逆时针为正向) 166 | @param animated 动画 167 | @param duration 动画时间 168 | */ 169 | - (void)setRotationDegree:(CGFloat)rotationDegree animated:(BOOL)animated duration:(CFTimeInterval)duration; 170 | 171 | /*! 172 | @brief 设置地图相机角度(范围为[0.f, 45.f]) 173 | */ 174 | @property (nonatomic) CGFloat cameraDegree; 175 | 176 | - (void)setCameraDegree:(CGFloat)cameraDegree animated:(BOOL)animated duration:(CFTimeInterval)duration; 177 | 178 | /*! 179 | @brief 是否支持camera旋转 180 | */ 181 | @property (nonatomic, getter = isRotateCameraEnabled) BOOL rotateCameraEnabled; 182 | 183 | /*! 184 | @brief 是否显示罗盘 185 | */ 186 | @property (nonatomic, assign) BOOL showsCompass; 187 | 188 | /*! 189 | @brief 罗盘原点位置 190 | */ 191 | @property (nonatomic) CGPoint compassOrigin; 192 | 193 | /*! 194 | @brief 罗盘的宽高 195 | */ 196 | @property (nonatomic, readonly) CGSize compassSize; 197 | 198 | /*! 199 | @brief 是否显示比例尺 200 | */ 201 | @property (nonatomic) BOOL showsScale; 202 | 203 | /*! 204 | @brief 比例尺原点位置 205 | */ 206 | @property (nonatomic) CGPoint scaleOrigin; 207 | 208 | /*! 209 | @brief 比例尺的最大宽高 210 | */ 211 | @property (nonatomic, readonly) CGSize scaleSize; 212 | 213 | /*! 214 | @brief 在当前缩放级别下, 基于地图中心点, 1 screen point 对应的距离(单位是米). 215 | @return 对应的距离(单位是米) 216 | */ 217 | - (double)metersPerPointForCurrentZoomLevel; 218 | 219 | /*! 220 | @brief 在指定的缩放级别下, 基于地图中心点, 1 screen point 对应的距离(单位是米). 221 | @param zoomLevel 指定的缩放级别, 在[minZoomLevel, maxZoomLevel]范围内. 222 | @return 对应的距离(单位是米) 223 | */ 224 | - (double)metersPerPointForZoomLevel:(CGFloat)zoomLevel; 225 | 226 | /*! 227 | @brief 当前地图的经纬度范围,设定的该范围可能会被调整为适合地图窗口显示的范围 228 | */ 229 | @property (nonatomic) MACoordinateRegion region; 230 | - (void)setRegion:(MACoordinateRegion)region animated:(BOOL)animated; 231 | 232 | /*! 233 | @brief 当前地图的中心点,改变该值时,地图的比例尺级别不会发生变化 234 | */ 235 | @property (nonatomic) CLLocationCoordinate2D centerCoordinate; 236 | - (void)setCenterCoordinate:(CLLocationCoordinate2D)coordinate animated:(BOOL)animated; 237 | 238 | /*! 239 | @brief 根据当前地图视图frame的大小调整region范围 240 | @param region 要调整的经纬度范围 241 | @return 调整后的经纬度范围 242 | */ 243 | - (MACoordinateRegion)regionThatFits:(MACoordinateRegion)region; 244 | 245 | /*! 246 | @brief 可见区域 247 | */ 248 | @property (nonatomic) MAMapRect visibleMapRect; 249 | - (void)setVisibleMapRect:(MAMapRect)mapRect animated:(BOOL)animated; 250 | 251 | /*! 252 | @brief 缩放级别 253 | */ 254 | @property (nonatomic) CGFloat zoomLevel; 255 | - (void)setZoomLevel:(CGFloat)zoomLevel animated:(BOOL)animated; 256 | 257 | /*! 258 | @brief 根据指定的枢纽点来缩放地图 259 | @param zoomLevel 缩放级别 260 | @param pivot 枢纽点(基于地图view的坐标系) 261 | @param animated 是否动画 262 | */ 263 | - (void)setZoomLevel:(CGFloat)zoomLevel atPivot:(CGPoint)pivot animated:(BOOL)animated; 264 | 265 | /*! 266 | @brief 最小缩放级别 267 | */ 268 | @property (nonatomic, readonly) CGFloat minZoomLevel; 269 | 270 | /*! 271 | @brief 最大缩放级别 272 | */ 273 | @property (nonatomic, readonly) CGFloat maxZoomLevel; 274 | 275 | /*! 276 | @brief 调整投影矩形比例 277 | @param mapRect 要调整的投影矩形 278 | @return 调整后的投影矩形 279 | */ 280 | - (MAMapRect)mapRectThatFits:(MAMapRect)mapRect; 281 | 282 | /*! 283 | @brief 根据当前地图视图frame的大小调整投影范围 284 | @param mapRect 要调整的投影范围 285 | @return 调整后的投影范围 286 | */ 287 | - (void)setVisibleMapRect:(MAMapRect)mapRect edgePadding:(UIEdgeInsets)insets animated:(BOOL)animate; 288 | 289 | /*! 290 | @brief 根据嵌入数据来调整投影矩形比例 291 | @param mapRect 要调整的投影矩形 292 | @param insets 嵌入数据 293 | @return 调整后的投影矩形 294 | */ 295 | - (MAMapRect)mapRectThatFits:(MAMapRect)mapRect edgePadding:(UIEdgeInsets)insets; 296 | 297 | /*! 298 | @brief 将经纬度转换为指定view坐标系的坐标 299 | @param coordinate 经纬度 300 | @param view 指定的view 301 | @return 基于指定view坐标系的坐标 302 | */ 303 | - (CGPoint)convertCoordinate:(CLLocationCoordinate2D)coordinate toPointToView:(UIView *)view; 304 | 305 | /*! 306 | @brief 将指定view坐标系的坐标转换为经纬度 307 | @param point 指定view坐标系的坐标 308 | @param view 指定的view 309 | @return 经纬度 310 | */ 311 | - (CLLocationCoordinate2D)convertPoint:(CGPoint)point toCoordinateFromView:(UIView *)view; 312 | 313 | /*! 314 | @brief 将经纬度region转换为指定view坐标系的rect 315 | @param region 经纬度region 316 | @param view 指定的view 317 | @return 指定view坐标系的rect 318 | */ 319 | - (CGRect)convertRegion:(MACoordinateRegion)region toRectToView:(UIView *)view; 320 | 321 | /*! 322 | @brief 将指定view坐标系的rect转换为经纬度region 323 | @param rect 指定view坐标系的rect 324 | @param view 指定的view 325 | @return 经纬度region 326 | */ 327 | - (MACoordinateRegion)convertRect:(CGRect)rect toRegionFromView:(UIView *)view; 328 | 329 | /*! 330 | @brief 是否显示用户位置 331 | */ 332 | @property (nonatomic) BOOL showsUserLocation; 333 | 334 | /*! 335 | @brief 当前的位置数据 336 | */ 337 | @property (nonatomic, readonly) MAUserLocation *userLocation; 338 | 339 | /*! 340 | @brief 是否自定义用户位置精度圈(userLocationAccuracyCircle)对应的 view, 默认为 NO. 341 | 如果为YES: 会调用 - (MAOverlayView *)mapView:(MAMapView *)mapView viewForOverlay:(id )overlay 若返回nil, 则不加载. 342 | 如果为NO : 会使用默认的样式. 343 | */ 344 | @property (nonatomic) BOOL customizeUserLocationAccuracyCircleRepresentation; 345 | 346 | /*! 347 | @brief 用户位置精度圈 对应的overlay. 348 | */ 349 | @property (nonatomic, readonly) MACircle *userLocationAccuracyCircle; 350 | 351 | /*! 352 | @brief 定位用户位置的模式 353 | */ 354 | @property (nonatomic) MAUserTrackingMode userTrackingMode; 355 | - (void)setUserTrackingMode:(MAUserTrackingMode)mode animated:(BOOL)animated; 356 | 357 | /*! 358 | @brief 当前位置再地图中是否可见 359 | */ 360 | @property (nonatomic, readonly, getter=isUserLocationVisible) BOOL userLocationVisible; 361 | 362 | /*! 363 | @brief 向地图窗口添加标注,需要实现MAMapViewDelegate的-mapView:viewForAnnotation:函数来生成标注对应的View 364 | @param annotation 要添加的标注 365 | */ 366 | - (void)addAnnotation:(id )annotation; 367 | 368 | /*! 369 | @brief 向地图窗口添加一组标注,需要实现MAMapViewDelegate的-mapView:viewForAnnotation:函数来生成标注对应的View 370 | @param annotations 要添加的标注数组 371 | */ 372 | - (void)addAnnotations:(NSArray *)annotations; 373 | 374 | /*! 375 | @brief 移除标注 376 | @param annotation 要移除的标注 377 | */ 378 | - (void)removeAnnotation:(id )annotation; 379 | 380 | /*! 381 | @brief 移除一组标注 382 | @param annotation 要移除的标注数组 383 | */ 384 | - (void)removeAnnotations:(NSArray *)annotations; 385 | 386 | /*! 387 | @brief 标注数组 388 | */ 389 | @property (nonatomic, readonly) NSArray *annotations; 390 | 391 | /*! 392 | @brief 获取指定投影矩形范围内的标注 393 | @param mapRect 投影矩形范围 394 | @return 标注集合 395 | */ 396 | - (NSSet *)annotationsInMapRect:(MAMapRect)mapRect; 397 | 398 | /*! 399 | @brief 根据标注数据过去标注view 400 | @param annotation 标注数据 401 | @return 对应的标注view 402 | */ 403 | - (MAAnnotationView *)viewForAnnotation:(id )annotation; 404 | 405 | /*! 406 | @brief 从复用内存池中获取制定复用标识的annotation view 407 | @param identifier 复用标识 408 | @return annotation view 409 | */ 410 | - (MAAnnotationView *)dequeueReusableAnnotationViewWithIdentifier:(NSString *)identifier; 411 | 412 | /*! 413 | @brief 选中标注数据对应的view 414 | @param annotation 标注数据 415 | @param animated 是否有动画效果 416 | */ 417 | - (void)selectAnnotation:(id )annotation animated:(BOOL)animated; 418 | 419 | /*! 420 | @brief 取消选中标注数据对应的view 421 | @param annotation 标注数据 422 | @param animated 是否有动画效果 423 | */ 424 | - (void)deselectAnnotation:(id )annotation animated:(BOOL)animated; 425 | 426 | /*! 427 | @brief 处于选中状态的标注数据数据(其count == 0 或 1) 428 | */ 429 | @property (nonatomic, copy) NSArray *selectedAnnotations; 430 | 431 | /*! 432 | @brief annotation 可见区域 433 | */ 434 | @property (nonatomic, readonly) CGRect annotationVisibleRect; 435 | 436 | /*! 437 | @brief 设置地图使其可以显示数组中所有的annotation。 438 | */ 439 | - (void)showAnnotations:(NSArray *)annotations animated:(BOOL)animated; 440 | 441 | @end 442 | 443 | /*! 444 | @brief 地图view关于overlay类别 445 | */ 446 | @interface MAMapView (OverlaysAPI) 447 | 448 | /*! 449 | @brief 向地图窗口添加Overlay,需要实现MAMapViewDelegate的-mapView:viewForOverlay:函数来生成标注对应的View 450 | @param overlay 要添加的overlay 451 | */ 452 | - (void)addOverlay:(id )overlay; 453 | 454 | /*! 455 | @brief 向地图窗口添加一组Overlay,需要实现BMKMapViewDelegate的-mapView:viewForOverlay:函数来生成标注对应的View 456 | @param overlays 要添加的overlay数组 457 | */ 458 | - (void)addOverlays:(NSArray *)overlays; 459 | 460 | /*! 461 | @brief 移除Overlay 462 | @param overlay 要移除的overlay 463 | */ 464 | - (void)removeOverlay:(id )overlay; 465 | 466 | /*! 467 | @brief 移除一组Overlay 468 | @param overlays 要移除的overlay数组 469 | */ 470 | - (void)removeOverlays:(NSArray *)overlays; 471 | 472 | /*! 473 | @brief 在指定的索引处添加一个Overlay 474 | @param overlay 要添加的overlay 475 | @param index 指定的索引 476 | */ 477 | - (void)insertOverlay:(id )overlay atIndex:(NSUInteger)index; 478 | 479 | /*! 480 | @brief 在交换指定索引处的Overlay 481 | @param index1 索引1 482 | @param index2 索引2 483 | */ 484 | - (void)exchangeOverlayAtIndex:(NSUInteger)index1 withOverlayAtIndex:(NSUInteger)index2; 485 | 486 | /*! 487 | @brief 在指定的Overlay之上插入一个overlay 488 | @param overlay 带添加的Overlay 489 | @param sibling 用于指定相对位置的Overlay 490 | */ 491 | - (void)insertOverlay:(id )overlay aboveOverlay:(id )sibling; 492 | 493 | /*! 494 | @brief 在指定的Overlay之下插入一个overlay 495 | @param overlay 带添加的Overlay 496 | @param sibling 用于指定相对位置的Overlay 497 | */ 498 | - (void)insertOverlay:(id )overlay belowOverlay:(id )sibling; 499 | 500 | /*! 501 | @brief Overlay数组 502 | */ 503 | @property (nonatomic, readonly) NSArray *overlays; 504 | 505 | /*! 506 | @brief 查找指定overlay对应的View,如果该View尚未创建,返回nil 507 | @param overlay 指定的overlay 508 | @return 指定overlay对应的View 509 | */ 510 | - (MAOverlayView *)viewForOverlay:(id )overlay; 511 | 512 | @end 513 | 514 | /*! 515 | @brief 地图view关于截图的类别 516 | */ 517 | @interface MAMapView (Snapshot) 518 | 519 | /*! 520 | @brief 在指定区域内截图(默认会包含该区域内的annotationView) 521 | @param rect 指定的区域 522 | @return 截图image 523 | */ 524 | - (UIImage *)takeSnapshotInRect:(CGRect)rect; 525 | 526 | @end 527 | 528 | /*! 529 | @brief 地图view关于离线下载的类别 530 | */ 531 | @interface MAMapView (Offline) 532 | 533 | /*! 534 | @brief 将离线地图解压到 Documents/3dvmap/ 目录下后,调用此函数使离线数据生效, 535 | 对应的回调分别是 offlineDataWillReload:(MAMapView *)mapView, offlineDataDidReload:(MAMapView *)mapView. 536 | */ 537 | - (void)reloadMap; 538 | 539 | @end 540 | 541 | @interface MAMapView (OpenGLES) 542 | 543 | /*! 544 | @brief 停止/开启 OpenGLES 指令绘制操作 545 | 对应的回调是 - (void)mapView:(MAMapView *)mapView didChangeOpenGLESDisabled:(BOOL)openGLESDisabled 546 | */ 547 | @property (nonatomic) BOOL openGLESDisabled; 548 | 549 | @end 550 | 551 | /*! 552 | @brief 定位相关参数的类别 553 | */ 554 | @interface MAMapView (LocationOption) 555 | 556 | /*! 557 | @brief 设定定位的最小更新距离。默认为kCLDistanceFilterNone,会提示任何移动。 558 | */ 559 | @property(nonatomic) CLLocationDistance distanceFilter; 560 | 561 | /*! 562 | @brief 设定定位精度。默认为kCLLocationAccuracyBest。 563 | */ 564 | @property(nonatomic) CLLocationAccuracy desiredAccuracy; 565 | 566 | /*! 567 | @brief 设定最小更新角度。默认为1度,设定为kCLHeadingFilterNone会提示任何角度改变。 568 | */ 569 | @property(nonatomic) CLLocationDegrees headingFilter; 570 | 571 | @end 572 | 573 | /*! 574 | @brief 地图view的delegate 575 | */ 576 | @protocol MAMapViewDelegate 577 | @optional 578 | 579 | /*! 580 | @brief 地图区域即将改变时会调用此接口 581 | @param mapview 地图View 582 | @param animated 是否动画 583 | */ 584 | - (void)mapView:(MAMapView *)mapView regionWillChangeAnimated:(BOOL)animated; 585 | 586 | /*! 587 | @brief 地图区域改变完成后会调用此接口 588 | @param mapview 地图View 589 | @param animated 是否动画 590 | */ 591 | - (void)mapView:(MAMapView *)mapView regionDidChangeAnimated:(BOOL)animated; 592 | 593 | /*! 594 | @brief 地图开始加载 595 | @param mapview 地图View 596 | */ 597 | - (void)mapViewWillStartLoadingMap:(MAMapView *)mapView; 598 | 599 | /*! 600 | @brief 地图加载成功 601 | @param mapView 地图View 602 | @param dataSize 数据大小 603 | */ 604 | - (void)mapViewDidFinishLoadingMap:(MAMapView *)mapView dataSize:(NSInteger)dataSize; 605 | 606 | /*! 607 | @brief 地图加载失败 608 | @param mapView 地图View 609 | @param error 错误信息 610 | */ 611 | - (void)mapViewDidFailLoadingMap:(MAMapView *)mapView withError:(NSError *)error; 612 | 613 | /*! 614 | @brief 根据anntation生成对应的View 615 | @param mapView 地图View 616 | @param annotation 指定的标注 617 | @return 生成的标注View 618 | */ 619 | - (MAAnnotationView *)mapView:(MAMapView *)mapView viewForAnnotation:(id )annotation; 620 | 621 | /*! 622 | @brief 当mapView新添加annotation views时,调用此接口 623 | @param mapView 地图View 624 | @param views 新添加的annotation views 625 | */ 626 | - (void)mapView:(MAMapView *)mapView didAddAnnotationViews:(NSArray *)views; 627 | 628 | /*! 629 | @brief 当选中一个annotation views时,调用此接口 630 | @param mapView 地图View 631 | @param views 选中的annotation views 632 | */ 633 | - (void)mapView:(MAMapView *)mapView didSelectAnnotationView:(MAAnnotationView *)view; 634 | 635 | /*! 636 | @brief 当取消选中一个annotation views时,调用此接口 637 | @param mapView 地图View 638 | @param views 取消选中的annotation views 639 | */ 640 | - (void)mapView:(MAMapView *)mapView didDeselectAnnotationView:(MAAnnotationView *)view; 641 | 642 | /*! 643 | @brief 在地图View将要启动定位时,会调用此函数 644 | @param mapView 地图View 645 | */ 646 | - (void)mapViewWillStartLocatingUser:(MAMapView *)mapView; 647 | 648 | /*! 649 | @brief 在地图View停止定位后,会调用此函数 650 | @param mapView 地图View 651 | */ 652 | - (void)mapViewDidStopLocatingUser:(MAMapView *)mapView; 653 | 654 | /*! 655 | @brief 位置或者设备方向更新后,会调用此函数, 这个回调已废弃由 -(void)mapView:(MAMapView *)mapView didUpdateUserLocation:(MAUserLocation *)userLocation updatingLocation:(BOOL)updatingLocation 来替代 656 | @param mapView 地图View 657 | @param userLocation 用户定位信息(包括位置与设备方向等数据) 658 | */ 659 | - (void)mapView:(MAMapView *)mapView didUpdateUserLocation:(MAUserLocation *)userLocation __attribute__ ((deprecated("use -(void)mapView:(MAMapView *)mapView didUpdateUserLocation:(MAUserLocation *)userLocation updatingLocation:(BOOL)updatingLocation instead"))); 660 | 661 | /*! 662 | @brief 位置或者设备方向更新后,会调用此函数 663 | @param mapView 地图View 664 | @param userLocation 用户定位信息(包括位置与设备方向等数据) 665 | @param updatingLocation 标示是否是location数据更新, YES:location数据更新 NO:heading数据更新 666 | */ 667 | - (void)mapView:(MAMapView *)mapView didUpdateUserLocation:(MAUserLocation *)userLocation updatingLocation:(BOOL)updatingLocation; 668 | 669 | /*! 670 | @brief 定位失败后,会调用此函数 671 | @param mapView 地图View 672 | @param error 错误号,参考CLError.h中定义的错误号 673 | */ 674 | - (void)mapView:(MAMapView *)mapView didFailToLocateUserWithError:(NSError *)error; 675 | 676 | /*! 677 | @brief 拖动annotation view时view的状态变化,ios3.2以后支持 678 | @param mapView 地图View 679 | @param view annotation view 680 | @param newState 新状态 681 | @param oldState 旧状态 682 | */ 683 | - (void)mapView:(MAMapView *)mapView annotationView:(MAAnnotationView *)view didChangeDragState:(MAAnnotationViewDragState)newState 684 | fromOldState:(MAAnnotationViewDragState)oldState; 685 | 686 | /*! 687 | @brief 根据overlay生成对应的View 688 | @param mapView 地图View 689 | @param overlay 指定的overlay 690 | @return 生成的覆盖物View 691 | */ 692 | - (MAOverlayView *)mapView:(MAMapView *)mapView viewForOverlay:(id )overlay; 693 | 694 | /*! 695 | @brief 当mapView新添加overlay views时,调用此接口 696 | @param mapView 地图View 697 | @param overlayViews 新添加的overlay views 698 | */ 699 | - (void)mapView:(MAMapView *)mapView didAddOverlayViews:(NSArray *)overlayViews; 700 | 701 | /*! 702 | @brief 标注view的accessory view(必须继承自UIControl)被点击时,触发该回调 703 | @param mapView 地图View 704 | @param annotationView callout所属的标注view 705 | @param control 对应的control 706 | */ 707 | - (void)mapView:(MAMapView *)mapView annotationView:(MAAnnotationView *)view calloutAccessoryControlTapped:(UIControl *)control; 708 | 709 | /*! 710 | @brief 当userTrackingMode改变时,调用此接口 711 | @param mapView 地图View 712 | @param mode 改变后的mode 713 | @param animated 动画 714 | */ 715 | - (void)mapView:(MAMapView *)mapView didChangeUserTrackingMode:(MAUserTrackingMode)mode animated:(BOOL)animated; 716 | 717 | /*! 718 | @brief 离线地图数据将要被加载, 调用reloadMap会触发该回调,离线数据生效前的回调. 719 | @param mapview 地图View 720 | */ 721 | - (void)offlineDataWillReload:(MAMapView *)mapView; 722 | 723 | /*! 724 | @brief 离线地图数据加载完成, 调用reloadMap会触发该回调,离线数据生效后的回调. 725 | @param mapview 地图View 726 | */ 727 | - (void)offlineDataDidReload:(MAMapView *)mapView; 728 | 729 | /*! 730 | @brief 当openGLESDisabled变量改变时,调用此接口 731 | @param mapView 地图View 732 | @param mode 改变后的openGLESDisabled 733 | */ 734 | - (void)mapView:(MAMapView *)mapView didChangeOpenGLESDisabled:(BOOL)openGLESDisabled; 735 | 736 | /*! 737 | @brief 当touchPOIEnabled == YES时,单击地图使用该回调获取POI信息 738 | @param mapView 地图View 739 | @param pois 获取到的poi数组(由MATouchPoi组成) 740 | */ 741 | - (void)mapView:(MAMapView *)mapView didTouchPois:(NSArray *)pois; 742 | 743 | @end 744 | -------------------------------------------------------------------------------- /HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Headers/MAMultiPoint.h: -------------------------------------------------------------------------------- 1 | // 2 | // MAMultiPoint.h 3 | // MAMapKit 4 | // 5 | // 6 | // Copyright (c) 2011年 Autonavi Inc. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "MAShape.h" 11 | #import "MAGeometry.h" 12 | 13 | /*! 14 | @brief 该类是个由多个点组成的虚基类, 不能直接实例化对象, 要使用其子类MAPolyline,MAPolygon来实例化 15 | */ 16 | @interface MAMultiPoint : MAShape { 17 | @package 18 | MAMapPoint *_points; 19 | NSUInteger _pointCount; 20 | MAMapRect _boundingRect; 21 | } 22 | 23 | /*! 24 | @brief 坐标点数组 25 | */ 26 | @property (nonatomic, readonly) MAMapPoint *points; 27 | 28 | /*! 29 | @brief 坐标点的个数 30 | */ 31 | @property (nonatomic, readonly) NSUInteger pointCount; 32 | 33 | /*! 34 | @brief 将内部的坐标点数据转化为经纬度坐标并拷贝到coords内存中 35 | @param coords 调用者提供的内存空间, 该空间长度必须大于等于要拷贝的坐标点的个数(range.length) 36 | @param range 要拷贝的数据范围 37 | */ 38 | - (void)getCoordinates:(CLLocationCoordinate2D *)coords range:(NSRange)range; 39 | 40 | @end -------------------------------------------------------------------------------- /HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Headers/MAOfflineCity.h: -------------------------------------------------------------------------------- 1 | // 2 | // MAOfflineCity.h 3 | // 4 | // Copyright (c) 2013年 AutoNavi. All rights reserved. 5 | // 6 | 7 | #import 8 | #import "MAOfflineItem.h" 9 | 10 | typedef enum{ 11 | MAOfflineCityStatusNone __attribute__((deprecated("use MAOfflineItemStatusNone instead"))) = MAOfflineItemStatusNone, /* 不存在. */ 12 | MAOfflineCityStatusCached __attribute__((deprecated("use MAOfflineItemStatusCached instead"))) = MAOfflineItemStatusCached, /* 缓存状态. */ 13 | MAOfflineCityStatusInstalled __attribute__((deprecated("use MAOfflineItemStatusInstalled instead"))) = MAOfflineItemStatusInstalled, /* 已安装. */ 14 | MAOfflineCityStatusExpired __attribute__((deprecated("use MAOfflineItemStatusExpired instead"))) = MAOfflineItemStatusExpired /* 已过期. */ 15 | }MAOfflineCityStatus; 16 | 17 | @interface MAOfflineCity : MAOfflineItem 18 | 19 | /*! 20 | @brief 城市编码 21 | */ 22 | @property (nonatomic, copy, readonly) NSString *cityCode; 23 | 24 | /*! 25 | @brief 城市名称 26 | */ 27 | @property (nonatomic, copy, readonly) NSString *cityName __attribute__ ((deprecated("use name instead"))); 28 | 29 | /*! 30 | @brief 下载地址 31 | */ 32 | @property (nonatomic, copy, readonly) NSString *urlString __attribute__ ((deprecated("Not supported in future version"))); 33 | 34 | /*! 35 | @brief 离线数据状态 36 | */ 37 | @property (nonatomic, assign, readonly) MAOfflineCityStatus status __attribute__ ((deprecated("use itemStatus instead"))); 38 | 39 | @end 40 | -------------------------------------------------------------------------------- /HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Headers/MAOfflineItem.h: -------------------------------------------------------------------------------- 1 | // 2 | // MAOfflineItem.h 3 | // MapKit_static 4 | // 5 | // Created by songjian on 14-4-23. 6 | // Copyright (c) 2014年 songjian. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | typedef enum{ 12 | MAOfflineItemStatusNone = 0, /* 不存在. */ 13 | MAOfflineItemStatusCached, /* 缓存状态. */ 14 | MAOfflineItemStatusInstalled, /* 已安装. */ 15 | MAOfflineItemStatusExpired /* 已过期. */ 16 | }MAOfflineItemStatus; 17 | 18 | @interface MAOfflineItem : NSObject 19 | 20 | /* 名字. */ 21 | @property (nonatomic, copy, readonly) NSString *name; 22 | 23 | /* 简拼. */ 24 | @property (nonatomic, copy, readonly) NSString *jianpin; 25 | 26 | /* 拼音. */ 27 | @property (nonatomic, copy, readonly) NSString *pinyin; 28 | 29 | /* 区域编码. */ 30 | @property (nonatomic, copy, readonly) NSString *adcode; 31 | 32 | /* 离线数据大小. */ 33 | @property (nonatomic, assign, readonly) long long size; 34 | 35 | /* 状态. */ 36 | @property (nonatomic, assign, readonly) MAOfflineItemStatus itemStatus; 37 | 38 | /* 已下载大小(当itemStatus == MAOfflineItemStatusCached 时有效). */ 39 | @property (nonatomic, assign, readonly) long long downloadedSize; 40 | 41 | @end 42 | -------------------------------------------------------------------------------- /HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Headers/MAOfflineItemCommonCity.h: -------------------------------------------------------------------------------- 1 | // 2 | // MAOfflineItemCommonCity.h 3 | // MapKit_static 4 | // 5 | // Created by songjian on 14-4-23. 6 | // Copyright (c) 2014年 songjian. All rights reserved. 7 | // 8 | 9 | #import "MAOfflineCity.h" 10 | 11 | /* 普通城市. */ 12 | @interface MAOfflineItemCommonCity : MAOfflineCity 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Headers/MAOfflineItemMunicipality.h: -------------------------------------------------------------------------------- 1 | // 2 | // MAOfflineItemMunicipality.h 3 | // MapKit_static 4 | // 5 | // Created by songjian on 14-4-23. 6 | // Copyright (c) 2014年 songjian. All rights reserved. 7 | // 8 | 9 | #import "MAOfflineCity.h" 10 | 11 | /* 直辖市. */ 12 | @interface MAOfflineItemMunicipality : MAOfflineCity 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Headers/MAOfflineItemNationWide.h: -------------------------------------------------------------------------------- 1 | // 2 | // MAOfflineItemNationWide.h 3 | // MapKit_static 4 | // 5 | // Created by songjian on 14-4-23. 6 | // Copyright (c) 2014年 songjian. All rights reserved. 7 | // 8 | 9 | #import "MAOfflineCity.h" 10 | 11 | /* 全国概要. */ 12 | @interface MAOfflineItemNationWide : MAOfflineCity 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Headers/MAOfflineMap.h: -------------------------------------------------------------------------------- 1 | // 2 | // MAOfflineMap.h 3 | // 4 | // Copyright (c) 2013年 AutoNavi. All rights reserved. 5 | // 6 | 7 | #import 8 | #import "MAOfflineProvince.h" 9 | #import "MAOfflineItemNationWide.h" 10 | #import "MAOfflineItemMunicipality.h" 11 | 12 | typedef enum{ 13 | MAOfflineMapDownloadStatusWaiting, /* 以插入队列,等待中. */ 14 | MAOfflineMapDownloadStatusStart, /* 开始下载. */ 15 | MAOfflineMapDownloadStatusProgress, /* 下载过程中. */ 16 | MAOfflineMapDownloadStatusCompleted, /* 下载成功. */ 17 | MAOfflineMapDownloadStatusCancelled, /* 取消. */ 18 | MAOfflineMapDownloadStatusUnzip, /* 解压缩. */ 19 | MAOfflineMapDownloadStatusFinished, /* 全部顺利完成. */ 20 | MAOfflineMapDownloadStatusError /* 发生错误. */ 21 | }MAOfflineMapDownloadStatus; 22 | 23 | /* 离线下载错误domain. */ 24 | extern NSString * const MAOfflineMapErrorDomain; 25 | 26 | enum{ 27 | /* 未知的错误. */ 28 | MAOfflineMapErrorUnknown = -1, 29 | 30 | /* 写入临时目录失败. */ 31 | MAOfflineMapErrorCannotWriteToTmp = -2, 32 | 33 | /* 打开归档文件失败. */ 34 | MAOfflineMapErrorCannotOpenZipFile = -3, 35 | 36 | /* 解归档文件失败. */ 37 | MAOfflineMapErrorCannotExpand = -4 38 | }; 39 | 40 | /* 当downloadStatus == MAOfflineMapDownloadStatusProgress 时, info参数是个NSDictionary, 41 | 如下两个key用来获取已下载和总和的数据大小(单位byte), 对应的是NSNumber(long long) 类型. */ 42 | extern NSString * const MAOfflineMapDownloadReceivedSizeKey; 43 | extern NSString * const MAOfflineMapDownloadExpectedSizeKey; 44 | 45 | typedef void(^MAOfflineMapDownloadBlock)(MAOfflineMapDownloadStatus downloadStatus, id info); 46 | typedef void(^MAOfflineMapNewestVersionBlock)(BOOL hasNewestVersion); 47 | 48 | @interface MAOfflineMap : NSObject 49 | 50 | /*! 51 | @brief 获取MAOfflineMap 单例 52 | @return MAOfflineMap 53 | */ 54 | + (MAOfflineMap *)sharedOfflineMap; 55 | 56 | /*! 57 | @brief 省份数组(每个元素均是MAOfflineProvince类型) 58 | */ 59 | @property (nonatomic, readonly) NSArray *provinces; 60 | 61 | /*! 62 | @brief 直辖市数组(每个元素均是MAOfflineItemMunicipality类型) 63 | */ 64 | @property (nonatomic, readonly) NSArray *municipalities; 65 | 66 | /*! 67 | @brief 全国概要图 68 | */ 69 | @property (nonatomic, readonly) MAOfflineItemNationWide *nationWide; 70 | 71 | /*! 72 | @brief 城市数组, 包括普通城市与直辖市. 73 | */ 74 | @property (nonatomic, readonly) NSArray *cities; 75 | 76 | /*! 77 | @brief 离线数据的版本号(由年月日组成, 如@"20130715") 78 | */ 79 | @property (nonatomic, readonly) NSString *version; 80 | 81 | /*! 82 | @brief 启动下载 83 | @param item 数据 84 | @prarm shouldContinueWhenAppEntersBackground 进入后台是否允许继续下载 85 | @param downloadBlock 下载过程block 86 | */ 87 | - (void)downloadItem:(MAOfflineItem *)item shouldContinueWhenAppEntersBackground:(BOOL)shouldContinueWhenAppEntersBackground downloadBlock:(MAOfflineMapDownloadBlock)downloadBlock; 88 | 89 | /*! 90 | @brief 监测是否正在下载 91 | @param item 条目 92 | @return 是否在下载 93 | */ 94 | - (BOOL)isDownloadingForItem:(MAOfflineItem *)item; 95 | 96 | /*! 97 | @brief 暂停下载 98 | @param item 条目 99 | */ 100 | - (void)pauseItem:(MAOfflineItem *)item; 101 | 102 | /*! 103 | @brief 取消全部下载 104 | */ 105 | - (void)cancelAll; 106 | 107 | /*! 108 | @brief 清除所有在磁盘上的离线地图数据, 之后调用[mapView reloadMap]会使其立即生效. 109 | */ 110 | - (void)clearDisk; 111 | 112 | /*! 113 | @brief 监测新版本 114 | @param newestVersionBlock 回调block 115 | */ 116 | - (void)checkNewestVersion:(MAOfflineMapNewestVersionBlock)newestVersionBlock; 117 | 118 | @end 119 | 120 | @interface MAOfflineMap (Deprecated) 121 | 122 | /*! 123 | @brief 城市数组(每个元素均是MAOfflineCity类型) 124 | */ 125 | @property (nonatomic, readonly) NSArray *offlineCities __attribute__ ((deprecated("use cities instead"))); 126 | 127 | /*! 128 | @brief 启动下载 (进入后台就停止下载) 129 | @param city 城市数据 130 | @param downloadBlock 下载过程block 131 | */ 132 | - (void)downloadCity:(MAOfflineCity *)city downloadBlock:(MAOfflineMapDownloadBlock)downloadBlock __attribute__ ((deprecated("use - (void)downloadItem:(MAOfflineItem *)item shouldContinueWhenAppEntersBackground:(BOOL)shouldContinueWhenAppEntersBackground downloadBlock:(MAOfflineMapDownloadBlock)downloadBlock instead"))); 133 | 134 | /*! 135 | @brief 启动下载 136 | @param city 城市数据 137 | @prarm shouldContinueWhenAppEntersBackground 进入后台是否允许继续下载 138 | @param downloadBlock 下载过程block 139 | */ 140 | - (void)downloadCity:(MAOfflineCity *)city shouldContinueWhenAppEntersBackground:(BOOL)shouldContinueWhenAppEntersBackground downloadBlock:(MAOfflineMapDownloadBlock)downloadBlock __attribute__ ((deprecated("use - (void)downloadItem:(MAOfflineItem *)item shouldContinueWhenAppEntersBackground:(BOOL)shouldContinueWhenAppEntersBackground downloadBlock:(MAOfflineMapDownloadBlock)downloadBlock instead"))); 141 | 142 | /*! 143 | @brief 监测是否正在下载 144 | @param city 城市数据 145 | @return 是否在下载 146 | */ 147 | - (BOOL)isDownloadingForCity:(MAOfflineCity *)city __attribute__ ((deprecated("use - (BOOL)isDownloadingForItem:(MAOfflineItem *)item instead"))); 148 | 149 | /*! 150 | @brief 暂停下载 151 | @param city 城市数据 152 | */ 153 | - (void)pause:(MAOfflineCity *)city __attribute__ ((deprecated("use - (void)pauseItem:(MAOfflineItem *)item instead"))); 154 | 155 | @end 156 | -------------------------------------------------------------------------------- /HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Headers/MAOfflineProvince.h: -------------------------------------------------------------------------------- 1 | // 2 | // MAOfflineProvince.h 3 | // MapKit_static 4 | // 5 | // Created by songjian on 14-4-24. 6 | // Copyright (c) 2014年 songjian. All rights reserved. 7 | // 8 | 9 | #import "MAOfflineItem.h" 10 | #import "MAOfflineItemCommonCity.h" 11 | 12 | @interface MAOfflineProvince : MAOfflineItem 13 | 14 | /* 包含的城市数组(都是MAOfflineItemCommonCity类型). */ 15 | @property (nonatomic, strong, readonly) NSArray *cities; 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Headers/MAOverlay.h: -------------------------------------------------------------------------------- 1 | // 2 | // MAOverlay.h 3 | // MAMapKit 4 | // 5 | // 6 | // Copyright (c) 2011年 Autonavi Inc. All rights reserved. 7 | // 8 | 9 | #import "MAAnnotation.h" 10 | #import "MATypes.h" 11 | #import "MAGeometry.h" 12 | 13 | /*! 14 | @brief 该类是地图覆盖物的基类,所有地图的覆盖物需要继承自此类 15 | */ 16 | @protocol MAOverlay 17 | @required 18 | 19 | /*! 20 | @brief 返回区域中心坐标. 21 | */ 22 | @property (nonatomic, readonly) CLLocationCoordinate2D coordinate; 23 | 24 | /*! 25 | @brief 区域外接矩形 26 | */ 27 | @property (nonatomic, readonly) MAMapRect boundingMapRect; 28 | 29 | @end -------------------------------------------------------------------------------- /HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Headers/MAOverlayPathView.h: -------------------------------------------------------------------------------- 1 | // 2 | // MAOverlayPathView.h 3 | // MAMapKit 4 | // 5 | // 6 | // Copyright (c) 2011年 Autonavi Inc. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "MAOverlayView.h" 11 | #import "MALineDrawType.h" 12 | 13 | /*! 14 | @brief 该类提供使用CGPathRef来绘制overlay,默认的操作是将fill attributes, stroke attributes设置到CAShapeLayer中, 可以使用该类的子类MACircleView, MAPolylineView, MAPolygonView或者继承该类, 如果继承该类,需要重载-(void)createPath方法 15 | */ 16 | @interface MAOverlayPathView : MAOverlayView 17 | 18 | /*! 19 | @brief 填充颜色,默认是kMAOverlayViewDefaultFillColor 20 | */ 21 | @property (retain) UIColor *fillColor; 22 | 23 | /*! 24 | @brief 笔触颜色,默认是kMAOverlayViewDefaultStrokeColor 25 | */ 26 | @property (retain) UIColor *strokeColor; 27 | 28 | /*! 29 | @brief 笔触宽度,默认是0 30 | */ 31 | @property CGFloat lineWidth; 32 | 33 | /*! 34 | @brief LineJoin,默认是kMALineJoinBevel 35 | */ 36 | @property MALineJoinType lineJoinType; 37 | 38 | /*! 39 | @brief LineCap,默认是kMALineCapButt 40 | */ 41 | @property MALineCapType lineCapType; 42 | 43 | /*! 44 | @brief MiterLimit,默认是10.f 45 | */ 46 | @property CGFloat miterLimit; 47 | 48 | /*! 49 | @brief 是否绘制成虚线, 默认是NO 50 | */ 51 | @property BOOL lineDash; 52 | 53 | #pragma mark - Deprecated 54 | 55 | /*! 56 | @brief LineJoin,默认是kCGLineJoinRound 57 | */ 58 | @property CGLineJoin lineJoin __attribute__ ((deprecated("not workable. use lineJoinType"))); 59 | 60 | /*! 61 | @brief LineCap,默认是kCGLineCapRound 62 | */ 63 | @property CGLineCap lineCap __attribute__ ((deprecated("not workable. use lineCapType"))); 64 | 65 | /*! 66 | @brief LineDashPhase,默认是0.f 67 | */ 68 | @property CGFloat lineDashPhase __attribute__ ((deprecated("not workable"))); 69 | 70 | /*! 71 | @brief LineDashPattern,默认是nil 72 | */ 73 | @property (copy) NSArray *lineDashPattern __attribute__ ((deprecated("not workable"))); 74 | 75 | /*! 76 | @brief 子类需要重载该方法并设置(self.path = newPath) 77 | */ 78 | - (void)createPath __attribute__ ((deprecated("not workable"))); 79 | 80 | /*! 81 | @brief 当前的path 82 | */ 83 | @property CGPathRef path __attribute__ ((deprecated("not workable"))); 84 | 85 | /*! 86 | @brief 释放当前path,调用之后 path == NULL 87 | */ 88 | - (void)invalidatePath __attribute__ ((deprecated("not workable"))); 89 | 90 | /*! 91 | @brief 将当前的stroke attributes设置到指定的context 92 | @param context 目标context 93 | @param zoomScale 当前缩放比例值 94 | */ 95 | - (void)applyStrokePropertiesToContext:(CGContextRef)context atZoomScale:(CGFloat)zoomScale __attribute__ ((deprecated("not workable"))); 96 | 97 | /*! 98 | @brief 将当前的fill attributes设置到指定的context 99 | @param context 目标context 100 | @param zoomScale 当前缩放比例值 101 | */ 102 | - (void)applyFillPropertiesToContext:(CGContextRef)context atZoomScale:(CGFloat)zoomScale __attribute__ ((deprecated("not workable"))); 103 | 104 | /*! 105 | @brief 绘制path 106 | @param path 要绘制的path 107 | @param context 目标context 108 | */ 109 | - (void)strokePath:(CGPathRef)path inContext:(CGContextRef)context __attribute__ ((deprecated("not workable"))); 110 | 111 | /*! 112 | @brief 填充path 113 | @param path 要绘制的path 114 | @param context 目标context 115 | */ 116 | - (void)fillPath:(CGPathRef)path inContext:(CGContextRef)context __attribute__ ((deprecated("not workable"))); 117 | 118 | @end 119 | -------------------------------------------------------------------------------- /HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Headers/MAOverlayView.h: -------------------------------------------------------------------------------- 1 | // 2 | // MAOverlayView.h 3 | // MAMapKit 4 | // 5 | // 6 | // Copyright (c) 2011年 Autonavi Inc. All rights reserved. 7 | // 8 | #import 9 | #import "MAGeometry.h" 10 | #import "MAOverlay.h" 11 | #import "MALineDrawType.h" 12 | 13 | #define kMAOverlayViewDefaultStrokeColor [UIColor colorWithRed:0.3 green:0.63 blue:0.89 alpha:0.8] 14 | #define kMAOverlayViewDefaultFillColor [UIColor colorWithRed:0.77 green:0.88 blue:0.94 alpha:0.8] 15 | 16 | /*! 17 | @brief 该类是地图覆盖物View的基类, 提供绘制overlay的接口但并无实际的实现 18 | */ 19 | @interface MAOverlayView : UIView 20 | 21 | /*! 22 | @brief 初始化并返回一个overlay view 23 | @param overlay 关联的overlay对象 24 | @return 初始化成功则返回overlay view,否则返回nil 25 | */ 26 | - (id)initWithOverlay:(id )overlay; 27 | 28 | /*! 29 | @brief 关联的overlay对象 30 | */ 31 | @property (nonatomic, readonly, retain) id overlay; 32 | 33 | /*! 34 | @brief 将MAMapPoint转化为相对于receiver的本地坐标 35 | @param mapPoint 要转化的MAMapPoint 36 | @return 相对于receiver的本地坐标 37 | */ 38 | - (CGPoint)pointForMapPoint:(MAMapPoint)mapPoint; 39 | 40 | /*! 41 | @brief 将相对于receiver的本地坐标转化为MAMapPoint 42 | @param point 要转化的相对于receiver的本地坐标 43 | @return MAMapPoint 44 | */ 45 | - (MAMapPoint)mapPointForPoint:(CGPoint)point; 46 | 47 | /*! 48 | @brief 将MAMapRect转化为相对于receiver的本地rect 49 | @param mapRect 要转化的MAMapRect 50 | @return 相对于receiver的本地rect 51 | */ 52 | - (CGRect)rectForMapRect:(MAMapRect)mapRect; 53 | 54 | /*! 55 | @brief 将相对于receiver的本地rect转化为MAMapRect 56 | @param rect 要转化的相对于receiver的本地rect 57 | @return MAMapRect 58 | */ 59 | - (MAMapRect)mapRectForRect:(CGRect)rect; 60 | 61 | /*! 62 | @brief 绘制overlay view的内容 63 | @param mapRect 该MAMapRect范围内需要更新 64 | @param zoomScale 当前的缩放比例值 65 | @param context 绘制操作的graphics context 66 | */ 67 | - (void)drawMapRect:(MAMapRect)mapRect 68 | zoomScale:(CGFloat)zoomScale 69 | inContext:(CGContextRef)context; 70 | 71 | /*! 72 | @brief 缓存的OpenGLES坐标 73 | */ 74 | @property (nonatomic) CGPoint *glPoints; 75 | 76 | /*! 77 | @brief 缓存的OpenGLES坐标 个数 78 | */ 79 | @property (nonatomic) NSUInteger glPointCount; 80 | 81 | /*! 82 | @brief 将MAMapPoint转换为opengles可以直接使用的坐标 83 | @param mapPoint MAMapPoint坐标 84 | @return opengles 直接支持的坐标 85 | */ 86 | - (CGPoint)glPointForMapPoint:(MAMapPoint)mapPoint; 87 | 88 | /*! 89 | @brief 批量将MAMapPoint转换为opengles可以直接使用的坐标 90 | @param mapPoint MAMapPoint坐标数据指针 91 | @param count 个数 92 | @return opengles 直接支持的坐标数据指针(需要调用者手动释放) 93 | */ 94 | - (CGPoint *)glPointsForMapPoints:(MAMapPoint *)mapPoints count:(NSUInteger)count; 95 | 96 | /*! 97 | @brief 将屏幕尺寸转换为OpenGLES尺寸 98 | @param windowWidth 屏幕尺寸 99 | @return OpenGLES尺寸 100 | */ 101 | - (CGFloat)glWidthForWindowWidth:(CGFloat)windowWidth; 102 | 103 | /*! 104 | @brief OpenGLES坐标系发生改变, 重新计算缓存的OpenGLES坐标 105 | */ 106 | - (void)referenceDidChange; 107 | 108 | /*! 109 | @brief 使用OpenGLES 绘制线 110 | @param points OpenGLES坐标系点指针, 参考- (CGPoint)glPointForMapPoint:(MAMapPoint)mapPoint, - (CGPoint *)glPointsForMapPoints:(MAMapPoint *)mapPoints count:(NSUInteger)count 111 | @param pointCount 点个数 112 | @param strokeColor 线颜色 113 | @param lineWidth OpenGLES支持线宽尺寸, 参考 - (CGFloat)glWidthForWindowWidth:(CGFloat)windowWidth 114 | @param looped 是否闭合, 如polyline会设置NO, polygon会设置YES. 115 | */ 116 | - (void)renderLinesWithPoints:(CGPoint *)points 117 | pointCount:(NSUInteger)pointCount 118 | strokeColor:(UIColor *)strokeColor 119 | lineWidth:(CGFloat)lineWidth 120 | looped:(BOOL)looped; 121 | 122 | /*! 123 | 使用OpenGLES 绘制线 124 | @param points OpenGLES坐标系点指针, 参考- (CGPoint)glPointForMapPoint:(MAMapPoint)mapPoint, - (CGPoint *)glPointsForMapPoints:(MAMapPoint *)mapPoints count:(NSUInteger)count 125 | @param pointCount 点个数 126 | @param strokeColor 线颜色 127 | @param lineWidth OpenGLES支持线宽尺寸, 参考 - (CGFloat)glWidthForWindowWidth:(CGFloat)windowWidth 128 | @param looped 是否闭合, 如polyline会设置NO, polygon会设置YES. 129 | @param lineJoinType 线连接点样式 130 | @param lineCapType 线端点样式 131 | @param lineDash 是否是虚线 132 | */ 133 | - (void)renderLinesWithPoints:(CGPoint *)points 134 | pointCount:(NSUInteger)pointCount 135 | strokeColor:(UIColor *)strokeColor 136 | lineWidth:(CGFloat)lineWidth 137 | looped:(BOOL)looped 138 | LineJoinType:(MALineJoinType)lineJoinType 139 | LineCapType:(MALineCapType)lineCapType 140 | lineDash:(BOOL)lineDash; 141 | 142 | /*! 143 | 使用OpenGLES 按指定纹理绘制线 144 | @param points OpenGLES坐标系点指针, 参考- (CGPoint)glPointForMapPoint:(MAMapPoint)mapPoint, - (CGPoint *)glPointsForMapPoints:(MAMapPoint *)mapPoints count:(NSUInteger)count 145 | @param pointCount 点个数 146 | @param lineWidth 线OpenGLES支持线宽尺寸, 参考 - (CGFloat)glWidthForWindowWidth:(CGFloat)windowWidth 147 | @param textureID 指定的纹理 使用- (void)loadStrokeTextureImage:(UIImage *)textureImage;加载 148 | @param looped 是否闭合, 如polyline会设置NO, polygon会设置YES. 149 | */ 150 | - (void)renderTexturedLinesWithPoints:(CGPoint *)points 151 | pointCount:(NSUInteger)pointCount 152 | lineWidth:(CGFloat)lineWidth 153 | textureID:(GLuint)textureID 154 | looped:(BOOL)looped; 155 | 156 | /*! 157 | @brief 使用OpenGLES 绘制区域 158 | @param points OpenGLES坐标系点指针, 参考- (CGPoint)glPointForMapPoint:(MAMapPoint)mapPoint, - (CGPoint *)glPointsForMapPoints:(MAMapPoint *)mapPoints count:(NSUInteger)count 159 | @param pointCount 点个数 160 | @param fillColor 填充颜色 161 | @param usingTriangleFan YES对应GL_TRIANGLE_FAN, NO对应GL_TRIANGLES 162 | */ 163 | - (void)renderRegionWithPoints:(CGPoint *)points 164 | pointCount:(NSUInteger)pointCount 165 | fillColor:(UIColor *)fillColor 166 | usingTriangleFan:(BOOL)usingTriangleFan; 167 | 168 | /*! 169 | @brief 使用OpenGLES 绘制区域 170 | @param points OpenGLES坐标系点指针, 参考- (CGPoint)glPointForMapPoint:(MAMapPoint)mapPoint, - (CGPoint *)glPointsForMapPoints:(MAMapPoint *)mapPoints count:(NSUInteger)count 171 | @param pointCount 点个数 172 | @param fillColor 填充颜色 173 | @param strokeLineWidth 边缘宽度 174 | @param usingTriangleFan YES对应GL_TRIANGLE_FAN, NO对应GL_TRIANGLES 175 | */ 176 | - (void)renderRegionWithPoints:(CGPoint *)points 177 | pointCount:(NSUInteger)pointCount 178 | fillColor:(UIColor *)fillColor 179 | strokeLineWidth:(CGFloat)strokeLineWidth 180 | usingTriangleFan:(BOOL)usingTriangleFan; 181 | 182 | /*! 183 | @brief 使用OpenGLES 绘制图片 184 | @param textureID OpenGLES纹理ID 185 | @param points OpenGLES坐标系点指针,纹理矩形的四个顶点坐标,其第一个坐标为图片左上角,依次顺时针传入其他顶点 ,参考- (CGPoint)glPointForMapPoint:(MAMapPoint)mapPoint, - (CGPoint *)glPointsForMapPoints:(MAMapPoint *)mapPoints count:(NSUInteger)count , 186 | */ 187 | - (void)renderIconWithTextureID:(GLuint)textureID points:(CGPoint *)points; 188 | 189 | /*! 190 | @brief 使用OpenGLES 绘制图片 191 | @param textureID OpenGLES纹理ID 192 | @param points OpenGLES坐标系点指针,纹理矩形的四个顶点坐标,其第一个坐标为图片左上角,依次顺时针传入其他顶点 ,参考- (CGPoint)glPointForMapPoint:(MAMapPoint)mapPoint, - (CGPoint *)glPointsForMapPoints:(MAMapPoint *)mapPoints count:(NSUInteger)count , 193 | @param modulateColor 调节颜色值, 最终颜色 = 纹理色 * modulateColor. 如只需要调节alpha的话就设置为[red=1, green=1, blue=1, alpha=0.5]. 194 | */ 195 | - (void)renderIconWithTextureID:(GLuint)textureID points:(CGPoint *)points modulateColor:(UIColor *)modulateColor; 196 | 197 | 198 | /*! 199 | @brief 绘制函数(子类需要重载来实现) 200 | */ 201 | - (void)glRender; 202 | 203 | 204 | #pragma mark - draw property 205 | 206 | /*! 207 | @brief 笔触纹理id 208 | 修改纹理id参考 - (GLuint)loadStrokeTextureImage:(UIImage *)textureImage; 209 | */ 210 | @property (nonatomic, readonly) GLuint strokeTextureID; 211 | 212 | /*! 213 | 加载纹理图片,纹理ID存储在成员strokeTextureID中。纹理图片为nil时,清空原有纹理。 214 | @param textureImage 纹理图片(需满足:长宽相等,且宽度值为2的次幂)。若为nil,则清空原有纹理。 215 | @return openGL纹理ID, 若纹理加载失败返回0。 216 | */ 217 | - (GLuint)loadStrokeTextureImage:(UIImage *)textureImage; 218 | 219 | @end 220 | 221 | @interface MAOverlayView(Deprecated) 222 | 223 | /*! 224 | @brief 使用OpenGLES 绘制线 225 | @param points OpenGLES坐标系点指针, 参考- (CGPoint)glPointForMapPoint:(MAMapPoint)mapPoint, - (CGPoint *)glPointsForMapPoints:(MAMapPoint *)mapPoints count:(NSUInteger)count 226 | @param pointCount 点个数 227 | @param strokeColor 线颜色 228 | @param lineWidth OpenGLES支持线宽尺寸, 参考 - (CGFloat)glWidthForWindowWidth:(CGFloat)windowWidth 229 | @param looped 是否闭合, 如polyline会设置NO, polygon会设置YES. 230 | @param lineDash 是否是虚线. 231 | */ 232 | - (void)renderLinesWithPoints:(CGPoint *)points pointCount:(NSUInteger)pointCount strokeColor:(UIColor *)strokeColor lineWidth:(CGFloat)lineWidth looped:(BOOL)looped lineDash:(BOOL)lineDash __attribute__ ((deprecated("use - (void)renderLinesWithPoints:(CGPoint *)points pointCount:(NSUInteger)pointCount strokeColor:(UIColor *)strokeColor lineWidth:(CGFloat)lineWidth looped:(BOOL)looped LineJoinType:(MALineJoinType)lineJoinType LineCapType:(MALineCapType)lineCapType lineDash:(BOOL)lineDash; instead"))); 233 | 234 | @end 235 | -------------------------------------------------------------------------------- /HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Headers/MAPinAnnotationView.h: -------------------------------------------------------------------------------- 1 | // 2 | // MAPinAnnotationView.h 3 | // MAMapKitDemo 4 | // 5 | // Created by songjian on 13-1-7. 6 | // Copyright (c) 2013年 songjian. All rights reserved. 7 | // 8 | 9 | #import "MAMapKit.h" 10 | 11 | enum { 12 | MAPinAnnotationColorRed = 0, 13 | MAPinAnnotationColorGreen, 14 | MAPinAnnotationColorPurple 15 | }; 16 | typedef NSUInteger MAPinAnnotationColor; 17 | 18 | /*! 19 | @brief 提供类似大头针效果的annotation view 20 | */ 21 | @interface MAPinAnnotationView : MAAnnotationView 22 | 23 | /*! 24 | @brief 大头针的颜色,有MAPinAnnotationColorRed, MAPinAnnotationColorGreen, MAPinAnnotationColorPurple三种 25 | */ 26 | @property (nonatomic) MAPinAnnotationColor pinColor; 27 | 28 | /*! 29 | @brief 动画效果 30 | */ 31 | @property (nonatomic) BOOL animatesDrop; 32 | 33 | @end 34 | -------------------------------------------------------------------------------- /HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Headers/MAPointAnnotation.h: -------------------------------------------------------------------------------- 1 | // 2 | // MAPointAnnotation.h 3 | // MAMapKitDemo 4 | // 5 | // Created by songjian on 13-1-7. 6 | // Copyright (c) 2013年 songjian. All rights reserved. 7 | // 8 | 9 | #import "MAShape.h" 10 | #import 11 | 12 | /*! 13 | @brief 点标注数据 14 | */ 15 | @interface MAPointAnnotation : MAShape 16 | 17 | /*! 18 | @brief 经纬度 19 | */ 20 | @property (nonatomic, assign) CLLocationCoordinate2D coordinate; 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Headers/MAPolygon.h: -------------------------------------------------------------------------------- 1 | // 2 | // MAPolygon.h 3 | // MAMapKit 4 | // 5 | // 6 | // Copyright (c) 2011年 Autonavi Inc. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "MAMultiPoint.h" 11 | #import "MAOverlay.h" 12 | 13 | /*! 14 | @brief 此类用于定义一个由多个点组成的闭合多边形, 点与点之间按顺序尾部相连, 第一个点与最后一个点相连, 通常MAPolygon是MAPolygonView的model 15 | */ 16 | @interface MAPolygon : MAMultiPoint 17 | 18 | /*! 19 | @brief 根据经纬度坐标数据生成闭合多边形 20 | @param coords 经纬度坐标点数据,coords对应的内存会拷贝,调用者负责该内存的释放 21 | @param count 经纬度坐标点数组个数 22 | @return 新生成的多边形 23 | */ 24 | + (instancetype)polygonWithCoordinates:(CLLocationCoordinate2D *)coords count:(NSUInteger)count; 25 | 26 | /*! 27 | @brief 根据map point数据生成多边形 28 | @param points map point数据,points对应的内存会拷贝,调用者负责该内存的释放 29 | @param count 点的个数 30 | @return 新生成的多边形 31 | */ 32 | + (instancetype)polygonWithPoints:(MAMapPoint *)points count:(NSUInteger)count; 33 | 34 | @end 35 | -------------------------------------------------------------------------------- /HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Headers/MAPolygonView.h: -------------------------------------------------------------------------------- 1 | // 2 | // MAPolygonView.h 3 | // MAMapKit 4 | // 5 | // 6 | // Copyright (c) 2011年 Autonavi Inc. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | #import "MAPolygon.h" 12 | #import "MAOverlayPathView.h" 13 | 14 | /*! 15 | @brief 此类是MAPolygon的显示多边形view,可以通过MAOverlayPathView修改其fill和stroke attributes 16 | */ 17 | @interface MAPolygonView : MAOverlayPathView 18 | 19 | /*! 20 | @brief 根据指定的多边形生成一个多边形View 21 | @param polygon 指定的多边形数据对象 22 | @return 新生成的多边形View 23 | */ 24 | - (id)initWithPolygon:(MAPolygon *)polygon; 25 | 26 | /*! 27 | @brief 关联的MAPolygon model 28 | */ 29 | @property (nonatomic, readonly) MAPolygon *polygon; 30 | 31 | @end -------------------------------------------------------------------------------- /HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Headers/MAPolyline.h: -------------------------------------------------------------------------------- 1 | // 2 | // MAPolyline.h 3 | // MAMapKit 4 | // 5 | // 6 | // Copyright (c) 2011年 Autonavi Inc. All rights reserved. 7 | // 8 | 9 | #import "MAMultiPoint.h" 10 | #import "MAOverlay.h" 11 | 12 | /*! 13 | @brief 此类用于定义一个由多个点相连的多段线,点与点之间尾部想连但第一点与最后一个点不相连, 通常MAPolyline是MAPolylineView的model 14 | */ 15 | @interface MAPolyline : MAMultiPoint 16 | 17 | /*! 18 | @brief 根据map point数据生成多段线 19 | @param points map point数据,points对应的内存会拷贝,调用者负责该内存的释放 20 | @param count map point个数 21 | @return 生成的多段线 22 | */ 23 | + (instancetype)polylineWithPoints:(MAMapPoint *)points count:(NSUInteger)count; 24 | 25 | /*! 26 | @brief 根据经纬度坐标数据生成多段线 27 | @param coords 经纬度坐标数据,coords对应的内存会拷贝,调用者负责该内存的释放 28 | @param count 经纬度坐标个数 29 | @return 生成的多段线 30 | */ 31 | + (instancetype)polylineWithCoordinates:(CLLocationCoordinate2D *)coords count:(NSUInteger)count; 32 | 33 | @end -------------------------------------------------------------------------------- /HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Headers/MAPolylineView.h: -------------------------------------------------------------------------------- 1 | // 2 | // MAPolylineView.h 3 | // MAMapKit 4 | // 5 | // 6 | // Copyright (c) 2011年 Autonavi Inc. All rights reserved. 7 | // 8 | 9 | 10 | #import 11 | 12 | #import "MAPolyline.h" 13 | #import "MAOverlayPathView.h" 14 | 15 | /*! 16 | @brief 此类是MAPolyline的显示多段线view,可以通过MAOverlayPathView修改其fill和stroke attributes 17 | */ 18 | @interface MAPolylineView : MAOverlayPathView 19 | 20 | /*! 21 | @brief 根据指定的MAPolyline生成一个多段线view 22 | @param polyline 指定MAPolyline 23 | @return 新生成的多段线View 24 | */ 25 | - (id)initWithPolyline:(MAPolyline *)polyline; 26 | 27 | /*! 28 | @brief 关联的MAPolyline model 29 | */ 30 | @property (nonatomic, readonly) MAPolyline *polyline; 31 | 32 | @end 33 | -------------------------------------------------------------------------------- /HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Headers/MAShape.h: -------------------------------------------------------------------------------- 1 | // 2 | // MAShape.h 3 | // MAMapKit 4 | // 5 | // 6 | // Copyright (c) 2011年 Autonavi Inc. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "MAAnnotation.h" 11 | 12 | /*! 13 | @brief 该类为一个抽象类,定义了基于MAAnnotation的MAShape类的基本属性和行为,不能直接使用,必须子类化之后才能使用 14 | */ 15 | @interface MAShape : NSObject { 16 | 17 | NSString *_title; 18 | NSString *_subtitle; 19 | } 20 | 21 | /*! 22 | @brief 标题 23 | */ 24 | @property (copy) NSString *title; 25 | 26 | /*! 27 | @brief 副标题 28 | */ 29 | @property (copy) NSString *subtitle; 30 | 31 | @end -------------------------------------------------------------------------------- /HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Headers/MATileOverlay.h: -------------------------------------------------------------------------------- 1 | // 2 | // MATileOverlay.h 3 | // MapKit_static 4 | // 5 | // Created by Li Fei on 11/22/13. 6 | // Copyright (c) 2013 songjian. All rights reserved. 7 | // 8 | 9 | #import "MAOverlay.h" 10 | 11 | /*! 12 | @brief 该类是覆盖在球面墨卡托投影上的图片tiles的数据源 13 | */ 14 | @interface MATileOverlay : NSObject 15 | 16 | /*! 17 | @brief 根据指定的URLTemplate生成tileOverlay 18 | @param URLTemplate是一个包含"{x}","{y}","{z}","{scale}"的字符串,"{x}","{y}","{z}","{scale}"会被tile path的值所替换,并生成用来加载tile图片数据的URL 。例如: http://server/path?x={x}&y={y}&z={z}&scale={scale}。 19 | @return 以指定的URLTemplate字符串生成tileOverlay 20 | */ 21 | - (id)initWithURLTemplate:(NSString *)URLTemplate; 22 | 23 | /*! 24 | @brief 默认tileSize 256x256 25 | */ 26 | @property (readonly) CGSize tileSize; 27 | 28 | /*! 29 | @brief tileOverlay的可见最小Zoom值 30 | */ 31 | @property NSInteger minimumZ; 32 | 33 | /*! 34 | @brief tileOverlay的可见最大Zoom值 35 | */ 36 | @property NSInteger maximumZ; 37 | 38 | /*! 39 | @brief 同initWithURLTemplate:中的URLTemplate 40 | */ 41 | @property (readonly) NSString *URLTemplate; 42 | 43 | /*! 44 | @brief 暂未开放 45 | */ 46 | @property (nonatomic) BOOL canReplaceMapContent; 47 | 48 | /*! 49 | @brief 区域外接矩形,可用来设定tileOverlay的可渲染区域 50 | */ 51 | @property (nonatomic) MAMapRect boundingMapRect; 52 | 53 | @end 54 | 55 | typedef struct { 56 | NSInteger x; 57 | NSInteger y; 58 | NSInteger z; 59 | CGFloat contentScaleFactor; 60 | } MATileOverlayPath; 61 | 62 | /*! 63 | @brief 子类可覆盖CustomLoading中的方法来自定义加载MKTileOverlay 64 | */ 65 | @interface MATileOverlay (CustomLoading) 66 | 67 | /*! 68 | @brief 以tile paht生成URL。用于加载tile,此方法默认填充URLTemplate 69 | @param tile path 70 | @return 以tile path生成tileOverlay 71 | */ 72 | - (NSURL *)URLForTilePath:(MATileOverlayPath)path; 73 | 74 | /*! 75 | @brief 加载被请求的tile,并以tile数据或加载tile失败error访问回调block;默认实现为首先用URLForTilePath去获取URL,然后用异步NSURLConnection加载tile 76 | @param tile path 77 | @param 用来传入tile数据或加载tile失败的error访问的回调block 78 | */ 79 | - (void)loadTileAtPath:(MATileOverlayPath)path result:(void (^)(NSData *tileData, NSError *error))result; 80 | 81 | @end 82 | -------------------------------------------------------------------------------- /HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Headers/MATileOverlayView.h: -------------------------------------------------------------------------------- 1 | // 2 | // MATileOverlayView.h 3 | // MapKit_static 4 | // 5 | // Created by Li Fei on 11/25/13. 6 | // Copyright (c) 2013 songjian. All rights reserved. 7 | // 8 | 9 | #import "MAOverlayView.h" 10 | #import "MATileOverlay.h" 11 | 12 | /*! 13 | @brief 此类是将MAOverlayView中的覆盖tiles显示在地图上的view; 14 | */ 15 | @interface MATileOverlayView : MAOverlayView 16 | 17 | /*! 18 | @brief 覆盖在球面墨卡托投影上的图片tiles的数据源 19 | */ 20 | @property (nonatomic ,readonly) MATileOverlay *tileOverlay; 21 | 22 | /*! 23 | @brief 根据指定的tileOverlay生成将tiles显示在地图上的View 24 | @param tileOverlay 制定了覆盖图片,以及图片的覆盖区域的groundOverlay 25 | @return 以tileOverlay新生成View 26 | */ 27 | - (id)initWithTileOverlay:(MATileOverlay *)tileOverlay; 28 | 29 | @end 30 | -------------------------------------------------------------------------------- /HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Headers/MATouchPoi.h: -------------------------------------------------------------------------------- 1 | // 2 | // MATouchPoi.h 3 | // MapKit_static 4 | // 5 | // Created by songjian on 13-7-17. 6 | // Copyright (c) 2013年 songjian. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | 12 | @interface MATouchPoi : NSObject 13 | 14 | /*! 15 | @brief 名称 16 | */ 17 | @property (nonatomic, copy, readonly) NSString *name; 18 | 19 | /*! 20 | @brief 经纬度坐标 21 | */ 22 | @property (nonatomic, assign, readonly) CLLocationCoordinate2D coordinate; 23 | 24 | @end 25 | -------------------------------------------------------------------------------- /HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Headers/MATypes.h: -------------------------------------------------------------------------------- 1 | // 2 | // MATypes.h 3 | // MAMapKitDemo 4 | // 5 | // Created by songjian on 12-12-24. 6 | // Copyright (c) 2012年 songjian. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | enum { 12 | MAMapTypeStandard = 0, 13 | MAMapTypeSatellite, 14 | MAMapTypeStandardNight 15 | }; 16 | typedef NSUInteger MAMapType; 17 | -------------------------------------------------------------------------------- /HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Headers/MAUserLocation.h: -------------------------------------------------------------------------------- 1 | // 2 | // MAUserLocation.h 3 | // MAMapKit 4 | // 5 | // Created by yin cai on 12-1-4. 6 | // Copyright (c) 2012年 __MyCompanyName__. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "MAAnnotation.h" 11 | 12 | @class CLLocation; 13 | @class CLHeading; 14 | 15 | /*! 16 | @brief 定位信息类 17 | */ 18 | @interface MAUserLocation : NSObject 19 | 20 | /*! 21 | @brief 位置更新状态,如果正在更新位置信息,则该值为YES 22 | */ 23 | @property (readonly, nonatomic, getter = isUpdating) BOOL updating; 24 | 25 | /*! 26 | @brief 位置信息,如果MAMapView的showsUserLocation为NO,或者尚未定位成功,则该值为nil 27 | */ 28 | @property (readonly, nonatomic, retain) CLLocation *location; 29 | 30 | /*! 31 | @brief heading信息 32 | */ 33 | @property (readonly, nonatomic, retain) CLHeading *heading; 34 | 35 | /*! 36 | @brief 定位标注点要显示的标题信息 37 | */ 38 | @property (nonatomic, copy) NSString *title; 39 | 40 | /*! 41 | @brief 定位标注点要显示的子标题信息. 42 | */ 43 | @property (nonatomic, copy) NSString *subtitle; 44 | 45 | @end -------------------------------------------------------------------------------- /HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/MAMapKit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/autonaviapi/HelloAmapForEnglish/cddcb1508b9d21011aadac428f2ce28b9c5a99c5/HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/MAMapKit -------------------------------------------------------------------------------- /HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Resources/AMap.bundle/AMap3D.bundle/bktile.data: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/autonaviapi/HelloAmapForEnglish/cddcb1508b9d21011aadac428f2ce28b9c5a99c5/HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Resources/AMap.bundle/AMap3D.bundle/bktile.data -------------------------------------------------------------------------------- /HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Resources/AMap.bundle/AMap3D.bundle/bktile_n.data: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/autonaviapi/HelloAmapForEnglish/cddcb1508b9d21011aadac428f2ce28b9c5a99c5/HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Resources/AMap.bundle/AMap3D.bundle/bktile_n.data -------------------------------------------------------------------------------- /HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Resources/AMap.bundle/AMap3D.bundle/dash.data: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/autonaviapi/HelloAmapForEnglish/cddcb1508b9d21011aadac428f2ce28b9c5a99c5/HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Resources/AMap.bundle/AMap3D.bundle/dash.data -------------------------------------------------------------------------------- /HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Resources/AMap.bundle/AMap3D.bundle/iconr.data: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/autonaviapi/HelloAmapForEnglish/cddcb1508b9d21011aadac428f2ce28b9c5a99c5/HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Resources/AMap.bundle/AMap3D.bundle/iconr.data -------------------------------------------------------------------------------- /HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Resources/AMap.bundle/AMap3D.bundle/iconr_n.data: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/autonaviapi/HelloAmapForEnglish/cddcb1508b9d21011aadac428f2ce28b9c5a99c5/HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Resources/AMap.bundle/AMap3D.bundle/iconr_n.data -------------------------------------------------------------------------------- /HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Resources/AMap.bundle/AMap3D.bundle/lineround.data: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/autonaviapi/HelloAmapForEnglish/cddcb1508b9d21011aadac428f2ce28b9c5a99c5/HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Resources/AMap.bundle/AMap3D.bundle/lineround.data -------------------------------------------------------------------------------- /HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Resources/AMap.bundle/AMap3D.bundle/roadarrow.data: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/autonaviapi/HelloAmapForEnglish/cddcb1508b9d21011aadac428f2ce28b9c5a99c5/HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Resources/AMap.bundle/AMap3D.bundle/roadarrow.data -------------------------------------------------------------------------------- /HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Resources/AMap.bundle/AMap3D.bundle/style_l.data: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/autonaviapi/HelloAmapForEnglish/cddcb1508b9d21011aadac428f2ce28b9c5a99c5/HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Resources/AMap.bundle/AMap3D.bundle/style_l.data -------------------------------------------------------------------------------- /HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Resources/AMap.bundle/AMap3D.bundle/style_nl.data: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/autonaviapi/HelloAmapForEnglish/cddcb1508b9d21011aadac428f2ce28b9c5a99c5/HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Resources/AMap.bundle/AMap3D.bundle/style_nl.data -------------------------------------------------------------------------------- /HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Resources/AMap.bundle/AMap3D.bundle/style_sl.data: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/autonaviapi/HelloAmapForEnglish/cddcb1508b9d21011aadac428f2ce28b9c5a99c5/HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Resources/AMap.bundle/AMap3D.bundle/style_sl.data -------------------------------------------------------------------------------- /HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Resources/AMap.bundle/AMap3D.bundle/tbl.data: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/autonaviapi/HelloAmapForEnglish/cddcb1508b9d21011aadac428f2ce28b9c5a99c5/HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Resources/AMap.bundle/AMap3D.bundle/tbl.data -------------------------------------------------------------------------------- /HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Resources/AMap.bundle/AMap3D.bundle/tgl.data: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/autonaviapi/HelloAmapForEnglish/cddcb1508b9d21011aadac428f2ce28b9c5a99c5/HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Resources/AMap.bundle/AMap3D.bundle/tgl.data -------------------------------------------------------------------------------- /HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Resources/AMap.bundle/AMap3D.bundle/trl.data: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/autonaviapi/HelloAmapForEnglish/cddcb1508b9d21011aadac428f2ce28b9c5a99c5/HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Resources/AMap.bundle/AMap3D.bundle/trl.data -------------------------------------------------------------------------------- /HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Resources/AMap.bundle/AMap3D.bundle/tyl.data: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/autonaviapi/HelloAmapForEnglish/cddcb1508b9d21011aadac428f2ce28b9c5a99c5/HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Resources/AMap.bundle/AMap3D.bundle/tyl.data -------------------------------------------------------------------------------- /HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Resources/AMap.bundle/images/greenPin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/autonaviapi/HelloAmapForEnglish/cddcb1508b9d21011aadac428f2ce28b9c5a99c5/HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Resources/AMap.bundle/images/greenPin.png -------------------------------------------------------------------------------- /HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Resources/AMap.bundle/images/greenPin@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/autonaviapi/HelloAmapForEnglish/cddcb1508b9d21011aadac428f2ce28b9c5a99c5/HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Resources/AMap.bundle/images/greenPin@2x.png -------------------------------------------------------------------------------- /HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Resources/AMap.bundle/images/greenPin_lift.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/autonaviapi/HelloAmapForEnglish/cddcb1508b9d21011aadac428f2ce28b9c5a99c5/HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Resources/AMap.bundle/images/greenPin_lift.png -------------------------------------------------------------------------------- /HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Resources/AMap.bundle/images/greenPin_lift@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/autonaviapi/HelloAmapForEnglish/cddcb1508b9d21011aadac428f2ce28b9c5a99c5/HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Resources/AMap.bundle/images/greenPin_lift@2x.png -------------------------------------------------------------------------------- /HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Resources/AMap.bundle/images/lineDashTexture.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/autonaviapi/HelloAmapForEnglish/cddcb1508b9d21011aadac428f2ce28b9c5a99c5/HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Resources/AMap.bundle/images/lineDashTexture.png -------------------------------------------------------------------------------- /HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Resources/AMap.bundle/images/lineTexture.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/autonaviapi/HelloAmapForEnglish/cddcb1508b9d21011aadac428f2ce28b9c5a99c5/HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Resources/AMap.bundle/images/lineTexture.png -------------------------------------------------------------------------------- /HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Resources/AMap.bundle/images/pin_shadow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/autonaviapi/HelloAmapForEnglish/cddcb1508b9d21011aadac428f2ce28b9c5a99c5/HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Resources/AMap.bundle/images/pin_shadow.png -------------------------------------------------------------------------------- /HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Resources/AMap.bundle/images/pin_shadow@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/autonaviapi/HelloAmapForEnglish/cddcb1508b9d21011aadac428f2ce28b9c5a99c5/HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Resources/AMap.bundle/images/pin_shadow@2x.png -------------------------------------------------------------------------------- /HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Resources/AMap.bundle/images/purplePin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/autonaviapi/HelloAmapForEnglish/cddcb1508b9d21011aadac428f2ce28b9c5a99c5/HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Resources/AMap.bundle/images/purplePin.png -------------------------------------------------------------------------------- /HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Resources/AMap.bundle/images/purplePin@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/autonaviapi/HelloAmapForEnglish/cddcb1508b9d21011aadac428f2ce28b9c5a99c5/HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Resources/AMap.bundle/images/purplePin@2x.png -------------------------------------------------------------------------------- /HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Resources/AMap.bundle/images/purplePin_lift.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/autonaviapi/HelloAmapForEnglish/cddcb1508b9d21011aadac428f2ce28b9c5a99c5/HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Resources/AMap.bundle/images/purplePin_lift.png -------------------------------------------------------------------------------- /HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Resources/AMap.bundle/images/purplePin_lift@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/autonaviapi/HelloAmapForEnglish/cddcb1508b9d21011aadac428f2ce28b9c5a99c5/HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Resources/AMap.bundle/images/purplePin_lift@2x.png -------------------------------------------------------------------------------- /HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Resources/AMap.bundle/images/redPin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/autonaviapi/HelloAmapForEnglish/cddcb1508b9d21011aadac428f2ce28b9c5a99c5/HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Resources/AMap.bundle/images/redPin.png -------------------------------------------------------------------------------- /HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Resources/AMap.bundle/images/redPin@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/autonaviapi/HelloAmapForEnglish/cddcb1508b9d21011aadac428f2ce28b9c5a99c5/HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Resources/AMap.bundle/images/redPin@2x.png -------------------------------------------------------------------------------- /HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Resources/AMap.bundle/images/redPin_lift.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/autonaviapi/HelloAmapForEnglish/cddcb1508b9d21011aadac428f2ce28b9c5a99c5/HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Resources/AMap.bundle/images/redPin_lift.png -------------------------------------------------------------------------------- /HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Resources/AMap.bundle/images/redPin_lift@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/autonaviapi/HelloAmapForEnglish/cddcb1508b9d21011aadac428f2ce28b9c5a99c5/HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Resources/AMap.bundle/images/redPin_lift@2x.png -------------------------------------------------------------------------------- /HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Resources/AMap.bundle/images/userlocation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/autonaviapi/HelloAmapForEnglish/cddcb1508b9d21011aadac428f2ce28b9c5a99c5/HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Resources/AMap.bundle/images/userlocation.png -------------------------------------------------------------------------------- /HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Resources/AMap.bundle/images/userlocation@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/autonaviapi/HelloAmapForEnglish/cddcb1508b9d21011aadac428f2ce28b9c5a99c5/HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Resources/AMap.bundle/images/userlocation@2x.png -------------------------------------------------------------------------------- /HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Resources/AMap.bundle/offline/offlinePackage.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/autonaviapi/HelloAmapForEnglish/cddcb1508b9d21011aadac428f2ce28b9c5a99c5/HelloAmap/Extern/MAMapKit.framework/Versions/2.4.0.601e6b9.60159/Resources/AMap.bundle/offline/offlinePackage.plist -------------------------------------------------------------------------------- /HelloAmap/Extern/MAMapKit.framework/Versions/Current: -------------------------------------------------------------------------------- 1 | 2.4.0.601e6b9.60159 -------------------------------------------------------------------------------- /HelloAmap/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "ipad", 35 | "size" : "29x29", 36 | "scale" : "1x" 37 | }, 38 | { 39 | "idiom" : "ipad", 40 | "size" : "29x29", 41 | "scale" : "2x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "40x40", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "size" : "40x40", 51 | "scale" : "2x" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "size" : "76x76", 56 | "scale" : "1x" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "size" : "76x76", 61 | "scale" : "2x" 62 | } 63 | ], 64 | "info" : { 65 | "version" : 1, 66 | "author" : "xcode" 67 | } 68 | } -------------------------------------------------------------------------------- /HelloAmap/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | NSLocationAlwaysUsageDescription 6 | 7 | CFBundleDevelopmentRegion 8 | en 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | com.autonavi.$(PRODUCT_NAME:rfc1034identifier) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1 25 | LSRequiresIPhoneOS 26 | 27 | UILaunchStoryboardName 28 | LaunchScreen 29 | UIMainStoryboardFile 30 | Main 31 | UIRequiredDeviceCapabilities 32 | 33 | armv7 34 | 35 | UISupportedInterfaceOrientations 36 | 37 | UIInterfaceOrientationPortrait 38 | UIInterfaceOrientationLandscapeLeft 39 | UIInterfaceOrientationLandscapeRight 40 | 41 | UISupportedInterfaceOrientations~ipad 42 | 43 | UIInterfaceOrientationPortrait 44 | UIInterfaceOrientationPortraitUpsideDown 45 | UIInterfaceOrientationLandscapeLeft 46 | UIInterfaceOrientationLandscapeRight 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /HelloAmap/POIAnnotation.h: -------------------------------------------------------------------------------- 1 | // 2 | // POIAnnotation.h 3 | // SearchV3Demo 4 | // 5 | // Created by songjian on 13-8-16. 6 | // Copyright (c) 2013年 songjian. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | 12 | @interface POIAnnotation : NSObject 13 | 14 | - (id)initWithPOI:(AMapPOI *)poi; 15 | 16 | @property (nonatomic, readonly, strong) AMapPOI *poi; 17 | 18 | @property (nonatomic, readonly) CLLocationCoordinate2D coordinate; 19 | 20 | /*! 21 | @brief 获取annotation标题 22 | @return 返回annotation的标题信息 23 | */ 24 | - (NSString *)title; 25 | 26 | /*! 27 | @brief 获取annotation副标题 28 | @return 返回annotation的副标题信息 29 | */ 30 | - (NSString *)subtitle; 31 | 32 | @end 33 | -------------------------------------------------------------------------------- /HelloAmap/POIAnnotation.m: -------------------------------------------------------------------------------- 1 | // 2 | // POIAnnotation.m 3 | // SearchV3Demo 4 | // 5 | // Created by songjian on 13-8-16. 6 | // Copyright (c) 2013年 songjian. All rights reserved. 7 | // 8 | 9 | #import "POIAnnotation.h" 10 | 11 | @interface POIAnnotation () 12 | 13 | @property (nonatomic, readwrite, strong) AMapPOI *poi; 14 | 15 | @end 16 | 17 | @implementation POIAnnotation 18 | @synthesize poi = _poi; 19 | 20 | #pragma mark - MAAnnotation Protocol 21 | 22 | - (NSString *)title 23 | { 24 | return self.poi.name; 25 | } 26 | 27 | - (NSString *)subtitle 28 | { 29 | return self.poi.address; 30 | } 31 | 32 | - (CLLocationCoordinate2D)coordinate 33 | { 34 | return CLLocationCoordinate2DMake(self.poi.location.latitude, self.poi.location.longitude); 35 | } 36 | 37 | #pragma mark - Life Cycle 38 | 39 | - (id)initWithPOI:(AMapPOI *)poi 40 | { 41 | if (self = [super init]) 42 | { 43 | self.poi = poi; 44 | } 45 | 46 | return self; 47 | } 48 | 49 | @end 50 | -------------------------------------------------------------------------------- /HelloAmap/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // HelloAmap 4 | // 5 | // Created by 王菲 on 14-12-30. 6 | // Copyright (c) 2014年 autonavi. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | #import 12 | 13 | @interface ViewController : UIViewController 14 | 15 | 16 | @end 17 | 18 | -------------------------------------------------------------------------------- /HelloAmap/ViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.m 3 | // AMapDmeo 4 | // 5 | // Created by 王菲 on 14-12-24. 6 | // Copyright (c) 2014年 autonavi. All rights reserved. 7 | // 8 | 9 | #import "ViewController.h" 10 | #import "POIAnnotation.h" 11 | 12 | #define converturl @"http://restapi.amap.com/v3/assistant/coordinate/convert?key=897210d6f68d6a63cfc84f86d96ec5e3&coordsys=gps&locations="; 13 | 14 | #define APIKey @"95ed2da3e9f4ece6319afbc437fc0b01" 15 | #define GeoPlaceHolder @"Searh or enter an address" 16 | 17 | @interface ViewController () 18 | { 19 | 20 | MKMapView *_mapView; 21 | 22 | CLLocation *_currentLocation;//当前坐标 23 | 24 | CLLocation *_convertLocation;//转换后的坐标 25 | 26 | CLLocationManager *_locationManager; 27 | 28 | AMapSearchAPI *_search; 29 | 30 | UISearchBar *_searchBar; 31 | 32 | UISearchDisplayController *_displayController; 33 | 34 | NSMutableArray *_tips; 35 | 36 | } 37 | 38 | 39 | @end 40 | 41 | @implementation ViewController 42 | 43 | 44 | #pragma mark - Utility 45 | 46 | /* 逆地理编码 搜索. */ 47 | - (void)reverseGeocoding 48 | { 49 | 50 | AMapReGeocodeSearchRequest *request = [[AMapReGeocodeSearchRequest alloc] init]; 51 | 52 | request.location = [AMapGeoPoint locationWithLatitude:_currentLocation.coordinate.latitude longitude:_currentLocation.coordinate.longitude]; 53 | 54 | [_search AMapReGoecodeSearch:request]; 55 | } 56 | 57 | 58 | /* POI 搜索. */ 59 | - (void)searchPOIWithKey:(NSString *)key adcode:(NSString *)adcode 60 | { 61 | if (key.length == 0) 62 | { 63 | return; 64 | } 65 | 66 | AMapPlaceSearchRequest *place = [[AMapPlaceSearchRequest alloc] init]; 67 | place.keywords = key; 68 | 69 | place.requireExtension = YES; 70 | 71 | 72 | if (adcode.length > 0) 73 | { 74 | place.city = @[adcode]; 75 | } 76 | 77 | [_search AMapPlaceSearch:place]; 78 | } 79 | 80 | /* 输入提示 搜索.*/ 81 | - (void)searchTipsWithKey:(NSString *)key 82 | { 83 | if (key.length == 0) 84 | { 85 | return; 86 | } 87 | 88 | AMapInputTipsSearchRequest *tips = [[AMapInputTipsSearchRequest alloc] init]; 89 | tips.keywords = key; 90 | [_search AMapInputTipsSearch:tips]; 91 | } 92 | 93 | /* 清除annotation. */ 94 | - (void)clear 95 | { 96 | [_mapView removeAnnotations:_mapView.annotations]; 97 | } 98 | 99 | - (void)clearAndSearchGeocodeWithKey:(NSString *)key adcode:(NSString *)adcode 100 | { 101 | /* 清除annotation. */ 102 | [self clear]; 103 | 104 | [self searchPOIWithKey:key adcode:adcode]; 105 | } 106 | 107 | #pragma mark - Initialization 108 | 109 | - (void)initSearchBar 110 | { 111 | _searchBar = [[UISearchBar alloc] initWithFrame:CGRectMake(0, 21, CGRectGetWidth(self.view.bounds), 44)]; 112 | _searchBar.barStyle = UIBarStyleBlackOpaque; 113 | _searchBar.translucent = YES; 114 | _searchBar.delegate = self; 115 | _searchBar.placeholder = GeoPlaceHolder; 116 | _searchBar.keyboardType = UIKeyboardTypeDefault; 117 | 118 | [self.view addSubview:_searchBar]; 119 | } 120 | 121 | - (void)initSearchDisplay 122 | { 123 | _displayController = [[UISearchDisplayController alloc] initWithSearchBar:_searchBar contentsController:self]; 124 | _displayController.delegate = self; 125 | _displayController.searchResultsDataSource = self; 126 | _displayController.searchResultsDelegate = self; 127 | } 128 | 129 | 130 | - (void) initLocation 131 | { 132 | if(nil == _locationManager) 133 | { 134 | _locationManager = [[CLLocationManager alloc] init]; 135 | 136 | } 137 | 138 | if([[[UIDevice currentDevice] systemVersion] floatValue] >= 8.0) 139 | { 140 | [_locationManager requestAlwaysAuthorization]; 141 | } 142 | } 143 | 144 | - (void) initMapView{ 145 | 146 | _mapView = [[MKMapView alloc] initWithFrame:CGRectMake(0, 21, CGRectGetWidth(self.view.bounds), CGRectGetHeight(self.view.bounds))]; 147 | _mapView.delegate = self; 148 | 149 | _mapView.showsUserLocation = YES; 150 | 151 | [_mapView setUserTrackingMode:MKUserTrackingModeFollow]; 152 | 153 | 154 | [self.view addSubview:_mapView]; 155 | 156 | } 157 | 158 | - (void)initSearch 159 | { 160 | _search = [[AMapSearchAPI alloc] initWithSearchKey:APIKey Delegate:self]; 161 | _search.language = AMapSearchLanguage_en; 162 | } 163 | 164 | 165 | #pragma mark - Life Cycle 166 | 167 | - (void)viewDidLoad { 168 | [super viewDidLoad]; 169 | // Do any additional setup after loading the view, typically from a nib. 170 | 171 | _tips = [NSMutableArray array]; 172 | 173 | [self initLocation]; 174 | 175 | [self initMapView]; 176 | 177 | [self initSearch]; 178 | 179 | [self initSearchBar]; 180 | 181 | [self initSearchDisplay]; 182 | 183 | } 184 | 185 | 186 | #pragma mark - MKMapViewDelegate 187 | 188 | - (void)mapView:(MKMapView *)mapView didUpdateUserLocation:(MKUserLocation *)userLocation 189 | { 190 | _currentLocation = [userLocation.location copy]; 191 | 192 | if(_currentLocation) 193 | { 194 | [self reverseGeocoding]; 195 | } 196 | } 197 | 198 | #pragma mark - AMapSearchDelegate 199 | 200 | - (void)searchRequest:(id)request didFailWithError:(NSError *)error 201 | { 202 | NSLog(@"request :%@, error :%@", request, error); 203 | } 204 | 205 | - (void)onReGeocodeSearchDone:(AMapReGeocodeSearchRequest *)request response:(AMapReGeocodeSearchResponse *)response 206 | { 207 | NSLog(@"response :%@", response); 208 | 209 | NSString *title = response.regeocode.addressComponent.city; 210 | if (title.length == 0) 211 | { 212 | title = response.regeocode.addressComponent.province; 213 | } 214 | 215 | _mapView.userLocation.title = title; 216 | _mapView.userLocation.subtitle = response.regeocode.formattedAddress; 217 | 218 | } 219 | 220 | /* 输入提示回调. */ 221 | - (void)onInputTipsSearchDone:(AMapInputTipsSearchRequest *)request response:(AMapInputTipsSearchResponse *)response 222 | { 223 | [_tips setArray:response.tips]; 224 | 225 | [_displayController.searchResultsTableView reloadData]; 226 | } 227 | 228 | /* POI 搜索回调. */ 229 | - (void)onPlaceSearchDone:(AMapPlaceSearchRequest *)request response:(AMapPlaceSearchResponse *)respons 230 | { 231 | if (respons.pois.count == 0) 232 | { 233 | return; 234 | } 235 | 236 | NSMutableArray *poiAnnotations = [NSMutableArray arrayWithCapacity:respons.pois.count]; 237 | 238 | [respons.pois enumerateObjectsUsingBlock:^(AMapPOI *obj, NSUInteger idx, BOOL *stop) { 239 | 240 | [poiAnnotations addObject:[[POIAnnotation alloc] initWithPOI:obj]]; 241 | 242 | }]; 243 | 244 | /* 将结果以annotation的形式加载到地图上. */ 245 | [_mapView addAnnotations:poiAnnotations]; 246 | 247 | /* 如果只有一个结果,设置其为中心点. */ 248 | if (poiAnnotations.count == 1) 249 | { 250 | _mapView.centerCoordinate = [poiAnnotations[0] coordinate]; 251 | } 252 | /* 如果有多个结果, 设置地图使所有的annotation都可见. */ 253 | else 254 | { 255 | [_mapView showAnnotations:poiAnnotations animated:NO]; 256 | } 257 | } 258 | 259 | #pragma mark - UISearchBarDelegate 260 | 261 | - (void)searchBarSearchButtonClicked:(UISearchBar *)searchBar 262 | { 263 | // NSString *key = searchBar.text; 264 | 265 | AMapTip *tip = _tips[0]; 266 | [self clearAndSearchGeocodeWithKey:tip.name adcode:tip.adcode]; 267 | 268 | [_displayController setActive:NO animated:NO]; 269 | 270 | _searchBar.placeholder = tip.name; 271 | } 272 | 273 | #pragma mark - UISearchDisplayDelegate 274 | 275 | - (BOOL)searchDisplayController:(UISearchDisplayController *)controller shouldReloadTableForSearchString:(NSString *)searchString 276 | { 277 | [self searchTipsWithKey:searchString]; 278 | 279 | return YES; 280 | } 281 | 282 | #pragma mark - UITableViewDataSource 283 | 284 | - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section 285 | { 286 | return _tips.count; 287 | } 288 | 289 | - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath 290 | { 291 | static NSString *tipCellIdentifier = @"tipCellIdentifier"; 292 | 293 | UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:tipCellIdentifier]; 294 | 295 | if (cell == nil) 296 | { 297 | cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle 298 | reuseIdentifier:tipCellIdentifier]; 299 | } 300 | 301 | AMapTip *tip = _tips[indexPath.row]; 302 | 303 | cell.textLabel.text = tip.name; 304 | cell.detailTextLabel.text = tip.adcode; 305 | 306 | return cell; 307 | } 308 | 309 | #pragma mark - UITableViewDelegate 310 | 311 | - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath 312 | { 313 | AMapTip *tip = _tips[indexPath.row]; 314 | 315 | [self clearAndSearchGeocodeWithKey:tip.name adcode:tip.adcode]; 316 | 317 | [_displayController setActive:NO animated:NO]; 318 | 319 | _searchBar.placeholder = tip.name; 320 | } 321 | 322 | 323 | 324 | @end 325 | -------------------------------------------------------------------------------- /HelloAmap/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // HelloAmap 4 | // 5 | // Created by 王菲 on 14-12-30. 6 | // Copyright (c) 2014年 autonavi. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "AppDelegate.h" 11 | 12 | int main(int argc, char * argv[]) { 13 | @autoreleasepool { 14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /HelloAmapTests/HelloAmapTests.m: -------------------------------------------------------------------------------- 1 | // 2 | // HelloAmapTests.m 3 | // HelloAmapTests 4 | // 5 | // Created by 王菲 on 14-12-30. 6 | // Copyright (c) 2014年 autonavi. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | 12 | @interface HelloAmapTests : XCTestCase 13 | 14 | @end 15 | 16 | @implementation HelloAmapTests 17 | 18 | - (void)setUp { 19 | [super setUp]; 20 | // Put setup code here. This method is called before the invocation of each test method in the class. 21 | } 22 | 23 | - (void)tearDown { 24 | // Put teardown code here. This method is called after the invocation of each test method in the class. 25 | [super tearDown]; 26 | } 27 | 28 | - (void)testExample { 29 | // This is an example of a functional test case. 30 | XCTAssert(YES, @"Pass"); 31 | } 32 | 33 | - (void)testPerformanceExample { 34 | // This is an example of a performance test case. 35 | [self measureBlock:^{ 36 | // Put the code you want to measure the time of here. 37 | }]; 38 | } 39 | 40 | @end 41 | -------------------------------------------------------------------------------- /HelloAmapTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | com.autonavi.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | HelloAmapForEnglish 2 | =================== 3 | 4 | 全英文地图解决方案 5 | --------------------------------------------------------------------------------