Created
June 11, 2018 18:08
-
-
Save johnymontana/1470305f218529b9cf9de556897e653f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// defined in App.js, this function is passed to the | |
// Map component as a prop | |
mapSearchPointChange = viewport => { | |
this.setState({ | |
mapCenter: { | |
...this.state.mapCenter, | |
latitude: viewport.latitude, | |
longitude: viewport.longitude, | |
zoom: viewport.zoom | |
} | |
}); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment