Closed (fixed)
Project:
Google Maps Tools
Version:
6.x-2.x-dev
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
10 Feb 2010 at 15:33 UTC
Updated:
25 Mar 2010 at 19:20 UTC
Hi,
I installed "GMaps Term" and configured settings for storing geodata-content.
When editing terms, I can store geodata-content - which will be displayed with marker on a map.
I found no way displaying maps in a term-based view. There is an error message "Row style Map fields marker requires a marker point option handler field." There are no marker options which I could choose.
Could you please give me a hint?
I will post you code of exported view, if you want to take a look on it:
$view = new view;
$view->name = 'crm_orte_gmaps';
$view->description = 'CRM: Orte GMaps';
$view->tag = 'CRM';
$view->view_php = '';
$view->base_table = 'term_data';
$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', 'Standards', 'default');
$handler->override_option('fields', array(
'name' => 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,
'strip_tags' => 0,
'html' => 0,
),
'empty' => '',
'hide_empty' => 0,
'empty_zero' => 0,
'link_to_taxonomy' => 1,
'exclude' => 0,
'id' => 'name',
'table' => 'term_data',
'field' => 'name',
'override' => array(
'button' => 'Übersteuern',
),
'relationship' => 'none',
),
'tid' => array(
'label' => 'Begriffs-ID',
'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,
'strip_tags' => 0,
'html' => 0,
),
'empty' => '',
'hide_empty' => 0,
'empty_zero' => 0,
'set_precision' => FALSE,
'precision' => 0,
'decimal' => '.',
'separator' => ',',
'prefix' => '',
'suffix' => '',
'exclude' => 1,
'id' => 'tid',
'table' => 'term_data',
'field' => 'tid',
'relationship' => 'none',
),
'nothing' => array(
'label' => 'bearbeiten',
'alter' => array(
'text' => 'bearbeiten',
'make_link' => 1,
'path' => 'taxonomy/term/[tid]/edit-term',
'link_class' => '',
'alt' => '"[name]" bearbeiten',
'prefix' => '',
'suffix' => '',
'target' => '',
'help' => '',
'trim' => 0,
'max_length' => '',
'word_boundary' => 1,
'ellipsis' => 1,
'strip_tags' => 0,
'html' => 0,
),
'empty' => '',
'hide_empty' => 0,
'empty_zero' => 0,
'exclude' => 0,
'id' => 'nothing',
'table' => 'views',
'field' => 'nothing',
'relationship' => 'none',
),
));
$handler->override_option('sorts', array(
'name' => array(
'order' => 'ASC',
'id' => 'name',
'table' => 'term_data',
'field' => 'name',
'override' => array(
'button' => 'Übersteuern',
),
'relationship' => 'none',
),
));
$handler->override_option('filters', array(
'vid' => array(
'operator' => 'in',
'value' => array(
'9' => '9',
),
'group' => '0',
'exposed' => FALSE,
'expose' => array(
'operator' => FALSE,
'label' => '',
),
'id' => 'vid',
'table' => 'term_data',
'field' => 'vid',
'override' => array(
'button' => 'Übersteuern',
),
'relationship' => 'none',
),
'tid' => array(
'operator' => 'or',
'value' => '',
'group' => '0',
'exposed' => TRUE,
'expose' => array(
'use_operator' => 0,
'operator' => 'tid_op',
'identifier' => 'ort',
'label' => 'Ort',
'optional' => 1,
'single' => 1,
'remember' => 0,
),
'type' => 'textfield',
'limit' => TRUE,
'vid' => '9',
'id' => 'tid',
'table' => 'term_data',
'field' => 'tid',
'hierarchy' => 0,
'relationship' => 'none',
'reduce_duplicates' => 0,
),
));
$handler->override_option('access', array(
'type' => 'role',
'role' => array(
'3' => 3,
),
));
$handler->override_option('cache', array(
'type' => 'none',
));
$handler->override_option('title', 'Übersicht Orte');
$handler->override_option('footer', '<div style="float:right;"><a href="/admin/content/taxonomy/9/add/term">neuen Ort anlegen</a></div>');
$handler->override_option('footer_format', '2');
$handler->override_option('footer_empty', 1);
$handler->override_option('use_pager', '1');
$handler->override_option('style_plugin', 'gmaps_map');
$handler->override_option('style_options', array(
'grouping' => '',
'preset' => '9',
));
$handler->override_option('row_plugin', 'gmaps_map_marker_fields');
$handler->override_option('row_options', array(
'title_field' => '',
'min' => array(
'content' => array(
'name' => 'name',
),
'inline' => array(
'name' => 'name',
),
'separator' => '',
'hide_empty' => 0,
),
'tabs' => array(
'tab_0' => array(
'title' => '',
'content' => array(),
'inline' => array(),
'separator' => '',
'hide_empty' => 0,
),
'tab_1' => array(
'title' => '',
'content' => array(),
'inline' => array(),
'separator' => '',
'hide_empty' => 0,
),
'tab_2' => array(
'title' => '',
'content' => array(),
'inline' => array(),
'separator' => '',
'hide_empty' => 0,
),
'tab_3' => array(
'title' => '',
'content' => array(),
'inline' => array(),
'separator' => '',
'hide_empty' => 0,
),
'tab_4' => array(
'title' => '',
'content' => array(),
'inline' => array(),
'separator' => '',
'hide_empty' => 0,
),
),
'max' => array(
'content' => array(
'name' => 'name',
),
'inline' => array(
'name' => 'name',
),
'separator' => '',
'hide_empty' => 0,
),
));
$handler = $view->new_display('panel_pane', 'VP Ort', 'panel_pane_1');
$handler->override_option('pane_title', 'VP Ort');
$handler->override_option('pane_description', '');
$handler->override_option('pane_category', array(
'name' => 'View panes',
'weight' => 0,
));
$handler->override_option('allow', array(
'use_pager' => FALSE,
'items_per_page' => FALSE,
'offset' => FALSE,
'link_to_view' => FALSE,
'more_link' => FALSE,
'path_override' => FALSE,
'title_override' => FALSE,
'exposed_form' => FALSE,
));
$handler->override_option('argument_input', array());
$handler->override_option('link_to_view', 0);
$handler->override_option('inherit_panels_path', 0);
Thanks in advance,
Ralf
Comments
Comment #1
xmarket commentedYou should have the required field in the category "Term marker option" named as "Point option - " (f.e. "Point option - Earth"). Do you have it?
Comment #2
R.Hendel commentedI have no option group "Term marker option"
My only options for term-based views are:
Could this have something to do with error message "Argument #2 is not an array"?
Any Ideas?
Thanks in advance,
Ralf
Comment #3
xmarket commented