var points= [
{p:img_uhr,x:3509103.178,y:5425187.344},
{p:img_uhr,x:3509123.178,y:5425187.344},
{p:img_krankhaus,x:3509143.178,y:5425187.344},
{p:img_uhr,x:3509163.178,y:5425187.344},
{p:img_uhr,x:3509183.178,y:5425187.344}
]
我有上面数组,想让他作为method="ws.i.pin.set();"参数,在执行set:function (),<Tool id="pintest2" img="pan.gif" use="true" method="ws.i.pin.set();" />set:function () {img.src =points[i].p;
img_width=img.width;
img_height=img.height;
// Pixel diff from left upper
xp[i] = (points[i].x - lux) / ws.map.scale;
yp[i] = (luy - points[i].y) / ws.map.scale; }多谢!
{p:img_uhr,x:3509103.178,y:5425187.344},
{p:img_uhr,x:3509123.178,y:5425187.344},
{p:img_krankhaus,x:3509143.178,y:5425187.344},
{p:img_uhr,x:3509163.178,y:5425187.344},
{p:img_uhr,x:3509183.178,y:5425187.344}
]
我有上面数组,想让他作为method="ws.i.pin.set();"参数,在执行set:function (),<Tool id="pintest2" img="pan.gif" use="true" method="ws.i.pin.set();" />set:function () {img.src =points[i].p;
img_width=img.width;
img_height=img.height;
// Pixel diff from left upper
xp[i] = (points[i].x - lux) / ws.map.scale;
yp[i] = (luy - points[i].y) / ws.map.scale; }多谢!
解决方案 »
- 给我什么理由去用JQUERY?
- 奇怪的报错!“无效参数”
- 请问在js中如何获取Flash加载错误的消息
- JS中如何检测Ctrl+enter
- jsp运行servlet发现调用的一个类找不到,但是本地运行又是对的
- 求打开网页弹出提示,点确定弹出新窗口代码
- 紧急求助:怎么在button按钮里加入一张图片,以及如何让图片作为按钮的背景
- 点一个链接,使其出现弹出式对话框:是否将文件保存到硬盘
- 请问如何实现表格套打的问题,哪位朋友能帮我一下
- 如何设置text框使其无法输入,并且显示的字不是灰色的。是否有什么style或方法可是实现。我用<input type="text" style="ime-mode:disabl
- 关于表格显示数据问题
- 如何下载网页里面的Js代码
alert(e[0].p);
}
比如:
<html>
<head>
<script>
var data = {
points:<%= Points.data %>
}
data.points //调用数组
</script>
</head>
</html>
是在jsp文件中,请楼上再帮我详细写一下好吗,谢谢!
<Tool id="zoomin"></Tool>
<Tool id="zoomout"></Tool>
<Tool id="plus"></Tool>
<Tool id="minus"></Tool>
<Tool id="pan"></Tool>
<Tool id="home"></Tool>
<Tool id="undo"></Tool>
<Tool id="redo"></Tool>
<Tool id="identify" use="false"></Tool>
<Tool id="selectRect" use="false"></Tool>
<Tool id="selectPolygon" use="false"></Tool>
<Tool id="selectCircle" use="false"></Tool>
<Tool id="pintest" img="loeschen.gif" use="true" method="ws.i.pin.clear();" />
<Tool id="pintest2" img="pan.gif" use="true" method="ws.i.pin.set(points);" />
</Toolbar>