Is it possible to draw polygons along Google Maps Polyline?

المشرف العام

Administrator
طاقم الإدارة
Web application has option that user draws polyline on Google Map. After he draws it, there is a button 'Add polygons', which should draw polygons along that line, based on some width and height in meters. After polygons are drawn, polyline should be removed. All polygons should have right side joined with next one (should share one side with next one). I don't know from where should I start, is it possible to draw polygon based on distance (m) from line, how to draw polygons so that they share one side?

It's clear that upper and bottom side won't be the same, that doesn't matter. Width doesn't have to be exact.

This is polyline:

myPath = new google.maps.Polyline({ path: flightPlanCoordinates, geodesic: true, strokeColor: '#FF0000', strokeOpacity: 1.0, strokeWeight: 4, editable: true }); This is fast sketch, just to get an idea what I'm talking about.




أكثر...
 
أعلى