Untitled
unknown
plain_text
2 years ago
719 B
9
Indexable
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
}
}Editor is loading...
Leave a Comment