When the map gets too small because of a resize, the attribution will be collapsed. This is because the
当地图因为重新调整大小而变得太小时,attribution控件将会折叠起来,这是因为当地图的宽小于600像素时attribution控件的collapsible属性会设置为true。
代码:
collapsible
option is set to true if the width of the map gets smaller than 600 pixels.
当地图因为重新调整大小而变得太小时,attribution控件将会折叠起来,这是因为当地图的宽小于600像素时attribution控件的collapsible属性会设置为true。
代码:
<!DOCTYPE html>
<html>
<head>
<title>Attributions</title>
<link rel="stylesheet" href="https://openlayers.org/en/v4.2.0/css/ol.css" type="text/css">
<!-- The line below is only needed for old envi