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

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant