 
 open class KMLOverlayPolyline: MKPolyline, KMLOverlay {
 
-    open var style: KMLStyle? = nil
+    open var style: KMLStyle?
 
     open func renderer() -> MKOverlayRenderer {
         let renderer: MKPolylineRenderer = MKPolylineRenderer(polyline: self)


public struct KMLConfig {
    // Able to replace with customized parser
    public static var tags: Dictionary<String, KMLElement.Type> = [
        KMLTag.Style.str : KMLStyle.self,
        KMLTag.StyleMap.str : KMLStyleMap.self,
        KMLTag.PolyStyle.str : KMLPolyStyle.self,
        KMLTag.LineStyle.str : KMLLineStyle.self,
        KMLTag.BalloonStyle.str : KMLBalloonStyle.self,
        KMLTag.MultiGeometry.str : KMLMultiGeometry.self,
        KMLTag.Polygon.str : KMLPolygon.self,
        KMLTag.LineString.str : KMLLineString.self,
        KMLTag.Point.str : KMLPoint.self,
        KMLTag.Folder.str : KMLElement.self,
        KMLTag.Placemark.str : KMLPlacemark.self,
        KMLTag.Icon.str : KMLIcon.self,
        KMLTag.IconStyle.str : KMLIconStyle.self
    ]
}


    }

    open class func parseCoordinate(_ str: String) -> CLLocationCoordinate2D {
        let points: [String] = str.components(separatedBy: ",")
        assert(points.count >= 2, "points length is \(points)")
        return CLLocationCoordinate2DMake(atof(points[1]), atof(points[0]))
    }
}

// MARK: - Placemark

