测试已测试 | ✗ |
Lang语言 | Obj-CObjective C |
许可证 | MIT |
发布上次发布 | 2016年7月 |
由 Robert Miller 维护。
依赖 | |
VBFPopFlatButton | >= 0 |
GoogleMaps | >= 0 |
AFNetworking | >= 0 |
要运行示例项目,请克隆仓库,并首先从 Example 目录中运行 pod install
。
使用时,声明一个 Google Map 使用 IBOutlet 或 frames @property(nonatomic,retain) GMSMapView *mapView; 或 @property(nonatomic,retain) IBOutlet GMSMapView *mapView; 然后,在您的故事板或 XIB 中连接 Outlet 并声明 tile 管理器 @property(nonatomic,retain) WDTTileManager *tileManager;
如果不使用 outlet,实例化地图 _mapView = [[GMSMapView alloc] initWithFrame:frame];
创建 tile 管理器 _tileManager = [[WDTTileManager alloc] initWithMap:_mapView appKey:kWDTAppKey appID:kWDTAppID delegate:self];
要自定义视图和动画速度 [_tileManager setTopBarBackgroundColor:[UIColor darkGrayColor]]; [_tileManager setBottomBarBackgroundColor:[UIColor darkGrayColor]]; [_tileManager setTintColor:[UIColor grayColor]]; [_tileManager setAnimationTime:0.3];
所有必要的框架都包含在 Podspec 中,但您将需要从 WDT 获取 App Key 和 App Id,并且您需要设置您的 GoogleMaps 密钥以与您的 Bundle Identifier 一起使用。要获取您的 Bundle Identifier,我在示例中包含了一个 NSLog,您可以复制/粘贴,也可以直接转到您的一般项目设置并复制/粘贴 reverse com Bundle Identifier
WDTTileManager 通过 CocoaPods 提供。要安装它,只需将以下行添加到您的 Podfile 中
pod "WDTTileManager"
rjmiller2543,[email protected]
WDTTileManager 在 MIT 许可证下提供。有关更多信息,请参阅 LICENSE 文件。