Swift:在具有群集的地图上缩小时崩溃

朱塞佩·萨拉

我有地图和很多图钉的视图。我将图钉聚集在一起,当我放大以显示单个注释时,所有方法都起作用。当我尝试缩小时,应用程序崩溃。

我有此错误消息,但我不是那么容易理解问题。

我在Google和StackOverflow内部进行了搜索,但没有成功。

我已经看过:iOS:缩小地图时应用程序崩溃

谁能帮我?预先感谢您能给我所有的答案。

*由于未捕获的异常'NSInvalidArgumentException'而终止应用程序,原因:'* -[__ NSDictionaryM setObject:forKey:]:密钥不能为零。***首次抛出调用堆栈:(0 CoreFoundation 0x000000010f98b1ab __exceptionPreprocess + 171

1 libobjc.A.dylib  0x000000010a909f41 objc_exception_throw + 48

2 CoreFoundatio    0x000000010f9caf9c _CFThrowFormattedException + 194

3 CoreFoundation   0x000000010f89f918 -[__NSDictionaryM setObject:forKey:] + 952

4 MapKit           0x000000010be8007a -[MKNewAnnotationContainerView _existingClusterViewsForClusterID:] + 174

5 MapKit           0x000000010be7f79c -[MKNewAnnotationContainerView addAnnotationView:allowAnimation:] + 173

6 MapKit           0x000000010bdf99f0 -[MKMapView addAnnotationRepresentation:allowAnimation:] + 727

7 MapKit           0x000000010beb6420 -[MKAnnotationManager _addRepresentationForAnnotation:] + 838

8 MapKit           0x000000010beb45b2 -[MKAnnotationManager addRepresentationsForAnnotations:] + 494

9 MapKit           0x000000010bdf1661 -[MKMapView annotationContainer:requestAddingClusterForAnnotationViews:] + 675

10 MapKit          0x000000010be80260 -[MKNewAnnotationContainerView _updateClusterableAnnotationViews:withID:] + 461

11 CoreFoundation  0x000000010f90fea2 -[__NSDictionaryM enumerateKeysAndObjectsWithOptions:usingBlock:] + 226

12 MapKit          0x000000010be8125e -[MKNewAnnotationContainerView updateAnnotationViewsForReason:] + 299

13 MapKit          0x000000010bf7b17a -[MKAnnotationContainerView finishAddingAnnotationViews] + 29

14  MapKit         0x000000010bdfa315 -[MKMapView annotationManager:didAddAnnotationRepresentations:] + 53

15  MapKit         0x000000010beb5737 -[MKAnnotationManager updateVisibleAnnotations] + 1876

16  MapKit         0x000000010bde81b2 -[MKMapView _didChangeRegionMidstream:] + 223

17  MapKit         0x000000010bded5a1 -[MKMapView mapLayer:didChangeRegionAnimated:] + 79

18  VectorKit      0x0000000113e09125 -[VKMapView map:didChangeRegionAnimated:] + 122

19  VectorKit      0x0000000113e84e3b __58-[VKMapCameraController zoom:withPoint:completionHandler:]_block_invoke.145 + 62

20  VectorKit      0x0000000113e3b97d -[VKAnimation stopAnimation:] + 109

21  VectorKit      0x0000000113e3bd65 -[VKTimedAnimation stopAnimation:] + 47

22  VectorKit      0x0000000113e3be47 -[VKTimedAnimation onTimerFired:] + 47

23  VectorKit      0x0000000113db5e46 _ZN2md16AnimationManager12onTimerFiredEd + 298

24  VectorKit      0x000000011405bff1 _ZN2md9MapEngine11layoutSceneEdb + 85

25  VectorKit      0x000000011405bf85 -[_MapEngineRenderQueueSource renderQueueForTimestamp:] + 27

26  VectorKit      0x000000011411d10c -[MDDisplayLayer drawToTexture:withTimestamp:completionHandler:prepareHandler:] + 139

27  VectorKit      0x000000011427222f __33-[GGLOpenGLESLayer onTimerFired:]_block_invoke + 87

28  VectorKit      0x0000000114279ad7 _ZN3ggl10OESContext17performWhileBoundEU13block_pointerFvvE + 163

29  VectorKit      0x0000000114271ff7 -[GGLOpenGLESLayer onTimerFired:] + 111

30  VectorKit      0x000000011405f031 _ZN2md9MapEngine11renderSceneEdNSt3__18functionIFvvEEE + 93

31  VectorKit      0x000000011405d8cc _ZN2md9MapEngine18onRenderTimerFiredEd + 158

32  VectorKit      0x00000001142750f8 _ZN3ggl11DisplayLink12onTimerFiredEd + 32

33  VectorKit      0x0000000114274ffa -[_GGLDisplayLinkTarget displayLinkFired:] + 81

34  QuartzCore     0x000000010c268778 _ZN2CA7Display11DisplayLink14dispatch_itemsEyyy + 684

35  QuartzCore     0x000000010c3a4970 _ZL22display_timer_callbackP12__CFMachPortPvlS1_ + 248

36  CoreFoundation 0x000000010f91a9c9 __CFMachPortPerform + 169

37  CoreFoundation 0x000000010f91a909 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 41

38  CoreFoundation 0x000000010f91a871 __CFRunLoopDoSource1 + 465

39  CoreFoundation 0x000000010f912654 __CFRunLoopRun + 2596

40  CoreFoundation 0x000000010f9119b9 CFRunLoopRunSpecific + 409

41  GraphicsServices 0x0000000115b389c6 GSEventRunModal + 62

42  UIKit          0x000000010c523948 UIApplicationMain + 159

43  atriptoitaly   0x0000000109f3dfd7 main + 55

44  libdyld.dylib  0x0000000110ab7d81 start + 1) libc++abi.dylib: terminating with uncaught exception of type NSException
朱塞佩·萨拉

好吧,在寻找解决方案的过程中,我在Apple开发者论坛中找到了这个https://forums.developer.apple.com/message/271061#271061

我希望这对某人有用

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

在Android上缩小时,Skobbler注释会从地图上消失

在具有interface {}值的地图上实现String()

Python:如何在具有散点图的地图上绘制数组?

在具有GPS坐标的iOs地图上创建折线

当容器div缩小时,谷歌地图消失

放大/缩小时Google地图冻结

在Google地图上添加标记时崩溃

页脚为浮动div,具有居中内容-缩小时保持居中

仅在具有多个地图的网络中的最后一张地图上显示地图标记

想通过swiftUI中的按钮在地图上显示放大缩小

具有RAID的HDP群集?

在ggplot2中的地图上的点周围绘制具有一定半径的圆

如何在谷歌地图上添加具有不同图标的标记?

如何在具有许多点(纬度和经度)的反应本机地图上绘制折线?

如何在地图上覆盖具有给定坐标的矩形?

如何在单个地图上使用具有渐变效果的 FIP 绘制特定的美国县

从不同的表格中获取地图位置,并将其显示在一张具有不同颜色的地图上

在Swift 3中获取地图上的路线

Swift 3 - 在地图上显示坐标

在带有MapKit的地图上通过图钉显示自定义位置(Swift)

Swift REPL模式具有反射的随机崩溃

Flutter-Google地图调整大小时崩溃

GeoJSON MultiPoint没有显示在地图上

如何删除地图上的所有圈子

为什么地图上没有按键

从地图上删除所有标记

Twostep群集spss显示具有群集编号的列

具有地图的ParallelStream

OSMnx:在交互式网络地图上绘制网络,每个基础设施具有不同的颜色