地图定位无法选择

tis 4天前 51

下面没有搜索出相关数据,是不是需要配置相关key之类的,有demo配置的地方吗

上传的附件:
最新回复 (8)
  • HeavyRain 4天前
    引用 2
    这是模拟器还是真机?
  • tis 4天前
    引用 3
    真机。这边应该没什么设置的。我刚刚下载appstore的野火demo,可以选择,但是在我们项目里面就无法显示
  • HeavyRain 3天前
    引用 4
    要不就是没有允许获取地理位置的权限
  • HeavyRain 3天前
    引用 5
    从设置里看一下app的权限有没有地理位置,有没有打开
  • tis 1天前
    引用 6
    都确认了开启了,代码大了断点了, [self.geoCoder reverseGeocodeLocation:location
                            completionHandler:^(NSArray *placemarks, NSError *error) {
             if (!error) {
                 CLPlacemark *mark = [placemarks firstObject];
                 ws.marks = [placemarks mutableCopy];
                 NSArray *lines = mark.addressDictionary[@"FormattedAddressLines"];
                 NSString *title = [lines componentsJoinedByString:@"\n"];
                
                 WFCULocationPoint *ponit = [[WFCULocationPoint alloc] initWithCoordinate:locationCoordinate2D andTitle:nil];
                 [ws.mapView addAnnotation:ponit];
                 ws.locationPoint = [[WFCULocationPoint alloc] initWithCoordinate:locationCoordinate2D andTitle:title];;
                 ws.sendButton.enabled = YES;
                 ws.title = title;
                 [ws.locationTableView reloadData];
             } else {
                 ws.locationPoint = nil;
                 ws.sendButton.enabled = NO;
                 ws.title = WFCString(@"Location");
             }
         }];这边是error,野火这边有特殊处理吗,没开权限应该走不到这个回调
  • tis 1天前
    引用 7
    location 这个坐标我换成固定地址也不返回结果
  • HeavyRain 1天前
    引用 8
    我这边用demo测试都是可以的。不知道为啥你那里不行。这块儿选择位置的代码全都是开源的,你想办法debug一下吧
  • tis 1天前
    引用 9
    奇了怪了,我有2个app接入了野火,结果宁外一个是好的 ,这个就是不行
返回