美文网首页
高德地图

高德地图

作者: yuezishenyou | 来源:发表于2017-11-07 16:22 被阅读0次

架构:http://www.infoq.com/cn/news/2016/03/lixianhui-interview
零星记录笔记
1.用户定位点精度圈不要了

self.mapView.customizeUserLocationAccuracyCircleRepresentation = YES;

- (MAOverlayRenderer *)mapView:(MAMapView *)mapView rendererForOverlay:(id <MAOverlay>)overlay
{
    /* 自定义定位精度对应的MACircleView. */
    if (overlay == mapView.userLocationAccuracyCircle)
    {
        MACircleRenderer *accuracyCircleRenderer = [[MACircleRenderer alloc] initWithCircle:overlay];
        
        accuracyCircleRenderer.lineWidth    = 2.f;
        accuracyCircleRenderer.strokeColor  = [UIColor lightGrayColor];
        accuracyCircleRenderer.fillColor    = [UIColor colorWithRed:1 green:0 blue:0 alpha:.3];
        
        return accuracyCircleRenderer;
    }
    
    return nil;
}

相关文章

网友评论

      本文标题:高德地图

      本文链接:https://www.haomeiwen.com/subject/scujmxtx.html