CoString of 2D Canvas Simple line
View this example in sandbox :
o,109.72328593151204,214.0909703111111&z,12&l,8,ef1568,0.8,121.72328593151204,184.0909703111111,37.72328593151204,151.0909703111111
View this example full screen.
View this example in sandbox :
o,109.72328593151204,214.0909703111111&z,12&l,8,ef1568,0.8,121.72328593151204,184.0909703111111,37.72328593151204,151.0909703111111
function initialize() { var oMapOptions = { coStrType: zhupiter.CoStr.CoStrType.CANVAS2D, center: new zhupiter.CoStr.Point2D(214.0909703111111, 109.72328593151204), zoom: 12 }; var oCoStrMap = new zhupiter.CoStr.Map(document.getElementById('map_canvas'), oMapOptions); //@ Format : zhupiter.CoStr.Point2D(x, y) var oPath = [ new zhupiter.CoStr.Point2D(184.0909703111111, 121.72328593151204), new zhupiter.CoStr.Point2D(151.0909703111111, 37.72328593151204) ]; var oLine = new zhupiter.CoStr.Line({ coStrMap: oCoStrMap, path: oPath, strokeWeight: 8, strokeColor: '#ef1568', strokeOpacity: 0.8 }); } zhupiter.CoStr.event.addDomListener(window, 'load', initialize);
<!DOCTYPE html> <html> <head> <meta name='viewport' content='initial-scale=1.0, user-scalable=no'> <meta charset='utf-8'> <title>2D Canvas Simple line</title> <style> html, body, #map_canvas { height: 100%; margin: 0px; padding: 0px } </style> <script src='//costr.zhupiter.com/js/'></script> <script> function initialize() { var oMapOptions = { coStrType: zhupiter.CoStr.CoStrType.CANVAS2D, center: new zhupiter.CoStr.Point2D(214.0909703111111, 109.72328593151204), zoom: 12 }; var oCoStrMap = new zhupiter.CoStr.Map(document.getElementById('map_canvas'), oMapOptions); //@ Format : zhupiter.CoStr.Point2D(x, y) var oPath = [ new zhupiter.CoStr.Point2D(184.0909703111111, 121.72328593151204), new zhupiter.CoStr.Point2D(151.0909703111111, 37.72328593151204) ]; var oLine = new zhupiter.CoStr.Line({ coStrMap: oCoStrMap, path: oPath, strokeWeight: 8, strokeColor: '#ef1568', strokeOpacity: 0.8 }); } zhupiter.CoStr.event.addDomListener(window, 'load', initialize); </script> </head> <body> <div id='map_canvas'></div> </body> </html>
坐标物语 | 赞助比特币: 1LX5KC19tXCPK8y72Z6LVoZjoSaCp9P6K