매핑 내 코드입니다 : broblem이체크 포인트는 여기
var posmark = markerarr["535413"].getPosition();
console.log(posmark);
// **Console.log** ▲
Ya: 41.64272
Za: 41.65764999999999
//
var posshp = poli_arr.s1;
console.log(posshp);
// **Console.log** ▲
Zl: yo
__e3_: Object
__gm_id: 252
b: null
center: P
fillColor: "#FF0000"
fillOpacity: 0.35
gm_accessors_: Object
map: null
radius: 100
strokeColor: "#FF0000"
strokeOpacity: 0.8
strokeWeight: 2
__proto__: c
//
var res = google.maps.geometry.poly.containsLocation(posmark, posshp);
console.log(res);
//**Console.log** ▲
Uncaught TypeError: Cannot call method 'getLength' of undefined
//
입니까? 나는 그것을 고칠 수 없다 ... 나는 폴리곤 존에 존재한다면 체크 마커를 원한다. 만약 누군가 poligon 반경으로 마커를 확인하는 더 좋은 방법을 알고 있다면, 내가 어떻게하면 더 잘할 수 있는지 나에게 다시 말해주세요. 감사합니다
감사하지만 지금은 경계가 항상 사각형 될 것 솔루션 : – Dest
참고이 때문에 일부 지역 (모서리의 원 주위의 경계)는 정답을 반환하지 않습니다. – geocodezip