I have the latitude and the longitude of view of map ( latitude and longitude of north west and the latitude and longitude of southeast ) and a geojson files with MultiPolygon. (43mo)
In PHP i want to detect if a polygon is in view.
test they 2 point (NW & SE) if is in polygons is not a good way because polygons is imprevisible https://upload.wikimedia.org/wikipedia/commons/thumb/8/81/Rectangle_definition.svg/2000px-Rectangle_definition.svg.png in this case the result found is the corner NW and SE but the center and ne and sw not found
I need to know what are in view
example with this view:
I test NW and SE (of view) if is in polygon on center -> return false
but i see the polygon on center
how i can know all polygons in actual view ?