2011年8月29日

摘要: 一、地图上添加线控件:1、css: div.olControlPanel { top: 0px; left: 50px; position: absolute; } .olControlPanel div { display: block; width: 24px; height: 24px; margin: 5px; background-color: white; } .olControlPanel .olControlMouseDefaultsItemActive { background-color: blue; background-image: url("http://w 阅读全文

posted @ 2011-08-29 10:20 萧鼎 阅读(1123) 评论(0) 推荐(0) 编辑

摘要: 一、地图上添加多边形控件:1、css:div.olControlPanel { top: 0px; left: 50px; position: absolute; } .olControlPanel div { display: block; width: 24px; height: 24px; margin: 5px; background-color: white; } .olControlPanel .olControlMouseDefaultsItemActive { background-color: blue; background-image: url("http:// 阅读全文

posted @ 2011-08-29 10:08 萧鼎 阅读(1563) 评论(0) 推荐(0) 编辑

摘要: var vectorLayer, markers, lineFeature; var px, py; var x = 0; function startReplay() { //feature style var style_green = { strokeColor: "#339933", strokeOpacity: 1, strokeWidth: 3, pointRadius: 6, pointerEvents: "visiblePainted" }; px = Math.random() * (122 - 121 + 0.001) + 121; 阅读全文

posted @ 2011-08-29 09:56 萧鼎 阅读(4034) 评论(0) 推荐(0) 编辑