Skip to content

Commit

Permalink
Added additional providers priorities for route layer
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-osm committed Apr 8, 2024
1 parent f41d239 commit 5d64fb6
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,7 @@ protected List<List<DrawPathData31>> cutStartOfCachedPath(@NonNull MapRendererVi
|| !mapRenderer.hasSymbolsProvider(vectorLineArrowsProvider);
if (vectorLinesCollection != null && updateArrowsProvider) {
VectorLineArrowsProvider newArrowsProvider = new VectorLineArrowsProvider(vectorLinesCollection);
newArrowsProvider.setPriority(linesPriority);
this.vectorLineArrowsProvider = newArrowsProvider;
mapRenderer.addSymbolsProvider(newArrowsProvider);
}
Expand Down Expand Up @@ -664,6 +665,7 @@ public void drawRouteSegment(@NonNull RotatedTileBox tb, @Nullable Canvas canvas
if (mapRenderer != null && vectorLinesCollection != null
&& (vectorLineArrowsProvider == null || !mapRenderer.hasSymbolsProvider(vectorLineArrowsProvider))) {
VectorLineArrowsProvider arrowsProvider = new VectorLineArrowsProvider(vectorLinesCollection);
arrowsProvider.setPriority(linesPriority);
this.vectorLineArrowsProvider = arrowsProvider;
mapRenderer.addSymbolsProvider(arrowsProvider);
}
Expand Down

0 comments on commit 5d64fb6

Please sign in to comment.