I have read this node http://drupal.org/node/386848 and absolutely cannot get it to work. I have followed all the instructions numerous times and my map will still not display. I feel like I'm just doing one little thing wrong.

Any help at this point would be GREATLY appreciated! Thank you!!

$view = new view;
$view->name = 'food_cart';
$view->description = '';
$view->tag = '';
$view->view_php = '';
$view->base_table = 'node';
$view->is_cacheable = FALSE;
$view->api_version = 2;
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
$handler = $view->new_display('default', 'Defaults', 'default');
$handler->override_option('relationships', array(
  'field_location_lid' => array(
    'label' => 'Location',
    'required' => 0,
    'id' => 'field_location_lid',
    'table' => 'node_data_field_location',
    'field' => 'field_location_lid',
    'relationship' => 'none',
  ),
));
$handler->override_option('fields', array(
  'title' => array(
    'label' => '',
    'alter' => array(
      'alter_text' => 0,
      'text' => '',
      'make_link' => 0,
      'path' => '',
      'link_class' => '',
      'alt' => '',
      'prefix' => '',
      'suffix' => '',
      'target' => '',
      'help' => '',
      'trim' => 0,
      'max_length' => '',
      'word_boundary' => 1,
      'ellipsis' => 1,
      'html' => 0,
      'strip_tags' => 0,
    ),
    'empty' => '',
    'hide_empty' => 0,
    'empty_zero' => 0,
    'link_to_node' => 0,
    'exclude' => 0,
    'id' => 'title',
    'table' => 'node',
    'field' => 'title',
    'relationship' => 'field_location_lid',
  ),
  'latitude' => array(
    'label' => 'Latitude',
    'alter' => array(
      'alter_text' => 0,
      'text' => '',
      'make_link' => 0,
      'path' => '',
      'link_class' => '',
      'alt' => '',
      'prefix' => '',
      'suffix' => '',
      'target' => '',
      'help' => '',
      'trim' => 0,
      'max_length' => '',
      'word_boundary' => 1,
      'ellipsis' => 1,
      'html' => 0,
      'strip_tags' => 0,
    ),
    'empty' => '',
    'hide_empty' => 0,
    'empty_zero' => 0,
    'style' => 'dd',
    'exclude' => 1,
    'id' => 'latitude',
    'table' => 'location',
    'field' => 'latitude',
    'relationship' => 'field_location_lid',
  ),
  'longitude' => array(
    'label' => 'Longitude',
    'alter' => array(
      'alter_text' => 0,
      'text' => '',
      'make_link' => 0,
      'path' => '',
      'link_class' => '',
      'alt' => '',
      'prefix' => '',
      'suffix' => '',
      'target' => '',
      'help' => '',
      'trim' => 0,
      'max_length' => '',
      'word_boundary' => 1,
      'ellipsis' => 1,
      'html' => 0,
      'strip_tags' => 0,
    ),
    'empty' => '',
    'hide_empty' => 0,
    'empty_zero' => 0,
    'style' => 'dd',
    'exclude' => 1,
    'id' => 'longitude',
    'table' => 'location',
    'field' => 'longitude',
    'relationship' => 'field_location_lid',
  ),
));
$handler->override_option('filters', array(
  'type' => array(
    'operator' => 'in',
    'value' => array(
      'food_cart' => 'food_cart',
    ),
    'group' => '0',
    'exposed' => FALSE,
    'expose' => array(
      'operator' => FALSE,
      'label' => '',
    ),
    'id' => 'type',
    'table' => 'node',
    'field' => 'type',
    'relationship' => 'none',
  ),
  'status' => array(
    'operator' => '=',
    'value' => '1',
    'group' => '0',
    'exposed' => FALSE,
    'expose' => array(
      'operator' => FALSE,
      'label' => '',
    ),
    'id' => 'status',
    'table' => 'node',
    'field' => 'status',
    'relationship' => 'none',
  ),
));
$handler->override_option('access', array(
  'type' => 'none',
));
$handler->override_option('cache', array(
  'type' => 'none',
));
$handler->override_option('style_plugin', 'gmap');
$handler->override_option('style_options', array(
  'grouping' => '',
  'macro' => '[gmap ]',
  'datasource' => 'fields',
  'latfield' => 'latitude',
  'lonfield' => 'longitude',
  'markers' => 'static',
  'markerfield' => 'title',
  'markertype' => 'drupal',
  'center_on_nodearg' => 0,
  'center_on_nodearg_arg' => '',
  'highlight_nodearg' => 0,
  'highlight_nodearg_arg' => '',
  'highlight_nodearg_color' => '#FF0000',
  'tooltipenabled' => 0,
  'tooltipfield' => 'title',
));
$handler = $view->new_display('page', 'Page', 'page_1');
$handler->override_option('path', 'testing');
$handler->override_option('menu', array(
  'type' => 'none',
  'title' => '',
  'description' => '',
  'weight' => 0,
  'name' => 'navigation',
));
$handler->override_option('tab_options', array(
  'type' => 'none',
  'title' => '',
  'description' => '',
  'weight' => 0,
  'name' => 'navigation',
));

Comments

johnv’s picture

Status: Active » Postponed (maintainer needs more info)

This is already a very old issue. Is it still relevant?

jkingsnorth’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

No additional information provided, closing. Please reopen against the latest dev with full instructions about how to recreate the problem if this is still an issue. Thanks.