首页 / 浏览问题 / WebGIS / 问题详情
iclient-leaflet 初始化时地图在div只显示一半
65EXP 2021年01月15日

iclient-leaflet 初始化时地图在div只显示一半

<style type="text/css">
		.body-box {
			margin: 0;
			overflow: hidden;
			background: #fff;
			width: 100%;
			height: 100%;
			position: absolute;
			top: 0;
		}

		.map-box-view {
			height: 100%;
			width: 100%;
			margin: 0 auto;
			background-color: #01172a;
		}
	</style>

问题关闭原因: 已解决

1个回答

你好,你参考我们官网的范例代码可以实现你的需求:https://iclient.supermap.io/examples/leaflet/editor.html#01_tiledMapLayer3857

3,740EXP 2021年01月15日
...