SF_GaoDeMAP
SF_GaoDeMAP copied to clipboard
iOS地图围栏功能无法使用,方便提供下使用方式吗?
我的demo里面都能使用,你能把你报的错贴出来吗
------------------ 原始邮件 ------------------ 发件人: "deng690990/SF_GaoDeMAP" <[email protected]>; 发送时间: 2020年11月17日(星期二) 下午2:42 收件人: "deng690990/SF_GaoDeMAP"<[email protected]>; 抄送: "Subscribed"<[email protected]>; 主题: [deng690990/SF_GaoDeMAP] iOS地图围栏功能无法使用,方便提供下使用方式吗? (#6)
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.
先执行initMapView显示自己的位置,再执行initMapViewWithGeofraphyBlock 方法,围栏区域不显示
执行initMapViewWithGeofraphyBlock,就不用执行initMapView,还有一种可能,就是你的围栏离你自己的定位有点远,超出当前屏幕所能看到的范围了,你只需要在block里调用一句代码:configModel.centerCoordinate = _manager.currentLocation.coordinate;
或者你把你的地图的中心点设成你围栏的中心点:_manager.mapView.centerCoordinate = configModel.centerCoordinate;