문제

I have map with 30-50 polygons on it. There are like 4000 points in every polygon but they are hidden at beginning. I want to disply the point only when zoom is <=6 but not all of the point but only ones related to the currently displayed polygon(s). So I need to get the polygons in view (displayed in this moment on the screen).
Do you know how to get the polys in view ? ps.Im working with javascript

도움이 되었습니까?

해결책

Wont be quick if you have complex or lots of polygons but works (assumes v7 api):

https://gist.github.com/1704172

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top