$view = new view; $view->name = 'Map_Test'; $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('fields', array( 'field_location_openlayers_wkt' => 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, 'label_type' => 'none', 'format' => 'openlayers_wkt', 'multiple' => array( 'group' => TRUE, 'multiple_number' => '', 'multiple_from' => '', 'multiple_reversed' => FALSE, ), 'exclude' => 0, 'id' => 'field_location_openlayers_wkt', 'table' => 'node_data_field_location', 'field' => 'field_location_openlayers_wkt', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), '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' => 1, 'exclude' => 0, 'id' => 'title', 'table' => 'node', 'field' => 'title', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), 'body' => 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, 'exclude' => 0, 'id' => 'body', 'table' => 'node_revisions', 'field' => 'body', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), )); $handler->override_option('filters', array( 'status' => array( 'operator' => '=', 'value' => '1', 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'status', 'table' => 'node', 'field' => 'status', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), 'type' => array( 'operator' => 'in', 'value' => array( 'page' => 'page', ), 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'type', 'table' => 'node', 'field' => 'type', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), )); $handler->override_option('access', array( 'type' => 'none', )); $handler->override_option('cache', array( 'type' => 'none', )); $handler->override_option('items_per_page', 0); $handler->override_option('style_plugin', 'openlayers_data'); $handler->override_option('style_options', array( 'grouping' => '', 'data_source' => array( 'value' => array( 'openlayers_wkt' => 'openlayers_wkt', ), 'other_lat' => 'field_location_openlayers_wkt', 'other_lon' => 'field_location_openlayers_wkt', 'openlayers_wkt' => 'field_location_openlayers_wkt', 'other_top' => 'field_location_openlayers_wkt', 'other_right' => 'field_location_openlayers_wkt', 'other_bottom' => 'field_location_openlayers_wkt', 'other_left' => 'field_location_openlayers_wkt', 'name_field' => 'title', 'description_field' => '#all_fields', ), )); $handler = $view->new_display('openlayers', 'OpenLayers Data', 'openlayers_1'); $handler->override_option('row_options', array( 'inline' => array(), 'separator' => '', 'hide_empty' => 0, )); $handler->override_option('displays', array()); $handler = $view->new_display('attachment', 'Attachment', 'attachment_1'); $handler->override_option('style_plugin', 'default'); $handler->override_option('style_options', array()); $handler->override_option('attachment_position', 'before'); $handler->override_option('inherit_arguments', TRUE); $handler->override_option('inherit_exposed_filters', FALSE); $handler->override_option('inherit_pager', FALSE); $handler->override_option('render_pager', TRUE); $handler->override_option('displays', array()); $handler = $view->new_display('page', 'Page', 'page_1'); $handler->override_option('style_plugin', 'openlayers_map'); $handler->override_option('style_options', array( 'preset' => 'default2', )); $handler->override_option('path', 'test-map'); $handler->override_option('menu', array( 'type' => 'normal', 'title' => 'Test Map', 'description' => '', 'weight' => '0', 'name' => 'primary-links', )); $handler->override_option('tab_options', array( 'type' => 'none', 'title' => '', 'description' => '', 'weight' => 0, 'name' => 'navigation', ));