以文本方式查看主题 - 中文XML论坛 - 专业的XML技术讨论区 (http://bbs.xml.org.cn/index.asp) -- 『 SVG/GML/VRML/X3D/XAML 』 (http://bbs.xml.org.cn/list.asp?boardid=21) ---- [求助]请问为什么我的地图没有实现更新? (http://bbs.xml.org.cn/dispbbs.asp?boardid=21&rootid=&id=37950) |
-- 作者:atuge_2000 -- 发布时间:9/15/2006 8:42:00 PM -- [求助]请问为什么我的地图没有实现更新? 本人在做图层叠加的时候,为何在原来一张地图上加的图层没有显示?下面是我的代码,请高手指点。我是把svg文件放在JSVGCanvas里面进行显示。 for(int i = 0; i < nl.getLength(); i++){ //创建<polyline>元素节点 Element newPolyline = (SVGOMPolylineElement) svgCanvas.getSVGDocument().createElementNS(SVGNS, "polyline"); //获取要叠加的图层文档对象的<polyline>元素的各个属性值,得到的属性值是按照字母大小排列 String idValue = nl.item(i).getAttributes().item(0).getNodeValue(); String pointsValues = nl.item(i).getAttributes().item(1).getNodeValue(); String strokeWidthValue = nl.item(i).getAttributes().item(2).getNodeValue(); String styleValue = nl.item(i).getAttributes().item(3).getNodeValue(); newPolyline.setAttribute("id",idValue); 前面一些代码就不贴了,太长。 |
-- 作者:atuge_2000 -- 发布时间:9/17/2006 10:20:00 PM -- 已解决 |
W 3 C h i n a ( since 2003 ) 旗 下 站 点 苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》 |
2,343.750ms |