src/sidebar/Sidebar.js
// Finds position in layer list for geojson based on key value.
Finds position in layer list for geojson based on key value.
Finds position in layer list for geojson based on key value .
function find_called_geojson(geojson_file_key){
  for (var i = 0; i < this.state.layer_list.length; i++) {
    if (geojson_file_key == this.state.layer_list[i][1]){
      return i
    }
  }
}
function find_called_geojson ( geojson_file_key ) { for ( var i = 0 ; i < this . state . layer_list . length ; i ++ ) { if ( geojson_file_key == this . state . layer_list [ i ] [ 1 ] ) { return i } } }
Finds position in layer list for geojson based on key value.
Finds position in layer list for geojson based on key value .