全屏控制
单击右上角的控件以全屏显示。再次单击它以退出全屏。
如果地图上没有按钮,则您的浏览器不支持全屏API。
<!DOCTYPE html><html>
<head>
<title>Full Screen Control</title>
<link rel="stylesheet" href="https://openlayers.org/en/v5.1.3/css/ol.css" type="text/css">
<!-- The line below is only needed for old environments like Internet Explorer and Android 4.x -->
<script src="https://cdn.polyfill.io/v2/po