Skip to content

Commit

Permalink
Merge pull request #139 from OneBusAway/arrow-fnf
Browse files Browse the repository at this point in the history
Route arrow fit and finish
  • Loading branch information
aaronbrethorst authored Nov 25, 2024
2 parents 111fbd9 + 01d244f commit f28ab06
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/lib/Provider/GoogleMapProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ export default class GoogleMapProvider {
const arrowSymbol = {
path: google.maps.SymbolPath.FORWARD_CLOSED_ARROW,
scale: 2,
strokeColor: COLORS.POLYLINE_ARROW,
strokeColor: COLORS.POLYLINE_ARROW_STROKE,
strokeWeight: 3
};

Expand Down
10 changes: 6 additions & 4 deletions src/lib/Provider/OpenStreetMapProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -366,12 +366,14 @@ export default class OpenStreetMapProvider {
patterns: [
{
offset: 0,
repeat: 50,
repeat: 125,
symbol: this.L.Symbol.arrowHead({
pixelSize: 10,
pixelSize: 12,
pathOptions: {
color: COLORS.POLYLINE_ARROW,
fillOpacity: 1
color: COLORS.POLYLINE_ARROW_STROKE,
fill: true,
fillColor: COLORS.POLYLINE_ARROW_FILL,
fillOpacity: 0.85
}
})
}
Expand Down
5 changes: 3 additions & 2 deletions src/lib/colors.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export const COLORS = {
POLYLINE: '#00FF00',
POLYLINE_ARROW: '#8250DF',
POLYLINE: '#359ff7',
POLYLINE_ARROW_STROKE: '#21649b',
POLYLINE_ARROW_FILL: '#21649b',
VEHICLE_REAL_TIME_OFF: '#808080'
};

0 comments on commit f28ab06

Please sign in to comment.