Small typo in example (#584)

This commit is contained in:
Will Fisher 2018-09-24 15:39:50 -04:00 committed by Xiaoji Chen
parent 0c289423f5
commit 1db9a2b4d2

View File

@ -55,7 +55,7 @@ export default class App extends Component {
_updatePointData = pointData => {
let {mapStyle} = this.state;
if (!mapStyle.hasIn(['source', 'point'])) {
if (!mapStyle.hasIn(['sources', 'point'])) {
mapStyle = mapStyle
// Add geojson source to map
.setIn(['sources', 'point'], fromJS({type: 'geojson'}))