/** constructs a Placemark from a Polyline overlay, as a KML LineString */
 public KmlPlacemark(Polyline polyline, KmlDocument kmlDoc) {
   this();
   mName = "LineString - " + polyline.getNumberOfPoints() + " points";
   mGeometry = new KmlLineString();
   mGeometry.mCoordinates = (ArrayList<GeoPoint>) polyline.getPoints();
   mVisibility = polyline.isEnabled();
   // Style:
   Style style = new Style();
   style.mLineStyle = new LineStyle(polyline.getColor(), polyline.getWidth());
   mStyle = kmlDoc.addStyle(style);
 }