[contributions:vauxia] /modules/geo geo.module /modules/geo/modules/geo_field geo_field.module /modules/geo/modules/geo_field/includes/views views_handler_field_geo_field.inc
User: vauxia Branch: HEAD Date: Thu, 06 Aug 2009 04:09:32 +0000 Modified files: /modules/geo geo.module /modules/geo/modules/geo_field geo_field.module /modules/geo/modules/geo_field/includes/views views_handler_field_geo_field.inc Log message: Better just-in-time conversion from wkb to a format expected by theme functions. (e.g. arrays, wkt, etc.) Basically: 1. in hook_theme, include a 'gis input' key, with a value such as wkt, array, or some other format you'll account for. 2. Ensure that anything you render with this theme gets run through geo_set_value(). This function uses the 'gis input' value defined by the theme function in use, and is used to translate from WKB to the requested format. This conversion is handled automatically for node/field rendering, and for the views fields provided by views_handler_field_geo_field. Track me down with questions/issues! Links: http://cvs.drupal.org/diff.php?path=contributions/modules/geo/geo.module&old... http://cvs.drupal.org/diff.php?path=contributions/modules/geo/modules/geo_fi... http://cvs.drupal.org/diff.php?path=contributions/modules/geo/modules/geo_fi...
participants (1)
-
drupal-cvs@drupal.org