-
Notifications
You must be signed in to change notification settings - Fork 493
Drawn line behind moving SymbolLayer icon #998
Conversation
eb5b475
to
e899f52
Compare
c6a7aef
to
f24f593
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Both handler as animators are used to perform animation. One of those setups will be sufficient, not seeing a need for using both.
f24f593
to
21bf5a3
Compare
My understanding was that the Anyways, I refactored the example to only use a |
36fef95
to
8da4a1a
Compare
@tobrun , any further thoughts about my comment above? |
@LukasPaczos since I added code to this PR in #1109. I feel I'm not allowed to continue reviewing this PR. Can you take a look? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, one comment and it should be good to go.
...main/java/com/mapbox/mapboxandroiddemo/examples/labs/MovingIconWithTrailingLineActivity.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚢
*/ | ||
private void initData(Style fullyLoadedStyle, @NonNull FeatureCollection featureCollection) { | ||
routeCoordinateList = ((LineString) featureCollection.features().get(0).geometry()).coordinates(); | ||
if (mapboxMap != null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NIT: this check is redundant
0808ee4
to
fb27ce8
Compare
This pr adds an example of drawing a
LineLayer
line behind a movingSymbolLayer
icon. The icon moves along a pre-defined route. In this particular example, the route is from a Mapbox Directions API response.Inspired by the moving icon in the Wag! dogwalking app: https://play.google.com/store/apps/details?id=com.ionicframework.wagandroid554504&hl=en_US