function openlayers_layers_export_load in Openlayers 6.2
Get all openlayers layers.
Parameters
$reset: Boolean whether to reset cache or not
Return value
array layer exports
File
- ./
openlayers.module, line 277 - Main OpenLayers API File
Code
function openlayers_layers_export_load($reset = TRUE) {
ctools_include('export');
if ($reset) {
ctools_export_load_object_reset('openlayers_layers');
}
$layers = ctools_export_load_object('openlayers_layers', 'all', array());
return $layers;
}