Skip to content

Instantly share code, notes, and snippets.

@duanebester
Created December 2, 2019 19:45
Show Gist options
  • Save duanebester/16716434c79a4449260c93e8f3f7e15b to your computer and use it in GitHub Desktop.
Save duanebester/16716434c79a4449260c93e8f3f7e15b to your computer and use it in GitHub Desktop.
App 3 Map listeners
const moveEnd = map => {
const bbox = mapBoundsToBbox(map.getBounds());
setBBox(bbox);
};
const onLoad = () => {
setMapState({ zoom: [10], loaded: true });
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment