Skip to content

Commit

Permalink
Improve path demo
Browse files Browse the repository at this point in the history
  • Loading branch information
p-lr committed Aug 4, 2024
1 parent 573e1b3 commit ee731a7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,13 @@ class PathsVM(application: Application) : AndroidViewModel(application) {
id = "filled polygon",
color = Color.Green,
fillColor = Color.Green.copy(alpha = .6f),
clickable = true,
) {
addPoint(0.14, 0.15)
addPoint(0.14, 0.18)
addPoint(0.28, 0.10)
// Pentagon
addPoint(0.2009, 0.17878)
addPoint(0.08909, 0.2151)
addPoint(0.01999, 0.12)
addPoint(0.08909, 0.02489)
addPoint(0.2009, 0.06122)
}
}
}
Expand All @@ -113,7 +115,7 @@ class PathsVM(application: Application) : AndroidViewModel(application) {
?: return@with

addPath(
id = trackName, color = color, clickable = true, pattern = pattern
id = trackName, color = color, clickable = clickable, pattern = pattern, offset = 1
) {
for (line in lines) {
val values = line.split(',').map(String::toDouble)
Expand Down
2 changes: 1 addition & 1 deletion mapcompose/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
GROUP=ovh.plrapps
VERSION_NAME=2.12.5
VERSION_NAME=2.12.6
ARTIFACT_ID=mapcompose

POM_NAME=MapCompose
Expand Down

0 comments on commit ee731a7

Please sign in to comment.