shareLineGeometrySources

fun shareLineGeometrySources(shareLineGeometrySources: Boolean): MapboxRouteLineViewOptions.Builder

Enable route line's GeoJson source data sharing between multiple instances of the map. If this option is enabled for multiple instances of MapboxRouteLineViews that are used to draw route lines on multiple maps at the same time, they will all share the GeoJson source to optimize execution time of updates and decrease the memory footprint. Enable only for instances that should share the geometry of the lines, leave disabled for instances that should draw geometries distinct from other instances.

Return

the builder

Parameters

shareLineGeometrySources

whether geometry sources should be shared