你好:
我这边用模拟器打开 wms 服务,打开地图是显示的,但是底图需要设置中心点,和比例尺。打开后屏幕是白色的不显示
在打开 wms 服务时候,如果设置 [connInfo setWebVersion:@"1.1.1"]; app 会崩溃,奔溃信息是:
Terminating app due to uncaught exception 'Layers', reason: 'dataset is nil'
*** First throw call stack:
(
0 CoreFoundation 0x0a495bf2 __exceptionPreprocess + 194
1 libobjc.A.dylib 0x0993de66 objc_exception_throw + 52
2 Map 0x0012c699 -[Layers addDataset:ToHead:] + 1065
3 Map 0x000982b3 -[ViewController loadWMSServer] + 947
4 Map 0x000936ef -[ViewController viewDidAppear:] + 79
5 UIKit 0x060f9584 -[UIViewController _setViewAppearState:isAnimating:] + 955
6 UIKit 0x060f9d19 -[UIViewController __viewDidAppear:] + 156
7 UIKit 0x060fc785 __64-[UIViewController viewDidMoveToWindow:shouldAppearOrDisappear:]_block_invoke + 57
8 UIKit 0x060fa769 -[UIViewController _executeAfterAppearanceBlock] + 91
9 UIKit 0x05f332a6 _runAfterCACommitDeferredBlocks + 726
10 UIKit 0x05f1d9a2 _cleanUpAfterCAFlushAndRunDeferredBlocks + 624
11 UIKit 0x05f44734 __84-[UIApplication _handleApplicationActivationWithScene:transitionContext:completion:]_block_invoke_2 + 207
12 CoreFoundation 0x0a434e20 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 16
13 CoreFoundation 0x0a418d4c __CFRunLoopDoBlocks + 348
14 CoreFoundation 0x0a418422 __CFRunLoopRun + 1106
15 CoreFoundation 0x0a417d5b CFRunLoopRunSpecific + 395
16 CoreFoundation 0x0a417bbb CFRunLoopRunInMode + 123
17 GraphicsServices 0x0cbd2b4c GSEventRunModal + 177
18 GraphicsServices 0x0cbd29c7 GSEventRun + 80
19 UIKit 0x05f24ff3 UIApplicationMain + 148
20 Map 0x000b58a9 main + 137
21 libdyld.dylib 0x0a9c8799 start + 1
)
libc++abi.dylib:
(lldb)
服务器信息,和代码信息,我放在了截图里,谢谢。