You are here

function _gmap_geo_simplify_cmp_error in GMap Addons 7

Same name and namespace in other branches
  1. 6 gmap_geo/simplify.inc \_gmap_geo_simplify_cmp_error()
1 string reference to '_gmap_geo_simplify_cmp_error'
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 162

Code

function _gmap_geo_simplify_cmp_error($a, $b) {
  return $a['error'] < $b['error'] ? 1 : ($a['error'] != $b['error'] ? -1 : 0);
}