You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Your code is not working correctly for rectangle shapes with 4 points.
Try first this coordinates
var coords = [
{'lat' : '50.157913235507706', 'lon' : '29.900512524414125'},
{'lat' : '50.74029471119741', 'lon' : '31.146087475586'},
{'lat' : '50.74029471119741', 'lon' : '29.900512524414125'},
{'lat' : '50.15791323550770611', 'lon' : '31.146087475586'}
];
var centrePoint = new google.maps.LatLng(50.5, 30.0);
This example works incorrectly
And than change a little last point lat. F.e.
{'lat' : '50.17791323550770611', 'lon' : '31.146087475586'}
This one is good
The text was updated successfully, but these errors were encountered:
Your code is not working correctly for rectangle shapes with 4 points.
Try first this coordinates
var coords = [
{'lat' : '50.157913235507706', 'lon' : '29.900512524414125'},
{'lat' : '50.74029471119741', 'lon' : '31.146087475586'},
{'lat' : '50.74029471119741', 'lon' : '29.900512524414125'},
{'lat' : '50.15791323550770611', 'lon' : '31.146087475586'}
This example works incorrectly
And than change a little last point lat. F.e.
{'lat' : '50.17791323550770611', 'lon' : '31.146087475586'}
This one is good
The text was updated successfully, but these errors were encountered: