Closed lywedo closed 3 months ago
@lywedo your code looks good to me.
When are you calling that code? I wonder if mapView
or getMapboxMap()
could be null.
@lywedo your code looks good to me.
When are you calling that code? I wonder if
mapView
orgetMapboxMap()
could be null.
They are not null, I am debugging it, they could be seen in the snapshot
I see. Then the problem seems to be somewhere else.
I tried your code on top of the SimpleMapActivity and it works properly.
Could you please share a small app that reproduces the problem?
Environment
Observed behavior and steps to reproduce
I upgraded mapbox from v9 -> v10, the original code is
now, I change the code here to
the map still stays in the initial position when running
Expected behavior
It should move to the right position
Notes / preliminary analysis
Additional links and references