首页 / 浏览问题 / WebGIS / 问题详情
iclient-leaflet 地图默认铺满全屏需要怎么写
65EXP 2021年01月15日

div宽高默认100% 但是地图只占了一点点。需求是充满全屏。

<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,735EXP 2021年01月15日
范例代码里面 include-web.js 那个下载的包里没看见有啊

范例代码里面引用的js包需要去iclient官网下载离线的三方库:https://iclient.supermap.io/download/download.html

...