<!doctype html>
<html>
<head>
<title>Simple Select</title>
<link rel="stylesheet" href="https://openlayers.org/en/v4.6.4/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/polyfill.min.js?features=requestAnimationFrame,Element.prototype.classList,URL"></script>
<script src="https://openlayers.org/en/v4.6.4/build/ol.js"></script>
</head>
<body>
<input type="button" οnclick="DeleteFeature()" value="删除">
<div id="map" class="map"></div>
<script>
var image = new ol.style.Circle({
radius: 5,
fill: null,
stroke: new ol.style.Stroke({color: 'red', width: 1})
})
ol4实现针对选定图层的选择和删除功能
最新推荐文章于 2024-06-11 09:44:23 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)