Skip to content
This repository has been archived by the owner on Mar 3, 2022. It is now read-only.

Commit

Permalink
issue#67 circumvent datastore pagination on state by state maps
Browse files Browse the repository at this point in the history
  • Loading branch information
swirtSJW authored and Bryan Hirsch committed Mar 26, 2014
1 parent d55074f commit 3b6f3fc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions choropleth.module
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,12 @@ function choropleth_default_formatter_output($variables) {
if (isset($variables['item']['choropleth_data_column']) || isset($variables['item']['choropleth_breakpoints']) || isset($variables['item']['choropleth_color_scale'])) {
ctools_include('choropleth', 'choropleth', '');
$choropleth = $variables['item']['choropleth'] ? $variables['item']['choropleth'] : '';
// If this is a choropleth view, we need all the data from the resource
// so we can not use the paginated data if it is coming from the datastore.
// This sets the Drupal.settings to not use the datastore.
if ($choropleth) {
drupal_add_js('if (typeof Drupal.settings.recline.dkan != \'undefined\') { Drupal.settings.recline.dkan = false; }', array('type' => 'inline', 'scope' => 'footer'));
}
$choropleth_colors = choropleth_color_scale_settings();
$choropleth_colors_index = isset($variables['item']['choropleth_color_scale']) ? (int) $variables['item']['choropleth_color_scale'] : 0;
$settings['choropleth'] = array(
Expand Down

0 comments on commit 3b6f3fc

Please sign in to comment.