@@ -45,23 +45,22 @@ const PARKING_SPOT_CATEGORY_KEYS = [
4545/** `#/visit` — slider max (50) means no evening price cap; scale is 0–50 in $5 steps. */
4646const PARKING_MAX_EVENING_SLIDER_CEILING = 50 ;
4747const PARKING_MAX_EVENING_SLIDER_STEP = 5 ;
48- /** When `pay` is omitted from the URL, default to max (`Any price`) for a short `#/visit` link. */
49- const PARKING_DEFAULT_MAX_EVENING_SLIDER_VALUE =
50- PARKING_MAX_EVENING_SLIDER_CEILING ;
48+ /** When `pay` is omitted from the URL, default to **$40** for a short `#/visit` link. */
49+ const PARKING_DEFAULT_MAX_EVENING_SLIDER_VALUE = 40 ;
5150const PARKING_PAY_QUERY_KEY = "pay" ;
5251const PARKING_PAY_QUERY_KEY_LEGACY = "maxEvening" ;
5352
5453/**
5554 * Grid-style walk miles (N–S + E–W, no diagonal shortcut) to the **nearest DASH stop** from each pin
5655 * (minute hints from **`parkingRoutePace.walkMinutesPerMile`**, default ~2.5 mph).
5756 * **Internal/DOM index:** **0** → no distance; **1…15** → **0.1…1.5 mi**.
58- * **default** index **5 ** = **0.5 mi** (URL omits `walk`).
57+ * **default** index **8 ** = **0.8 mi** (URL omits `walk`).
5958 */
6059const PARKING_MAX_WALK_MI_MAX = 1.5 ;
6160const PARKING_MAX_WALK_SLIDER_CEILING_IDX = Math . round (
6261 PARKING_MAX_WALK_MI_MAX * 10 ,
6362) ;
64- const PARKING_DEFAULT_WALK_SLIDER_INDEX = 5 ;
63+ const PARKING_DEFAULT_WALK_SLIDER_INDEX = 8 ;
6564const PARKING_WALK_QUERY_KEY = "walk" ;
6665const PARKING_WALK_QUERY_KEY_LEGACY = "maxWalk" ;
6766/** Show feet (with minute hint) when below this cap — slider **0.1–0.4 mi**; **0.5+** as miles. */
@@ -239,7 +238,7 @@ function getParkingWalkCapMilesFromHash() {
239238 raw = params . get ( PARKING_WALK_QUERY_KEY_LEGACY ) ;
240239 }
241240 if ( raw == null || String ( raw ) . trim ( ) === "" ) {
242- return 0.5 ;
241+ return 0.8 ;
243242 }
244243 const t = String ( raw ) . trim ( ) . toLowerCase ( ) ;
245244 if ( t === "0" || t === "0.0" ) return 0 ;
@@ -1011,6 +1010,17 @@ function getParkingSpotIdForHash() {
10111010 return getParkingCommittedStartSpotIdForHashWrite ( undefined ) ;
10121011}
10131012
1013+ /**
1014+ * Green pick marker: visible committed id, else syntactically valid `park=` when **`walk` ≠ 0** so a
1015+ * shared link still shows one saturated pin (not muted suggestions) even if filters hide the circle.
1016+ */
1017+ function getParkingCommittedSpotIdForPickMarker ( ) {
1018+ const visible = getParkingSpotIdForHash ( ) ;
1019+ if ( visible ) return visible ;
1020+ if ( getParkingMaxWalkSliderValueForHash ( ) === 0 ) return undefined ;
1021+ return normalizeParkingSpotIdFromHashRaw ( ) ;
1022+ }
1023+
10141024/**
10151025 * Both a **destination** (path or `finish=` / legacy venue keys) and committed **`park=`** / legacy **`start=`** / **`spot=`** are in the URL —
10161026 * trip step digits (**1**–**4**) appear on map pins; otherwise badges stay blank.
@@ -1119,6 +1129,8 @@ function buildParkingHashFromState(
11191129 }
11201130 } else if ( sliderVal !== PARKING_DEFAULT_MAX_EVENING_SLIDER_VALUE ) {
11211131 parts . push ( `${ PARKING_PAY_QUERY_KEY } =${ Math . round ( sliderVal ) } ` ) ;
1132+ } else if ( stickyPw . pay ) {
1133+ parts . push ( `${ PARKING_PAY_QUERY_KEY } =${ Math . round ( sliderVal ) } ` ) ;
11221134 }
11231135 }
11241136 if ( walkIx === 0 ) {
@@ -1453,7 +1465,7 @@ function getAllParkingSpotMarkers(
14531465 const destLl = getParkingDestinationLatLng ( ) ;
14541466 const dashStops = getDashStopLatLngsForParkingProximity ( ) ;
14551467 /**
1456- * **`walk`** omitted from URL defaults to **0.5 ** mi — never **0** unless explicit **`walk=0`**.
1468+ * **`walk`** omitted from URL defaults to **0.8 ** mi — never **0** unless explicit **`walk=0`**.
14571469 * **`walk=0`** uses {@link PARKING_WALK_ZERO_EFFECTIVE_FEET} ft (~**0.019** mi) grid-walk for this filter only.
14581470 */
14591471 const applyWalkCap =
@@ -3041,7 +3053,7 @@ function syncParkingSpotPickMarker(map) {
30413053 parkingSpotPickLayerGroup = null ;
30423054 }
30433055
3044- const committed = getParkingSpotIdForHash ( ) ;
3056+ const committed = getParkingCommittedSpotIdForPickMarker ( ) ;
30453057 if ( typeof committed === "string" && committed . length > 0 ) {
30463058 const p = parseParkingSpotIdToken ( committed ) ;
30473059 if ( ! p ) return ;
0 commit comments