checkVisibilityConstraints(props) {
    const capitalize = s => s[0].toUpperCase() + s.slice(1);

    const {visibilityConstraints} = props;
    for (const propName in props) {
      const capitalizedPropName = capitalize(propName);
      const minPropName = `min${capitalizedPropName}`;
      const maxPropName = `max${capitalizedPropName}`;

      if (minPropName in visibilityConstraints &&
        props[propName] < visibilityConstraints[minPropName]) {
        return false;
      }
      if (maxPropName in visibilityConstraints &&
        props[propName] > visibilityConstraints[maxPropName]) {
        return false;
      }
    }
    return true;
  }
// Checks a visibilityConstraints object to see if the map should be displayed
Checks a visibilityConstraints object to see if the map should be displayed
Checks a visibilityConstraints object to see if the map should be displayed
checkVisibilityConstraints(props) {
    const capitalize = s => s[0].toUpperCase() + s.slice(1);
    const {visibilityConstraints} = props;
    for (const propName in props) {
      const capitalizedPropName = capitalize(propName);
      const minPropName = `min${capitalizedPropName}`;
      const maxPropName = `max${capitalizedPropName}`;
      if (minPropName in visibilityConstraints &&
        props[propName] < visibilityConstraints[minPropName]) {
        return false;
      }
      if (maxPropName in visibilityConstraints &&
        props[propName] > visibilityConstraints[maxPropName]) {
        return false;
      }
    }
    return true;
  }
checkVisibilityConstraints ( props ) { const capitalize = s => s [ 0 ] . toUpperCase ( ) + s . slice ( 1 ) ; const { visibilityConstraints } = props ; for ( const propName in props ) { const capitalizedPropName = capitalize ( propName ) ; const minPropName = ` ${ capitalizedPropName } ` ; const maxPropName = ` ${ capitalizedPropName } ` ; if ( minPropName in visibilityConstraints && props [ propName ] < visibilityConstraints [ minPropName ] ) { return false ; } if ( maxPropName in visibilityConstraints && props [ propName ] > visibilityConstraints [ maxPropName ] ) { return false ; } } return true ; }
Checks a visibilityConstraints object to see if the map should be displayed
Checks a visibilityConstraints object to see if the map should be displayed