Drawing lineString in Google Earth API

المشرف العام

Administrator
طاقم الإدارة
I am able to draw a Polygon on the Google Earth API which is integrated in my website but i have to draw a lineString. Does anybody can help me?Here is the code i use to draw the polygon:

function mark() { placemark = gex.dom.addPlacemark({ polygon: {polygon: [],extrude: true,}, style: {line: { width: 3, color: c },poly: d} });var coords = placemark.getGeometry().getOuterBoundary().getCoordinates();gex.edit.drawLineString(placemark.getGeometry().getOuterBoundary(), { drawCallback : function (coordIndex) { var coord = coords.get(coordIndex); coords.setLatLngAlt(coordIndex, coord.getLatitude(), coord.getLongitude(), 0); }});}



أكثر...
 
أعلى