獲取的到的是面的數據格式是
需要先轉成polygon。
let _points = JSON.parse(that.hotZone).coordinates
this.polygonFeature = new Feature({
geometry: new Polygon(_points)
})
然後在點擊map的singleclick裏面
let geo = that.polygonFeature.getGeometry()
that.isIn = geo.intersectsCoordinate(that.clickPoint); // clickPoint爲map點擊的座標
if(that.isIn) {
console.log("該mark點在當前幾何元素裏。");
}`