I draw three polygons on a Google map that the first is in the second and the second in the third. I want to subtract them in javascript as another form.
P3-P2? P2-P1?
Lighter than I thought:
var poly1Area = google.maps.geometry.spherical.computeArea(poly1.getPath()); var poly2Area = google.maps.geometry.spherical.computeArea(poly2.getPath()); var poly3Area = google.maps.geometry.spherical.computeArea(poly3.getPath()); poly2Area = poly2Area - poly1Area; poly3Area = poly3Area - poly2Area;
ref: https://developers.google.com/maps/documentation/javascript/reference?csw=1#spherical
Source: https://habr.com/ru/post/1794527/More articles:Zend RSS feed pubDate time formatting - datetimeWhy should I study vi? - editorHow can we customize the grails siro v1.1.3 plugin? - grailsAn argument exception thrown in form.ShowDialog () when I change the sort order of the form data grid - debuggingWhat is a good query builder that can parse and rebuild SQL queries in PHP 5.3? - sqlHow can I get the distance from Google maps javascript api v3 - javascriptMef imports all types that implement the interface specified at runtime - c #https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1794531/how-do-i-add-custom-module-distributions-to-my-local-cpan-mirror&usg=ALkJrhios1J6eDopMMoDri0vxYCAUWdXbACreating a daemon for jailbroken iOS - iosУстановленная служба Win не отображается в Service Manager - c#All Articles