diff --git a/example-config.yml b/example-config.yml index 6f534b86a..ebb8253dc 100644 --- a/example-config.yml +++ b/example-config.yml @@ -665,4 +665,6 @@ itinerary: ### What radius should the nearby query get results within? (in meters) # radius: 600 ### Setting this to true will use the route viewer sort algorithm on routes -# useRouteViewSort: false \ No newline at end of file +# useRouteViewSort: false +### Setting this to false will hide the shadowey dot that appears when dragging the map +# showShadowDotOnMapDrag: false \ No newline at end of file diff --git a/lib/components/map/nearby-view-dot-overlay.tsx b/lib/components/map/nearby-view-dot-overlay.tsx index f0688931c..2bf65a49b 100644 --- a/lib/components/map/nearby-view-dot-overlay.tsx +++ b/lib/components/map/nearby-view-dot-overlay.tsx @@ -33,8 +33,11 @@ const NearbyViewDotOverlay = ({ location }: Props) => { const mapStateToProps = (state: AppReduxState) => { const { highlightedLocation } = state.otp.ui + const { nearbyView } = state.otp.config + return { - location: highlightedLocation + location: + nearbyView?.showShadowDotOnMapDrag === false ? null : highlightedLocation } } diff --git a/lib/util/config-types.ts b/lib/util/config-types.ts index 89f060b1f..18b2940f8 100644 --- a/lib/util/config-types.ts +++ b/lib/util/config-types.ts @@ -71,6 +71,7 @@ export type MapillaryConfig = ApiKeyConfig export type NearbyViewConfig = { hideEmptyStops?: boolean radius?: number + showShadowDotOnMapDrag?: boolean useRouteViewSort?: boolean }