Untitled
unknown
plain_text
a year ago
719 B
2
Indexable
Never
kmlDocument.parseKMLFile(filekml) val folderOverlay = kmlDocument.mKmlRoot.buildOverlay(map, null, null, kmlDocument) as FolderOverlay folderOverlay.items.forEach { overlayItem -> if (overlayItem is Polygon) { // Log.d(TAG, "loadkmlandgeo: "+overlayItem) overlayItem.fillPaint.color = Color.parseColor("#80FF0000") // Red with 50% opacity overlayItem.outlinePaint.color = Color.RED overlayItem.outlinePaint.strokeWidth = 2f } else if (overlayItem is Polyline) { overlayItem.outlinePaint.color = Color.BLUE overlayItem.outlinePaint.strokeWidth = 5f } }
Leave a Comment