-
Notifications
You must be signed in to change notification settings - Fork 312
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
Route and highlighted building are removed after changing style. #2545
Comments
By design, changing the map style blows away any map style customizations, including the route line and highlighted building style layers. RouteMapViewController is currently responsible for restoring the route line and intermediate waypoint layers by calling By coincidence, this issue doesn’t affect the final destination waypoint, which is marked by a point annotation, because annotations do persist across style changes. mapbox/mapbox-gl-native#6180 tracks enabling style layers to persist across style changes like annotations do. |
In scope of this fix I've added style observation for |
This is also true of the route line and runtime styling in general. I think it would actually be confusing for some runtime styling to persist but not these specific runtime styling customizations. Better for runtime styling to behave consistently, so that the developer knows to call all the relevant runtime styling methods, including For example, consider an application that would normally add a fill layer representing an isochrone to the map in |
After dynamically changing style in
NavigationMapView
current route and highlighted building are getting removed. It is expected that current route and highlighted building remain onNavigationMapView
. Example:The text was updated successfully, but these errors were encountered: