Posted by Pol on August 20, 2012 at 3:39pm
4 followers
| Project: | OpenLayers |
| Version: | 7.x-2.x-dev |
| Component: | OL Views |
| Category: | task |
| Priority: | normal |
| Assigned: | Pol |
| Status: | closed (fixed) |
Issue Summary
Now that this geoPHP bug has been fixed, we can replace the function get_group_wkt() with:
<?php
/**
* Combine all group wkt into a single geometry collection
*
* openlayers_views_style_data specific
*/
function get_group_wkt($wkt_array) {
geophp_load();
$geophp = geoPHP::load($wkt_array, 'wkt');
return $geophp->out('wkt');
}
?>I'm looking for people to test and give me feedback. The patch is following.
Comments
#1
For OL 7.x-2.x.
#2
Wouldn't this break if a site hasn't enabled geoPHP? Unless something's changed recently, geoPHP isn't a requirement for OL 7.x-2.x
#3
True, it should be a requirement, I committed the patch.
http://drupalcode.org/project/openlayers.git/commit/edc9290
Thanks !
#4
Patch committed.
#5
Automatically closed -- issue fixed for 2 weeks with no activity.