效果图:实现代码:<template><divid="map"style="width:100vw;height:100vh"/></template><script>import"ol/ol.css";importTileLayerfrom"ol/layer/Tile";importVectorLayerfrom"ol/layer/Vector";importVectorSourcefrom"ol/source/Vector";importXYZfrom"ol/source/XYZ";import{Map,View,Feature}from"ol";import{Style,Circle,Stroke}from"ol/style";import{Point}from"ol/geom";imp...
继续阅读 >