百度地图开发总结
来源:互联网 发布:7u分享网络怎么提现 编辑:程序博客网 时间:2024/06/04 23:26
//点击大头针触发事件
-(void)mapView:(BMKMapView *)mapView didSelectAnnotationView:(BMKAnnotationView *)view
2.BMKAnnotationView有tag值可以获取到点击的那个大头针
例如:
-(void)mapView:(BMKMapView *)mapView
didSelectAnnotationView:(BMKAnnotationView *)view
{
if ([view isKindOfClass:[CustomBMKAnnotationView class]]) {
if (((CustomBMKAnnotationView *)view).type >= 0) {
self.model = self.dangerArray[((CustomBMKAnnotationView *)view).type];
WS(weakSelf);
[UIView animateWithDuration:0.3 animations:^{
weakSelf.av.bottomView.frame = CGRectMake(0, kScreenHeight - 90, kScreenWidth, 90);
weakSelf.av.locationButton.frame = CGRectMake(CGRectGetWidth(weakSelf.av.mapView.frame) - 45, CGRectGetHeight(weakSelf.av.mapView.frame) - 45 - 90, 30, 30);
}];
}
}
else if([view isKindOfClass:[CircleAnnotationView class]])
{
//点击大头针变色,滚动到相应行数
NSIndexPath *indexPath = [NSIndexPath indexPathForRow:((CircleAnnotationView *)view).type inSection:0];
[self.av.hotTableView scrollToRowAtIndexPath:indexPath atScrollPosition:(UITableViewScrollPositionTop) animated:YES];
}
else if ([view isKindOfClass:[BMKAnnotationView class]])
{
NSIndexPath *indexPath = [NSIndexPath indexPathForRow:view.tag inSection:0];
[self.av.hotTableView scrollToRowAtIndexPath:indexPath atScrollPosition:(UITableViewScrollPositionTop) animated:YES];
}
}
- 百度地图开发总结
- 百度地图开发总结
- android百度地图开发总结
- 百度地图API -- 开发总结
- android百度地图开发总结
- Android百度地图Poi检索开发总结
- 百度地图 -- 离线地图开发
- 百度地图开发总结----1.在网页上使用百度地图(默认的)
- 百度地图总结
- 百度地图总结
- 百度地图学习总结
- 百度地图:建立百度地图开发环境)
- 百度地图开发总结----2.标注和信息弹窗
- 一个高度使用百度地图的App开发实践总结
- 开发百度地图
- 百度地图开发
- android 开发百度地图
- Android百度地图开发
- UML之构件图、部署图
- undefined并不是null,数组可以使用名字当索引
- ORACLE --- 常用知识
- CentOS 6.4_64下安装LANMP_WDCP2.5以及升级PHP、MYSQL版本流程
- 使用Navicat for Mysql连接装在虚拟机Ubuntu16.04上的mysql服务器
- 百度地图开发总结
- POJ 3185 The Water Bowls(开关问题)
- 【NOIP模拟】鼎纹
- 复数的指数表示
- 从无到有系列之HBase-入门操作02
- Hbase Mapreduce操作
- MongoDB C++ 数组的写操作
- arcgis engine GP重分类格式 remap
- iOS开发:如何跳到系统设置里的各种设置界面