code: function getViewState(props) {
    if (!props.viewState && 'latitude' in props && 'longitude' in props && 'zoom' in props) {
      const {latitude, longitude, zoom, pitch = 0, bearing = 0} = props;
      return {latitude, longitude, zoom, pitch, bearing};
    }
    return props.viewState;
  }
docs: Supports old "geospatial view state as separate props" style TODO - this should either be moved into the core or deprecated