File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
lib/editor/components/map Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ export default class ControlPointsLayer extends Component {
3333 stops,
3434 activePattern,
3535 controlPoints,
36- snapToStops ,
36+ editSettings ,
3737 handleControlPointDrag,
3838 handleControlPointDragEnd,
3939 removeControlPoint,
@@ -43,10 +43,10 @@ export default class ControlPointsLayer extends Component {
4343 } = this . props
4444 return (
4545 < FeatureGroup ref = 'controlPoints' >
46- { stops && activePattern && activePattern . shape && controlPoints
46+ { stops && activePattern && activePattern . shape && editSettings . editGeometry && controlPoints
4747 ? controlPoints . map ( ( cp , index ) => {
4848 // don't include controlPoint on end of segment (for now) or hidden controlPoints
49- if ( cp . stopId && snapToStops ) {
49+ if ( cp . stopId && editSettings . snapToStops ) {
5050 return null
5151 }
5252 const position = cp . point
Original file line number Diff line number Diff line change @@ -175,7 +175,7 @@ export default class EditorMap extends Component {
175175 < ControlPointsLayer
176176 stops = { stops }
177177 activePattern = { activePattern }
178- snapToStops = { editSettings . snapToStops }
178+ editSettings = { editSettings }
179179 handlePatternEdit = { this . props . handlePatternEdit }
180180 handleControlPointDrag = { this . props . handleControlPointDrag }
181181 handleControlPointDragEnd = { this . props . handleControlPointDragEnd }
You can’t perform that action at this time.
0 commit comments