File tree Expand file tree Collapse file tree 1 file changed +27
-25
lines changed
lib/editor/components/map Expand file tree Collapse file tree 1 file changed +27
-25
lines changed Original file line number Diff line number Diff line change @@ -28,33 +28,35 @@ type OverlayItem = {component: any, name: string}
2828
2929export default class EditorMapLayersControl extends Component < Props > {
3030 render ( ) {
31- const { tripPatterns , stops, user } = this . props
31+ const { stops, user } = this . props
3232 const { BaseLayer, Overlay } = LayersControl
3333 const OVERLAYS : Array < OverlayItem > = [
34- {
35- name : 'Route alignments' ,
36- component : (
37- < FeatureGroup >
38- { tripPatterns
39- ? tripPatterns . map ( ( tp ) => {
40- if ( ! tp . latLngs ) return null
41- return (
42- < Polyline
43- key = { tp . id }
44- positions = { tp . latLngs }
45- weight = { 2 }
46- color = '#888' >
47- < Tooltip sticky >
48- < span > { tp . name } ({ tp . route_id } )</ span >
49- </ Tooltip >
50- </ Polyline >
51- )
52- } )
53- : null
54- }
55- </ FeatureGroup >
56- )
57- } ,
34+ // FIXME: Do not show trip pattern overlay because it can cause out of
35+ // memory issues for very large GTFS feeds.
36+ // {
37+ // name: 'Route alignments',
38+ // component: (
39+ // <FeatureGroup>
40+ // {tripPatterns
41+ // ? tripPatterns.map((tp) => {
42+ // if (!tp.latLngs) return null
43+ // return (
44+ // <Polyline
45+ // key={tp.id}
46+ // positions={tp.latLngs}
47+ // weight={2}
48+ // color='#888'>
49+ // <Tooltip sticky>
50+ // <span>{tp.name} ({tp.route_id})</span>
51+ // </Tooltip>
52+ // </Polyline>
53+ // )
54+ // })
55+ // : null
56+ // }
57+ // </FeatureGroup>
58+ // )
59+ // },
5860 {
5961 name : 'Stop locations' ,
6062 component : < StopLayer key = 'stop-layer' stops = { stops } />
You can’t perform that action at this time.
0 commit comments