@@ -18,6 +18,7 @@ import {
1818} from "../../utils/pinkLineRoute" ;
1919import { addDetourPaintToMap } from "../../map/pinkDetourLeaflet" ;
2020import { pinkDetourGoogleDashedStyle } from "../../map/pinkDetourDashStyle" ;
21+ import { proposedLineHaloStyle } from "./mapLineStyles" ;
2122import supabase from "../../supabase" ;
2223import PinkLineNodeForm from "./PinkLineNodeForm" ;
2324import PinkRouteFetchingBanner from "./PinkRouteFetchingBanner" ;
@@ -280,6 +281,7 @@ const PinkLineMapPage = () => {
280281 const { solid, dashed, removed } = integratedRoute ;
281282 const solidStyle : L . PolylineOptions = { color : "#FF69B4" , weight : 5 , opacity : 0.9 } ;
282283 const dashedStyle = pinkDetourGoogleDashedStyle ;
284+ const dashedHaloStyle = proposedLineHaloStyle ;
283285 const removedStyle : L . PolylineOptions = { color : "#FF69B4" , weight : 5 , opacity : 0.6 } ;
284286 const showUserDetours = nodes . length > 0 ;
285287
@@ -295,11 +297,17 @@ const PinkLineMapPage = () => {
295297 }
296298 if ( showUserDetours ) {
297299 if ( integratedRoute . detourPaint && integratedRoute . detourPaint . length > 0 ) {
298- addDetourPaintToMap ( map , integratedRoute . detourPaint , dashedStyle , routeLayersRef . current ) ;
300+ addDetourPaintToMap (
301+ map ,
302+ integratedRoute . detourPaint ,
303+ dashedStyle ,
304+ routeLayersRef . current ,
305+ dashedHaloStyle
306+ ) ;
299307 } else {
300308 for ( const pts of dashed ) {
301- const layer = L . polyline ( pts as L . LatLngExpression [ ] , dashedStyle ) . addTo ( map ) ;
302- routeLayersRef . current . push ( layer ) ;
309+ routeLayersRef . current . push ( L . polyline ( pts as L . LatLngExpression [ ] , dashedHaloStyle ) . addTo ( map ) ) ;
310+ routeLayersRef . current . push ( L . polyline ( pts as L . LatLngExpression [ ] , dashedStyle ) . addTo ( map ) ) ;
303311 }
304312 }
305313 }
0 commit comments