Update Openlayers JS library to 4.6.4.

This commit is contained in:
Michael Stenta 2018-02-15 17:03:33 -05:00
parent 9091cee732
commit 087e32b73b
1 changed files with 8 additions and 1 deletions

View File

@ -27,7 +27,7 @@ function farm_install() {
variable_set('menu_main_links_source', 'farm');
// Load Openlayers from CDNJS.
\Drupal\openlayers\Config::set('openlayers.variant', 'cdnjs:ol3:4.3.3');
\Drupal\openlayers\Config::set('openlayers.variant', 'cdnjs:ol3:4.6.4');
}
/**
@ -693,6 +693,13 @@ function farm_update_7037(&$sandbox) {
_farm_update_enable_modules(array('farm_asset_views'));
}
/**
* Update Openlayers JS library to 4.6.4.
*/
function farm_update_7038(&$sandbox) {
\Drupal\openlayers\Config::set('openlayers.variant', 'cdnjs:ol3:4.6.4');
}
/**
* Update helper function: enable modules.
*/