You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the LocationPuck, we get warnings like this when changing the style:
[maps-android\Mbgl-Style]: Style object (accessing setStyleLayerProperty) should not be stored and used after MapView is destroyed or new style has been loaded.
[maps-android\Mbgl-Style]: Style object (accessing removeStyleLayer) should not be stored and used after MapView is destroyed or new style has been loaded.
I could narrow it down, to location, as when i disable it, it does not show the warning. It seems to be related to the LocationPuck images stored into a style, and when that style changes, it starts logging those warnings.
The warning is only logged, when the LocationPuck moves, for example when an animation is in place it logs multiple times per second.
There is a workaround, to avoid this, which also logs some warnings initially, but then stays quiet:
When toggling the location from enabled to disabled and back to enabled, it seems to reload the style or images or whatever, and then only the short moment it takes to disable and re-enable the location these warnings are logged. but then it is fine again.
Normally this is probably not a big issue, but for example when changing map style from day to night map, this spamming of logs happens. Not sure if that has an effect on performance, but it should nevertheless be looked into.
The text was updated successfully, but these errors were encountered:
Environment
When using the LocationPuck, we get warnings like this when changing the style:
I could narrow it down, to location, as when i disable it, it does not show the warning. It seems to be related to the LocationPuck images stored into a style, and when that style changes, it starts logging those warnings.
The warning is only logged, when the LocationPuck moves, for example when an animation is in place it logs multiple times per second.
There is a workaround, to avoid this, which also logs some warnings initially, but then stays quiet:
When toggling the location from enabled to disabled and back to enabled, it seems to reload the style or images or whatever, and then only the short moment it takes to disable and re-enable the location these warnings are logged. but then it is fine again.
Normally this is probably not a big issue, but for example when changing map style from day to night map, this spamming of logs happens. Not sure if that has an effect on performance, but it should nevertheless be looked into.
The text was updated successfully, but these errors were encountered: