I changed list 62 of openlayers_proximity_handler_field.inc
from:
// Check to see if hiding should happen before adding prefix and suffix.
if ($this->options['hide_empty'] && empty($value) && ($value !== 0 || $this->options['empty_zero'])) {
return '';
}
to:
// Check to see if hiding should happen before adding prefix and suffix.
if ($this->options['hide_empty'] && ($value == 0) && ($value !== 0 || $this->options['empty_zero'])) {
return '';
}
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | openlayers_proximity_handler_field.inc_.patch | 571 bytes | kardave |
Comments
Comment #1
kardave commentedI created the little patch for this, but it hides distances between 0 and 1 too.
Comment #2
pixelsweatshop commented+1 for hiding 0.00 but not everything less than 1 (as it is possible to have locations less than 1 unit from the specified point of origin.
Comment #3
srsbl commentedI'm using Drupal 7 and I was able to workaround this issue using a math expression field in my view.