diff --git a/examples/geojson-animation/src/app.js b/examples/geojson-animation/src/app.js index 47fb9b35..7d5763a3 100644 --- a/examples/geojson-animation/src/app.js +++ b/examples/geojson-animation/src/app.js @@ -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'}))