3

everyone. Recently, we have encountered a problem about the boundary on Google Map.

We have received lots of points which are the objects as 'new google.maps.LatLng(lat,lng)'. Then, how to draw or make the boundary of this chunk. Or how to find the points (LatLng, used to draw the polygon) on the boundary, is there any JS arithmetic ?

Just like one story: we receive many sheep(points) as presents, so how to build the sheepfold with clear boundary for them ?

Thank you very much for any reply !!!

4

2 に答える 2

1

var bound = new google.maps.LatLngBounds(); そして、境界を拡張します bound.extend(new google.maps.LatLng(lat,lng));

于 2012-11-20T09:38:57.433 に答える