Skip to content

Commit fe1babc

Browse files
committed
feat: RightTailInfoBubbleIconのexampleを追加
1 parent 961fd83 commit fe1babc

1 file changed

Lines changed: 27 additions & 1 deletion

File tree

example-app/src/main/java/com/mapconductor/example/pages/marker/icons/MarkerBasicMapComponent.kt

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ import com.mapconductor.example.MapViewContainer
3131
import com.mapconductor.example.R
3232
import com.mapconductor.icons.CircleIcon
3333
import com.mapconductor.icons.FlagIcon
34+
import com.mapconductor.icons.RightTailInfoBubbleIcon
3435
import com.mapconductor.icons.RoundInfoBubbleIcon
3536
import com.mapconductor.settings.MarkerIconSize
3637
import android.content.Context
@@ -303,7 +304,7 @@ fun MarkerBasicMapComponent(
303304
""".trimIndent()
304305
)
305306

306-
ContextCompat.getDrawable(context,com.mapconductor.core.R.drawable.default_marker)?.let {
307+
ContextCompat.getDrawable(context, com.mapconductor.core.R.drawable.default_marker)?.let {
307308
Marker(
308309
position = GeoPointImpl.fromLatLong(0.006, 0.012),
309310
icon = RoundInfoBubbleIcon(
@@ -323,6 +324,31 @@ fun MarkerBasicMapComponent(
323324
""".trimIndent()
324325
)
325326
}
327+
328+
AppCompatResources.getDrawable(context, R.drawable.wmo_00_clear)?.let { icon ->
329+
Marker(
330+
position = GeoPointImpl.fromLatLong(0.006, 0.017),
331+
icon =
332+
RightTailInfoBubbleIcon(
333+
iconDrawable = icon,
334+
label = "5時間37分",
335+
snippet = "304マイル",
336+
fillColor = Color.White,
337+
labelTextColor = Color.Black,
338+
scale = 0.8f,
339+
),
340+
extra = """
341+
RightTailInfoBubbleIcon(
342+
label = "5時間37分",
343+
snippet = "304マイル",
344+
fillColor = Color.White,
345+
labelTextColor = Color.Black,
346+
scale = 1f,
347+
debug = true,
348+
)
349+
""".trimIndent(),
350+
)
351+
}
326352
}
327353
}
328354

0 commit comments

Comments
 (0)