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

Bobbing map pin icon SymbolLayer example #880

Closed
langsmith opened this issue Oct 10, 2018 · 1 comment · Fixed by #934
Closed

Bobbing map pin icon SymbolLayer example #880

langsmith opened this issue Oct 10, 2018 · 1 comment · Fixed by #934

Comments

@langsmith
Copy link
Contributor

Good example to add would be a map pin icon bobbing up and down. Could be done with a runnable that constantly adjusts the iconTranslate() PropertyFacotry method, similar to how the loading circle radius is adjusted in the demo app's Mapillary example

https://github.com/mapbox/mapbox-android-demo/blob/master/MapboxAndroidDemo/src/main/java/com/mapbox/mapboxandroiddemo/examples/labs/SymbolLayerMapillaryActivity.java#L256

https://github.com/mapbox/mapbox-android-demo/blob/master/MapboxAndroidDemo/src/main/java/com/mapbox/mapboxandroiddemo/examples/labs/SymbolLayerMapillaryActivity.java#L983-L1010

@langsmith
Copy link
Contributor Author

Although the pins don't bob in #934, #934 will resolve this ticket in my opinion. The example shows how runnables can be combined with data-driven styling (iconTranslate in particular) to adjust icon location however one would like.

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

Successfully merging a pull request may close this issue.

1 participant