|
|
|
@ -12,6 +12,7 @@ import { loggedIn } from '../reducers/auth'
|
|
|
|
|
import { |
|
|
|
|
geoLocationFailed, geoLocationUpdate, getAgency, |
|
|
|
|
draggableMarkerUpdate, lastCenterUpdate, geoStopToggler, |
|
|
|
|
geoStopAuraToggler, |
|
|
|
|
} from '../actions' |
|
|
|
|
import FloatPane from '../components/FloatPane' |
|
|
|
|
import store from '../store' |
|
|
|
@ -36,7 +37,7 @@ position: fixed;
|
|
|
|
|
text-align: center; |
|
|
|
|
padding-top: 10px; |
|
|
|
|
right: 0; |
|
|
|
|
bottom: 100px; |
|
|
|
|
bottom: 150px; |
|
|
|
|
z-index: 30; |
|
|
|
|
` |
|
|
|
|
|
|
|
|
@ -50,10 +51,23 @@ position: fixed;
|
|
|
|
|
text-align: center; |
|
|
|
|
padding-top: 10px; |
|
|
|
|
right: 0; |
|
|
|
|
bottom: 50px; |
|
|
|
|
bottom: 110px; |
|
|
|
|
z-index: 30; |
|
|
|
|
` |
|
|
|
|
|
|
|
|
|
const StopAuraToggler = styled.div` |
|
|
|
|
width: 80px |
|
|
|
|
height: 40px; |
|
|
|
|
background: #fefefebb; |
|
|
|
|
border-radius: 10px; |
|
|
|
|
color: #209cee; |
|
|
|
|
position: fixed; |
|
|
|
|
text-align: center; |
|
|
|
|
padding-top: 10px; |
|
|
|
|
right: 0; |
|
|
|
|
bottom: 70px; |
|
|
|
|
z-index: 30; |
|
|
|
|
` |
|
|
|
|
|
|
|
|
|
// TODO: filter for existing polygons
|
|
|
|
|
|
|
|
|
@ -214,6 +228,10 @@ class Geo extends Component {
|
|
|
|
|
}} /> |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
renderStopAura() { |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
forceSetMapCenterToCurrent() { |
|
|
|
|
const { geo } = this.props |
|
|
|
|
const { leafletElement } = this.refs.map |
|
|
|
@ -275,6 +293,9 @@ class Geo extends Component {
|
|
|
|
|
<StopToggler onClick={_ => store.dispatch(geoStopToggler())}> |
|
|
|
|
{geo.showStopMarker ? <p>show</p> : <p>hide</p>} |
|
|
|
|
</StopToggler> |
|
|
|
|
<StopAuraToggler onClick={_ => store.dispatch(geoStopAuraToggler())}> |
|
|
|
|
{geo.showStopAura ? <p>A ON</p> : <p>A OFF</p>} |
|
|
|
|
</StopAuraToggler> |
|
|
|
|
<Map |
|
|
|
|
center={this.state.mapCenter} |
|
|
|
|
zoom={geo.zoom} |
|
|
|
@ -300,6 +321,9 @@ class Geo extends Component {
|
|
|
|
|
{this.renderGeoJSON()} |
|
|
|
|
{this.renderStopTime()} |
|
|
|
|
{geo.showStopMarker && this.renderStopMarkers()} |
|
|
|
|
{geo.showStopAura && this.renderStopAura()} |
|
|
|
|
<span> |
|
|
|
|
</span> |
|
|
|
|
</Map> |
|
|
|
|
</FullPageBox> |
|
|
|
|
) |
|
|
|
|