function _gmap_geo_simplify_cmp_velocity in GMap Addons 7
Same name and namespace in other branches
- 6 gmap_geo/simplify.inc \_gmap_geo_simplify_cmp_velocity()
Comparison functions for sorting by various keys. These REVERSE sort the arrays.
1 string reference to '_gmap_geo_simplify_cmp_velocity'
- gmap_geo_simplify in gmap_geo/
simplify.inc - This function would probably work for lines as well as polygons, but you still have to feed it a centroid.
File
- gmap_geo/
simplify.inc, line 150
Code
function _gmap_geo_simplify_cmp_velocity($a, $b) {
return $a['velocity'] < $b['velocity'] ? 1 : ($a['velocity'] != $b['velocity'] ? -1 : 0);
}