$view = new view; $view->name = 'OLdemoBWP'; $view->description = 'OLdemoBWP'; $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( 'latitude' => array( 'label' => 'Latitude', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'style' => 'dd', 'exclude' => 0, 'id' => 'latitude', 'table' => 'location', 'field' => 'latitude', 'relationship' => 'none', ), 'longitude' => array( 'label' => 'Longitude', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'style' => 'dd', 'exclude' => 0, 'id' => 'longitude', 'table' => 'location', 'field' => 'longitude', 'relationship' => 'none', ), 'title' => array( 'label' => 'Title', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'link_to_node' => 1, 'exclude' => 0, 'id' => 'title', 'table' => 'node', 'field' => 'title', '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', 'relationship' => 'none', ), 'type' => array( 'operator' => 'in', 'value' => array( 'place' => 'place', ), 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'type', 'table' => 'node', 'field' => 'type', 'relationship' => 'none', ), 'latitude' => array( 'operator' => '>', 'value' => array( 'value' => '0', 'min' => '', 'max' => '', ), 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'latitude', 'table' => 'location', 'field' => 'latitude', 'relationship' => 'none', ), )); $handler->override_option('access', array( 'type' => 'none', )); $handler->override_option('cache', array( 'type' => 'none', )); $handler->override_option('style_plugin', 'openlayers_data'); $handler->override_option('style_options', array( 'grouping' => '', 'data_source' => array( 'value' => array( 'other_latlon' => 'other_latlon', ), 'other_lat' => 'latitude', 'other_lon' => 'longitude', 'openlayers_wkt' => 'latitude', 'other_top' => 'latitude', 'other_right' => 'latitude', 'other_bottom' => 'latitude', 'other_left' => 'latitude', 'name_field' => '', 'description_field' => '#all_fields', ), )); $handler = $view->new_display('openlayers', 'OpenLayers Data', 'openlayers_1'); $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' => 'odemobwp', )); $handler->override_option('path', 'OLdemoBWP'); $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, ));