function openlayers_views_style_data::get_group_wkt in Openlayers 7.2
Combine all group wkt into a single geometry collection
openlayers_views_style_data specific
1 call to openlayers_views_style_data::get_group_wkt()
- openlayers_views_style_data::coalesce_groups in modules/
openlayers_views/ views/ openlayers_views_style_data.inc - Coalesce features into single grouped feature when grouping is enabled.
File
- modules/
openlayers_views/ views/ openlayers_views_style_data.inc, line 440 - This file holds style plugin for OpenLayers Views
Class
- openlayers_views_style_data
- @class Extension of the Views Plugin Style for OpenLayers
Code
function get_group_wkt($wkt_array) {
geophp_load();
$geophp = geoPHP::load($wkt_array, 'wkt');
if (!empty($geoPHP)) {
return $geophp
->out('wkt');
}
return array();
}