开发者

How do I take a rough polygon and make it a bezier curve with the Google Maps API?

开发者 https://www.devze.com 2023-02-10 11:58 出处:网络
Let\'s say I have an array of LatLng points which make up a polygon.Is there anyway to smooth it out to look more curve like.

Let's say I have an array of LatLng points which make up a polygon. Is there anyway to smooth it out to look more curve like.

I imagine it would require some kind of processing to insert points into the array with some 开发者_开发知识库some sort of threshold to prevent the points from getting too numerous.


The best you could do is use the curve to draw the curve between each of your LatLng points. There isn't a built in algorithm to add in points etc. You would have to do that on the backend yourself.

Somebody else may have already done it themselves on the backend so I would suggest doing a search before reinventing the wheel yourself.

Sorry its the really the answer you were looking for....

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号