CoString of GMap Simple Polygon
View this example in sandbox :
o,24.88065,121.065427&z,12&a,2,ef1568,0.8,61ed04,0.3,24.890018034039336,121.12203598022461,24.87506829604292,121.1103630065918,24.87506829604292,121.13370895385742
View this example full screen.
View this example in sandbox :
o,24.88065,121.065427&z,12&a,2,ef1568,0.8,61ed04,0.3,24.890018034039336,121.12203598022461,24.87506829604292,121.1103630065918,24.87506829604292,121.13370895385742
function initialize() { var oMapOptions = { coStrType: zhupiter.CoStr.CoStrType.GMAP, center: new google.maps.LatLng(24.880650, 121.065427), zoom: 12 }; var oCoStrMap = new zhupiter.CoStr.Map(document.getElementById('map_canvas'), oMapOptions); var oCoords = [ new google.maps.LatLng(24.890018034039336, 121.12203598022461), new google.maps.LatLng(24.87506829604292, 121.1103630065918), new google.maps.LatLng(24.87506829604292, 121.13370895385742) ]; var oTriangle = new zhupiter.CoStr.Triangle({ coStrMap: oCoStrMap, path: oCoords, strokeWeight: 2, strokeColor: '#ef1568', strokeOpacity: 0.8, fillColor: '#61ed04', fillOpacity: 0.3 }); } 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>GMap Simple Polygon</title> <style> html, body, #map_canvas { height: 100%; margin: 0px; padding: 0px } </style> <script src='https://maps.googleapis.com/maps/api/js'></script> <script src='//costr.zhupiter.com/js/'></script> <script> function initialize() { var oMapOptions = { coStrType: zhupiter.CoStr.CoStrType.GMAP, center: new google.maps.LatLng(24.880650, 121.065427), zoom: 12 }; var oCoStrMap = new zhupiter.CoStr.Map(document.getElementById('map_canvas'), oMapOptions); var oCoords = [ new google.maps.LatLng(24.890018034039336, 121.12203598022461), new google.maps.LatLng(24.87506829604292, 121.1103630065918), new google.maps.LatLng(24.87506829604292, 121.13370895385742) ]; var oTriangle = new zhupiter.CoStr.Triangle({ coStrMap: oCoStrMap, path: oCoords, strokeWeight: 2, strokeColor: '#ef1568', strokeOpacity: 0.8, fillColor: '#61ed04', fillOpacity: 0.3 }); } zhupiter.CoStr.event.addDomListener(window, 'load', initialize); </script> </head> <body> <div id='map_canvas'></div> </body> </html>
坐标物语 | 赞助比特币: 1LX5KC19tXCPK8y72Z6LVoZjoSaCp9P6K