As of tonight, you should be defining 'array' (or whatever you want, per #483936 ) in hook_field_formatter_info()

OLD:

function gmap_geo_field_formatter_info() {
  return array(
    'gmap_geo' => array(
      'label' => t('GMap'),
      'field types' => array('geo', 'geo_data'),
      'multiple values' => CONTENT_HANDLE_MODULE,
    ),
  );
}

NEW

function gmap_geo_field_formatter_info() {
  return array(
    'gmap_geo' => array(
      'label' => t('GMap'),
      'field types' => array('geo', 'geo_data'),
      'multiple values' => CONTENT_HANDLE_MODULE,
      'gis types' => array('point', 'linestring', 'polygon'),
      'gis input' => 'array'
    ),
  );
}

You can remove any calls to geo_wkb_get_data() and simply expect $element['#item'][$delta]['array'] to exist. The on-the-fly conversion is managed by hook_nodeapi:view.

Comments

becw’s picture

This isn't working for me... I'm using the exact code you have under "new".

becw’s picture

Status: Active » Fixed

This was not working because of an issue with geo_data, which has been fixed with http://drupal.org/cvs?commit=224072

I have now committed this change -- http://drupal.org/cvs?commit=224590

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.