Skip to content

Commit

Permalink
refactor: get stops-overlay working with zoom-based-markers
Browse files Browse the repository at this point in the history
  • Loading branch information
evansiroky committed Nov 6, 2020
1 parent 89eb0c7 commit d0cfd7d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
5 changes: 3 additions & 2 deletions lib/components/map/connected-stop-marker.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import DefaultStopMarker from '@opentripplanner/stops-overlay/lib/stop-marker'
import DefaultStopMarker from '@opentripplanner/stops-overlay/lib/default-stop-marker'
import { connect } from 'react-redux'

import { setLocation } from '../../actions/map'
Expand All @@ -8,7 +8,8 @@ import { setViewedStop } from '../../actions/ui'

const mapStateToProps = (state, ownProps) => {
return {
languageConfig: state.otp.config.language
languageConfig: state.otp.config.language,
stop: ownProps.entity
}
}

Expand Down
9 changes: 7 additions & 2 deletions lib/components/map/connected-stops-overlay.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,13 @@ import { findStopsWithinBBox } from '../../actions/api'

const mapStateToProps = (state, ownProps) => {
return {
StopMarker,
stops: state.otp.overlay.transit.stops
stops: state.otp.overlay.transit.stops,
symbols: [
{
minZoom: 15,
symbol: StopMarker
}
]
}
}

Expand Down

0 comments on commit d0cfd7d

Please sign in to comment.