在基于focla点的坐标系上绘制一条椭圆线? [英] Draw an eliptical line on a coordinate system based on focla points?

查看:80
本文介绍了在基于focla点的坐标系上绘制一条椭圆线?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Google地图上画一条虚线,所以我不能使用eshape.js.我需要创建一个在坐标系中近似椭圆的点数组.它只是用于显示,因此不必那么精确.

I'm trying to draw a dashed line on a google map, so I can't use eshape.js. I need to create an array of points that approximate an elipse in a coordinate system. It's just for display so it doesn't have to be that precise.

如果有人可以解释一下数学就很好了.如果您在javascript中应用它,会获得额外的信用;)

If someone can just explain the math that's fine. Extra credit if you apply it in javascript ;)

推荐答案

现在,您可以在Google Maps API中执行此操作.最近,Google在折线"中添加了符号",使您可以使用SVG设置线条样式: https://developers.google.com/maps/documentation/javascript/overlays#Symbols

This is now something you can do within the Google Maps API. Recently, Google added Symbols to Polylines, allowing you to use SVG to style your lines: https://developers.google.com/maps/documentation/javascript/overlays#Symbols

这篇关于在基于focla点的坐标系上绘制一条椭圆线?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆