Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在地图中定义一些点,并希望通过单击它们来加入这 2 个点。基本上,功能是识别地图中的位置并通过单线连接它们。出于某种原因,我无法使用谷歌地图 API,并希望使用 JavaScript 来实现这一点。
提前致谢,米兰
使用 HTML 本身的 Javascript 不能在两点之间产生一条线(以任何角度)。但这可以通过: