Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Livemap attribution #199

Merged
merged 4 commits into from
Sep 11, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Rename some variables
  • Loading branch information
ISeleznev-HORIS committed Sep 10, 2020
commit 7fb3f3ba4726ecc026723dc817ea4c1f9f93e9b7
Original file line number Diff line number Diff line change
Expand Up @@ -95,20 +95,20 @@ class LiveMapUiSystem(
addListenersToMakeGeometryButton(buttonMakeGeometry)

if (myAttribution != null) {
val osm = Text().apply {
val attributionText = Text().apply {
color = Color.BLACK
fontFamily = CONTRIBUTORS_FONT_FAMILY
fontHeight = 11.0
text = listOf(myAttribution)
}

val contributors = Label(DoubleVector(myViewport.size.x, 0.0), osm).apply {
val attributionLabel = Label(DoubleVector(myViewport.size.x, 0.0), attributionText).apply {
background = Color(200, 200, 200, 179)
this.padding = 2.0
position = Label.LabelPosition.LEFT
}

myUiService.addRenderable(contributors)
myUiService.addRenderable(attributionLabel)
}
}

Expand Down