mirror of
https://github.com/visgl/react-map-gl.git
synced 2026-01-25 16:02:50 +00:00
Small typo in example (#584)
This commit is contained in:
parent
0c289423f5
commit
1db9a2b4d2
@ -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'}))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user