首页 / 浏览问题 / 移动GIS / 问题详情
10.3版本初始化地图的时候会卡住7.8秒左右
4EXP 2017年05月02日
//设置申请许可的模块

        NSArray *moduleList = @[CORE_RUNTIME,NAVIGATION_RUNTIME,MAP3D_RUNTIME];

        

        //传入需要申请许可的模块数组和序列号

        [Environment setUserLicInfo:@"----------"  Modules:moduleList];

        

        //设置许可激活回调

        [Environment setLicenseDelegate:self];

        

        [Environment activateDevice];

m_workspace = [[Workspace alloc] init];

        //打开工作空间

        NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);

        NSString *fileName = [[paths objectAtIndex:0] stringByAppendingPathComponent:[SACUserCenter defaultCenter].mapDataPath];

        m_Info = [[WorkspaceConnectionInfo alloc]init];

        m_Info.server = fileName;

        m_Info.type = SM_SMWU;

        BOOL licenseValid = [m_workspace open:m_Info];

iOS10.3版本都有这个问题,请尽快给解决方案,其他版本没有,激活会失败

1个回答

你好,有可能是版本之间的影响,不建议频繁升级版本。我们这边测试下ios10.3,有结果了会尽快回复你
1,742EXP 2017年05月03日
...