Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.

Add custom icon to SymbolOptions #1407

Open
miladsalimiiii opened this issue Apr 28, 2021 · 0 comments
Open

Add custom icon to SymbolOptions #1407

miladsalimiiii opened this issue Apr 28, 2021 · 0 comments

Comments

@miladsalimiiii
Copy link

For adding icon image to symbols we use this :

.withIconImage(MAKI_ICON_HARBOR)

in

            symbolLayerIconFeatureList.add(
                SymbolOptions()
                    .withLatLng(point.latitude?.let { point.longitude?.let { latitude ->
                        LatLng(it,
                            latitude
                        )
                    } })
                    .withIconImage(MAKI_ICON_HARBOR)
                    .withIconSize(2.0f)
            )

.withIconImage() argument is String like MAKI_ICON_HARBOR .

How can we see all icon options in string and how can we add our drawable as iconImage in .withIconImage() ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant