{"size": 305, "ext": "js", "max_stars_repo_path": "src/geodash/plugins/base/filters/layer_is_visible.js", "max_stars_repo_name": "geodashio/geodash-framework-static", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/geodash/plugins/base/filters/layer_is_visible.js", "max_issues_repo_name": "geodashio/geodash-framework-static", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/geodash/plugins/base/filters/layer_is_visible.js", "max_forks_repo_name": "geodashio/geodash-framework-static", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 30.5, "max_line_length": 95, "alphanum_fraction": 0.6754098361}
geodash.filters["layer_is_visible"] = function()
{
  return function(layerID, state)
  {
    state = state || $("#geodash-main").scope().state;
    var visibleFeatureLayers = state.view.featurelayers;
    return (layerID == state.view.baselayer) || $.inArray(layerID, visibleFeatureLayers) != -1;
  };
};
