SF_GaoDeMAP icon indicating copy to clipboard operation
SF_GaoDeMAP copied to clipboard

iOS地图围栏功能无法使用,方便提供下使用方式吗?

Open HJT916109796 opened this issue 4 years ago • 4 comments

HJT916109796 avatar Nov 17 '20 06:11 HJT916109796

我的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.

deng690990 avatar Nov 17 '20 06:11 deng690990

先执行initMapView显示自己的位置,再执行initMapViewWithGeofraphyBlock 方法,围栏区域不显示

HJT916109796 avatar Nov 19 '20 01:11 HJT916109796

执行initMapViewWithGeofraphyBlock,就不用执行initMapView,还有一种可能,就是你的围栏离你自己的定位有点远,超出当前屏幕所能看到的范围了,你只需要在block里调用一句代码:configModel.centerCoordinate = _manager.currentLocation.coordinate;

deng690990 avatar Nov 23 '20 09:11 deng690990

或者你把你的地图的中心点设成你围栏的中心点:_manager.mapView.centerCoordinate = configModel.centerCoordinate;

deng690990 avatar Nov 23 '20 09:11 deng690990