摘要
JavaScript在很大程度上解决了SVG中交互性不强的问题。简要介绍了JavaScript以及在SVG中使用JavaScript,重点对JavaScript实现W ebG IS中的交互进行了阐述。最后给出的代码实现了地图的放大、漫游和图层控制等交互功能。
To a great extent, JavaSeript is helpful to improve the interactivity of SVG. In this paper, JavaScript and how to use JavaScript in SVG are introduced. Finally, the achieving of interactivity of SVG in WebGIS is discussed. In the end, interactive functions such as zoom in, pan, map layers control and so on are realized by the JavaScript code.
出处
《电脑开发与应用》
2008年第10期7-8,15,共3页
Computer Development & Applications
作者简介
王彬,男,1983年生,在读硕士,研究方向:WebGIS。