首页 / 浏览问题 / 移动GIS / 问题详情
iMobile Lite 10i 加载地图url怎么使用https的地址
4EXP 2022年07月05日

根据文档使用addLayer(),发现只能使用http的地图,不能使用https的

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
    MapView mapView = this.findViewById(R.id.mapView);
    LayerView layerView = new LayerView(this);
    layerView.setURL(DEFAULT_URL);
    mapView.setBuiltInZoomControls(true);
    mapView.addLayer(layerView);
}

seturl的时候https的地址就无法显示地图 

1个回答

您好,请问您在使用imobile lite添加https地图的时候遇到了什么样的情况呢,是出现了错误呢还是只是没有图层呢,如果出现了报错,还请您提供报错信息。
3,405EXP 2022年07月05日
不显示图层。没有报错

您好,supermap imobile lite现在已经开源,建议您使用supermap imobile for Android,您可以查看我们的产品生命周期PowerPoint 演示文稿 (supermap.com.cn)

希望可以帮助到您。

I/MapView: LayView:bygt0821 第 1 次初始化地图参数失败,错误消息为:INITIALIZED_FAILED:key(LAYERVIEW_MAPPARAM_NULL) not found in resources.
W/com.supermap.android.maps.util: getJSON exception:Host name may not be null
I/com.supermap.android.maps.layerview: key(LAYERVIEW_MAPPARAM_NULL) not found in resources.
D/EGL_emulation: eglMakeCurrent: 0xdffc4380: ver 2 0 (tinfo 0xd4907940)
D/EGL_emulation: eglMakeCurrent: 0xdffc4380: ver 2 0 (tinfo 0xd4907940)
I/MapView: LayView:bygt0821 第 2 次初始化地图参数失败,错误消息为:INITIALIZED_FAILED:key(LAYERVIEW_MAPPARAM_NULL) not found in resources.
W/com.supermap.android.maps.util: getJSON exception:Host name may not be null
I/com.supermap.android.maps.layerview: key(LAYERVIEW_MAPPARAM_NULL) not found in resources.

用https的时候会报这个错 

...