使用地图坐标绘制线条 [英] Drawing line using map coordinates

查看:74
本文介绍了使用地图坐标绘制线条的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

在我的html页面中,我想添加800x600的图像。现在我想要那个

,当我在这张图片上给出两个坐标时说(x1,y1)=(50,

100)和(x2,y2)=( 200,300),java脚本代码将在图像上跟踪这些

坐标并绘制这两点之间的界线。

任何人都可以帮我写javascript这个

问题的代码?


谢谢和问候

Atif

Hello all,
In my html page I want to add an image say of 800x600. Now I want that
when ever I am given two coordinates on this image say (x1, y1)=(50,
100) and (x2, y2)=(200, 300), the java script code will trace these
coordinates on the image and draw the line between these two points.
Can anyone please help me in writing the javascript code of this
problem?

Thanks and Regards
Atif

推荐答案

Atif写道:
大家好,
在我的html页面中,我想添加800x600的图像。现在我想要那个
当我在这个图像上给出两个坐标时说(x1,y1)=(50,
100)和(x2,y2)=(200,300),java脚本代码将在图像上跟踪这些
坐标并绘制这两点之间的界限。
任何人都可以帮我写这个
问题的javascript代码吗?
Hello all,
In my html page I want to add an image say of 800x600. Now I want that
when ever I am given two coordinates on this image say (x1, y1)=(50,
100) and (x2, y2)=(200, 300), the java script code will trace these
coordinates on the image and draw the line between these two points.
Can anyone please help me in writing the javascript code of this
problem?



据我所知,JavaScript没有绘图功能。我想

想象一下,你能做到这一点的唯一方法就是使用Java

小程序,或其他一些像Flash这样的多媒体对象。


Mike


-

Michael Winter
M。****** @ blueyonder.co.inva 盖子(将.invalid替换为.uk以回复)



As far as I know, JavaScript has no drawing capabilities. I would
imagine that the only way you can accomplish this is using a Java
applet, or some other multimedia object like Flash.

Mike

--
Michael Winter
M.******@blueyonder.co.invalid (replace ".invalid" with ".uk" to reply)


2003年12月24日星期三格林尼治标准时间15:10:26迈克尔·温特

< M。****** @ blueyonder.co.invalid>写道:
On Wed, 24 Dec 2003 15:10:26 GMT, Michael Winter
<M.******@blueyonder.co.invalid> wrote:
Atif写道:
在我的html页面中,我想添加800x600的图像。现在我想要那个
当我在这个图像上给出两个坐标时说(x1,y1)=(50,
100)和(x2,y2)=(200,300),java脚本代码将在图像上跟踪这些
坐标并绘制这两点之间的界限。
任何人都可以帮我写这个
问题的javascript代码吗?
In my html page I want to add an image say of 800x600. Now I want that
when ever I am given two coordinates on this image say (x1, y1)=(50,
100) and (x2, y2)=(200, 300), the java script code will trace these
coordinates on the image and draw the line between these two points.
Can anyone please help me in writing the javascript code of this
problem?


据我所知,JavaScript没有绘图功能。



As far as I know, JavaScript has no drawing capabilities.




它无法真正做任何事情......


但SVG或Flash中的javascript,或VML或VRML或

DirectAnimation都具有很强的绘图能力。我自己推荐SVG




Jim。

-

comp。 lang.javascript常见问题 - http://jibbering.com/faq/



it has no capability to do anything at really...

but javascript in SVG, or Flash, or with VML or VRML or
DirectAnimation all have great drawing abilities. I''d recommend SVG
myself.

Jim.
--
comp.lang.javascript FAQ - http://jibbering.com/faq/


JRS:文章< C%********************* @ news-text.cableinet .net> ;,新闻中看到

:comp.lang.javascript,Michael Winter< M。****** @ blueyonder.co.inv

alid>发表于2003年12月24日星期三15:10:26: -
JRS: In article <C%*********************@news-text.cableinet.net>, seen
in news:comp.lang.javascript, Michael Winter <M.******@blueyonder.co.inv
alid> posted at Wed, 24 Dec 2003 15:10:26 :-
Atif写道:


In我的html页面我想添加800x600的图像。现在我想要那个
当我在这个图像上给出两个坐标时说(x1,y1)=(50,
100)和(x2,y2)=(200,300),java脚本代码将在图像上跟踪这些
坐标并绘制这两点之间的界限。
任何人都可以帮我写这个
问题的javascript代码吗?
In my html page I want to add an image say of 800x600. Now I want that
when ever I am given two coordinates on this image say (x1, y1)=(50,
100) and (x2, y2)=(200, 300), the java script code will trace these
coordinates on the image and draw the line between these two points.
Can anyone please help me in writing the javascript code of this
problem?


据我所知,JavaScript没有绘图功能。我想,你能做到这一点的唯一方法是使用Java
applet,或其他一些多媒体对象,如Flash。



As far as I know, JavaScript has no drawing capabilities. I would
imagine that the only way you can accomplish this is using a Java
applet, or some other multimedia object like Flash.




As一个相当绝望的移动,是否可以拍摄一条线的图形,

在透明的800 * 600区域上说黑色对角线,以及尺度和尺寸。位置

它在现有图像上?这样一行,采用合适的图形格式,不需要大文件。有几种不同尺寸,需要
才能使线宽不会缩小为

隐形。


-

?约翰斯托克顿,英国萨里。 ?@merlyn.demon.co.uk Turnpike v4.00 IE 4?

< URL:http://jibbering.com/faq/> Jim Ley的新闻常见问题解答:comp.lang.javascript

< URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr数学,日期,来源。

< URL:http://www.merlyn.demon.co.uk/> TP / BP / Delphi / jscr /& c,常见问题项目,链接。



As a Rather Desperate Move, is it possible to take a graphic of a line,
say a black diagonal on a transparent 800*600 area, and scale & position
it over the existing image? Such a line, in a suitable graphical
format, should not need a large file. Several, of different sizes,
would be needed in order that the line-width would not scale into
invisibility.

--
? John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4 ?
<URL:http://jibbering.com/faq/> Jim Ley''s FAQ for news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.


这篇关于使用地图坐标绘制线条的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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