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 '';
    }

Comments

kardave’s picture

Status: Active » Needs work
StatusFileSize
new571 bytes

I created the little patch for this, but it hides distances between 0 and 1 too.

pixelsweatshop’s picture

+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.

srsbl’s picture

I'm using Drupal 7 and I was able to workaround this issue using a math expression field in my view.