Last active
May 5, 2021 12:57
-
-
Save jackrabbithanna/258853fbdf20dc90db9695bb817c1151 to your computer and use it in GitHub Desktop.
CiviCRM Entity, Leaflet Map with Markerclusters + Proximity Filter example View config export
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| langcode: en | |
| status: true | |
| dependencies: | |
| module: | |
| - civicrm_entity | |
| - civicrm_entity_leaflet | |
| - options | |
| id: proximity_with_map | |
| label: 'Proximity with Map' | |
| module: views | |
| description: '' | |
| tag: '' | |
| base_table: civicrm_contact | |
| base_field: id | |
| display: | |
| default: | |
| display_plugin: default | |
| id: default | |
| display_title: Master | |
| position: 0 | |
| display_options: | |
| access: | |
| type: none | |
| options: { } | |
| cache: | |
| type: tag | |
| options: { } | |
| query: | |
| type: views_query | |
| options: | |
| disable_sql_rewrite: false | |
| distinct: false | |
| replica: false | |
| query_comment: '' | |
| query_tags: { } | |
| exposed_form: | |
| type: basic | |
| options: | |
| submit_button: Apply | |
| reset_button: false | |
| reset_button_label: Reset | |
| exposed_sorts_label: 'Sort by' | |
| expose_sort_order: true | |
| sort_asc_label: Asc | |
| sort_desc_label: Desc | |
| pager: | |
| type: some | |
| options: | |
| items_per_page: 10 | |
| offset: 0 | |
| style: | |
| type: civicrm_entity_address_leaflet_map | |
| options: | |
| grouping: { } | |
| data_source_lat: geo_code_1 | |
| data_source_lon: geo_code_2 | |
| entity_source: __base_table | |
| entity_source_submit: 'Update Entity Source' | |
| name_field: '' | |
| description_field: nothing | |
| view_mode: test_civi_con | |
| leaflet_map: 'OSM Mapnik' | |
| height: '600' | |
| height_unit: px | |
| hide_empty_map: 0 | |
| disable_wheel: 0 | |
| fullscreen_control: 1 | |
| gesture_handling: 0 | |
| reset_map: | |
| control: 0 | |
| position: topright | |
| map_position: | |
| force: 0 | |
| center: | |
| lat: '0' | |
| lon: '0' | |
| zoom: '12' | |
| minZoom: '1' | |
| maxZoom: '18' | |
| zoomFiner: '0' | |
| weight: '' | |
| icon: | |
| iconType: marker | |
| iconUrl: '' | |
| shadowUrl: '' | |
| className: '' | |
| html: '<div></div>' | |
| html_class: leaflet-map-divicon | |
| circle_marker_options: '{"radius":100,"color":"red","fillColor":"#f03","fillOpacity":0.5}' | |
| iconSize: | |
| x: '' | |
| 'y': '' | |
| iconAnchor: | |
| x: '' | |
| 'y': '' | |
| shadowSize: | |
| x: '' | |
| 'y': '' | |
| shadowAnchor: | |
| x: '' | |
| 'y': '' | |
| popupAnchor: | |
| x: '' | |
| 'y': '' | |
| leaflet_markercluster: | |
| control: 1 | |
| options: '{"spiderfyOnMaxZoom":true,"showCoverageOnHover":true,"removeOutsideVisibleBounds":false}' | |
| include_path: 0 | |
| path: '{"color":"#3388ff","opacity":"1.0","stroke":true,"weight":3,"fill":"depends","fillColor":"*","fillOpacity":"0.2","radius":"6"}' | |
| row: | |
| type: fields | |
| options: | |
| default_field_elements: true | |
| inline: { } | |
| separator: '' | |
| hide_empty: false | |
| fields: | |
| display_name: | |
| table: civicrm_contact | |
| field: display_name | |
| id: display_name | |
| entity_type: null | |
| entity_field: display_name | |
| plugin_id: field | |
| relationship: none | |
| group_type: group | |
| admin_label: '' | |
| label: '' | |
| exclude: false | |
| alter: | |
| alter_text: false | |
| text: '' | |
| make_link: false | |
| path: '' | |
| absolute: false | |
| external: false | |
| replace_spaces: false | |
| path_case: none | |
| trim_whitespace: false | |
| alt: '' | |
| rel: '' | |
| link_class: '' | |
| prefix: '' | |
| suffix: '' | |
| target: '' | |
| nl2br: false | |
| max_length: 0 | |
| word_boundary: true | |
| ellipsis: true | |
| more_link: false | |
| more_link_text: '' | |
| more_link_path: '' | |
| strip_tags: false | |
| trim: false | |
| preserve_tags: '' | |
| html: false | |
| element_type: '' | |
| element_class: '' | |
| element_label_type: '' | |
| element_label_class: '' | |
| element_label_colon: true | |
| element_wrapper_type: '' | |
| element_wrapper_class: '' | |
| element_default_classes: true | |
| empty: '' | |
| hide_empty: false | |
| empty_zero: false | |
| hide_alter_empty: true | |
| click_sort_column: value | |
| type: string | |
| settings: { } | |
| group_column: value | |
| group_columns: { } | |
| group_rows: true | |
| delta_limit: 0 | |
| delta_offset: 0 | |
| delta_reversed: false | |
| delta_first_last: false | |
| multi_type: separator | |
| separator: ', ' | |
| field_api_classes: false | |
| city: | |
| id: city | |
| table: civicrm_address | |
| field: city | |
| relationship: reverse__civicrm_address__contact_id | |
| group_type: group | |
| admin_label: '' | |
| label: City | |
| exclude: false | |
| alter: | |
| alter_text: false | |
| text: '' | |
| make_link: false | |
| path: '' | |
| absolute: false | |
| external: false | |
| replace_spaces: false | |
| path_case: none | |
| trim_whitespace: false | |
| alt: '' | |
| rel: '' | |
| link_class: '' | |
| prefix: '' | |
| suffix: '' | |
| target: '' | |
| nl2br: false | |
| max_length: 0 | |
| word_boundary: true | |
| ellipsis: true | |
| more_link: false | |
| more_link_text: '' | |
| more_link_path: '' | |
| strip_tags: false | |
| trim: false | |
| preserve_tags: '' | |
| html: false | |
| element_type: '' | |
| element_class: '' | |
| element_label_type: '' | |
| element_label_class: '' | |
| element_label_colon: true | |
| element_wrapper_type: '' | |
| element_wrapper_class: '' | |
| element_default_classes: true | |
| empty: '' | |
| hide_empty: false | |
| empty_zero: false | |
| hide_alter_empty: true | |
| click_sort_column: value | |
| type: string | |
| settings: | |
| link_to_entity: false | |
| group_column: value | |
| group_columns: { } | |
| group_rows: true | |
| delta_limit: 0 | |
| delta_offset: 0 | |
| delta_reversed: false | |
| delta_first_last: false | |
| multi_type: separator | |
| separator: ', ' | |
| field_api_classes: false | |
| entity_type: civicrm_address | |
| entity_field: city | |
| plugin_id: field | |
| state_province_id: | |
| id: state_province_id | |
| table: civicrm_address | |
| field: state_province_id | |
| relationship: reverse__civicrm_address__contact_id | |
| group_type: group | |
| admin_label: '' | |
| label: State/Province | |
| exclude: false | |
| alter: | |
| alter_text: false | |
| text: '' | |
| make_link: false | |
| path: '' | |
| absolute: false | |
| external: false | |
| replace_spaces: false | |
| path_case: none | |
| trim_whitespace: false | |
| alt: '' | |
| rel: '' | |
| link_class: '' | |
| prefix: '' | |
| suffix: '' | |
| target: '' | |
| nl2br: false | |
| max_length: 0 | |
| word_boundary: true | |
| ellipsis: true | |
| more_link: false | |
| more_link_text: '' | |
| more_link_path: '' | |
| strip_tags: false | |
| trim: false | |
| preserve_tags: '' | |
| html: false | |
| element_type: '' | |
| element_class: '' | |
| element_label_type: '' | |
| element_label_class: '' | |
| element_label_colon: true | |
| element_wrapper_type: '' | |
| element_wrapper_class: '' | |
| element_default_classes: true | |
| empty: '' | |
| hide_empty: false | |
| empty_zero: false | |
| hide_alter_empty: true | |
| click_sort_column: value | |
| type: list_default | |
| settings: { } | |
| group_column: value | |
| group_columns: { } | |
| group_rows: true | |
| delta_limit: 0 | |
| delta_offset: 0 | |
| delta_reversed: false | |
| delta_first_last: false | |
| multi_type: separator | |
| separator: ', ' | |
| field_api_classes: false | |
| entity_type: civicrm_address | |
| entity_field: state_province_id | |
| plugin_id: field | |
| country_id: | |
| id: country_id | |
| table: civicrm_address | |
| field: country_id | |
| relationship: reverse__civicrm_address__contact_id | |
| group_type: group | |
| admin_label: '' | |
| label: Country | |
| exclude: false | |
| alter: | |
| alter_text: false | |
| text: '' | |
| make_link: false | |
| path: '' | |
| absolute: false | |
| external: false | |
| replace_spaces: false | |
| path_case: none | |
| trim_whitespace: false | |
| alt: '' | |
| rel: '' | |
| link_class: '' | |
| prefix: '' | |
| suffix: '' | |
| target: '' | |
| nl2br: false | |
| max_length: 0 | |
| word_boundary: true | |
| ellipsis: true | |
| more_link: false | |
| more_link_text: '' | |
| more_link_path: '' | |
| strip_tags: false | |
| trim: false | |
| preserve_tags: '' | |
| html: false | |
| element_type: '' | |
| element_class: '' | |
| element_label_type: '' | |
| element_label_class: '' | |
| element_label_colon: true | |
| element_wrapper_type: '' | |
| element_wrapper_class: '' | |
| element_default_classes: true | |
| empty: '' | |
| hide_empty: false | |
| empty_zero: false | |
| hide_alter_empty: true | |
| click_sort_column: target_id | |
| type: entity_reference_label | |
| settings: | |
| link: true | |
| group_column: target_id | |
| group_columns: { } | |
| group_rows: true | |
| delta_limit: 0 | |
| delta_offset: 0 | |
| delta_reversed: false | |
| delta_first_last: false | |
| multi_type: separator | |
| separator: ', ' | |
| field_api_classes: false | |
| entity_type: civicrm_address | |
| entity_field: country_id | |
| plugin_id: field | |
| postal_code: | |
| id: postal_code | |
| table: civicrm_address | |
| field: postal_code | |
| relationship: reverse__civicrm_address__contact_id | |
| group_type: group | |
| admin_label: '' | |
| label: 'Postal Code' | |
| exclude: false | |
| alter: | |
| alter_text: false | |
| text: '' | |
| make_link: false | |
| path: '' | |
| absolute: false | |
| external: false | |
| replace_spaces: false | |
| path_case: none | |
| trim_whitespace: false | |
| alt: '' | |
| rel: '' | |
| link_class: '' | |
| prefix: '' | |
| suffix: '' | |
| target: '' | |
| nl2br: false | |
| max_length: 0 | |
| word_boundary: true | |
| ellipsis: true | |
| more_link: false | |
| more_link_text: '' | |
| more_link_path: '' | |
| strip_tags: false | |
| trim: false | |
| preserve_tags: '' | |
| html: false | |
| element_type: '' | |
| element_class: '' | |
| element_label_type: '' | |
| element_label_class: '' | |
| element_label_colon: true | |
| element_wrapper_type: '' | |
| element_wrapper_class: '' | |
| element_default_classes: true | |
| empty: '' | |
| hide_empty: false | |
| empty_zero: false | |
| hide_alter_empty: true | |
| click_sort_column: value | |
| type: string | |
| settings: | |
| link_to_entity: false | |
| group_column: value | |
| group_columns: { } | |
| group_rows: true | |
| delta_limit: 0 | |
| delta_offset: 0 | |
| delta_reversed: false | |
| delta_first_last: false | |
| multi_type: separator | |
| separator: ', ' | |
| field_api_classes: false | |
| entity_type: civicrm_address | |
| entity_field: postal_code | |
| plugin_id: field | |
| geo_code_2: | |
| id: geo_code_2 | |
| table: civicrm_address | |
| field: geo_code_2 | |
| relationship: reverse__civicrm_address__contact_id | |
| group_type: group | |
| admin_label: '' | |
| label: Longitude | |
| exclude: true | |
| alter: | |
| alter_text: false | |
| text: '' | |
| make_link: false | |
| path: '' | |
| absolute: false | |
| external: false | |
| replace_spaces: false | |
| path_case: none | |
| trim_whitespace: false | |
| alt: '' | |
| rel: '' | |
| link_class: '' | |
| prefix: '' | |
| suffix: '' | |
| target: '' | |
| nl2br: false | |
| max_length: 0 | |
| word_boundary: true | |
| ellipsis: true | |
| more_link: false | |
| more_link_text: '' | |
| more_link_path: '' | |
| strip_tags: false | |
| trim: false | |
| preserve_tags: '' | |
| html: false | |
| element_type: '' | |
| element_class: '' | |
| element_label_type: '' | |
| element_label_class: '' | |
| element_label_colon: true | |
| element_wrapper_type: '' | |
| element_wrapper_class: '' | |
| element_default_classes: true | |
| empty: '' | |
| hide_empty: false | |
| empty_zero: false | |
| hide_alter_empty: true | |
| click_sort_column: value | |
| type: number_decimal | |
| settings: | |
| thousand_separator: '' | |
| prefix_suffix: false | |
| decimal_separator: . | |
| scale: 2 | |
| group_column: value | |
| group_columns: { } | |
| group_rows: true | |
| delta_limit: 0 | |
| delta_offset: 0 | |
| delta_reversed: false | |
| delta_first_last: false | |
| multi_type: separator | |
| separator: ', ' | |
| field_api_classes: false | |
| entity_type: civicrm_address | |
| entity_field: geo_code_2 | |
| plugin_id: field | |
| geo_code_1: | |
| id: geo_code_1 | |
| table: civicrm_address | |
| field: geo_code_1 | |
| relationship: reverse__civicrm_address__contact_id | |
| group_type: group | |
| admin_label: '' | |
| label: Latitude | |
| exclude: true | |
| alter: | |
| alter_text: false | |
| text: '' | |
| make_link: false | |
| path: '' | |
| absolute: false | |
| external: false | |
| replace_spaces: false | |
| path_case: none | |
| trim_whitespace: false | |
| alt: '' | |
| rel: '' | |
| link_class: '' | |
| prefix: '' | |
| suffix: '' | |
| target: '' | |
| nl2br: false | |
| max_length: 0 | |
| word_boundary: true | |
| ellipsis: true | |
| more_link: false | |
| more_link_text: '' | |
| more_link_path: '' | |
| strip_tags: false | |
| trim: false | |
| preserve_tags: '' | |
| html: false | |
| element_type: '' | |
| element_class: '' | |
| element_label_type: '' | |
| element_label_class: '' | |
| element_label_colon: true | |
| element_wrapper_type: '' | |
| element_wrapper_class: '' | |
| element_default_classes: true | |
| empty: '' | |
| hide_empty: false | |
| empty_zero: false | |
| hide_alter_empty: true | |
| click_sort_column: value | |
| type: number_decimal | |
| settings: | |
| thousand_separator: '' | |
| prefix_suffix: false | |
| decimal_separator: . | |
| scale: 2 | |
| group_column: value | |
| group_columns: { } | |
| group_rows: true | |
| delta_limit: 0 | |
| delta_offset: 0 | |
| delta_reversed: false | |
| delta_first_last: false | |
| multi_type: separator | |
| separator: ', ' | |
| field_api_classes: false | |
| entity_type: civicrm_address | |
| entity_field: geo_code_1 | |
| plugin_id: field | |
| nothing: | |
| id: nothing | |
| table: views | |
| field: nothing | |
| relationship: none | |
| group_type: group | |
| admin_label: '' | |
| label: '' | |
| exclude: false | |
| alter: | |
| alter_text: true | |
| text: "<h4>{{ display_name }}</h4>\r\n<div>Longitude: {{ geo_code_2 }}</div>\r\n<div>Latitude: {{ geo_code_1 }}</div>" | |
| make_link: false | |
| path: '' | |
| absolute: false | |
| external: false | |
| replace_spaces: false | |
| path_case: none | |
| trim_whitespace: false | |
| alt: '' | |
| rel: '' | |
| link_class: '' | |
| prefix: '' | |
| suffix: '' | |
| target: '' | |
| nl2br: false | |
| max_length: 0 | |
| word_boundary: true | |
| ellipsis: true | |
| more_link: false | |
| more_link_text: '' | |
| more_link_path: '' | |
| strip_tags: false | |
| trim: false | |
| preserve_tags: '' | |
| html: false | |
| element_type: '' | |
| element_class: '' | |
| element_label_type: '' | |
| element_label_class: '' | |
| element_label_colon: false | |
| element_wrapper_type: '' | |
| element_wrapper_class: '' | |
| element_default_classes: true | |
| empty: '' | |
| hide_empty: false | |
| empty_zero: false | |
| hide_alter_empty: false | |
| plugin_id: custom | |
| filters: | |
| proximity: | |
| id: proximity | |
| table: civicrm_address | |
| field: proximity | |
| relationship: reverse__civicrm_address__contact_id | |
| group_type: group | |
| admin_label: '' | |
| operator: '=' | |
| value: | |
| value: '' | |
| city: '' | |
| state_province_id: '' | |
| distance: null | |
| distance_unit: miles | |
| group: 1 | |
| exposed: true | |
| expose: | |
| operator_id: '' | |
| label: Proximity | |
| description: '' | |
| use_operator: false | |
| operator: proximity_op | |
| operator_limit_selection: false | |
| operator_list: { } | |
| identifier: proximity | |
| required: false | |
| remember: false | |
| multiple: false | |
| remember_roles: | |
| authenticated: authenticated | |
| anonymous: '0' | |
| administrator: '0' | |
| is_grouped: false | |
| group_info: | |
| label: '' | |
| description: '' | |
| identifier: '' | |
| optional: true | |
| widget: select | |
| multiple: false | |
| remember: false | |
| default_group: All | |
| default_group_multiple: { } | |
| group_items: { } | |
| entity_type: civicrm_address | |
| plugin_id: civicrm_entity_civicrm_address_proximity | |
| geo_code_2: | |
| id: geo_code_2 | |
| table: civicrm_address | |
| field: geo_code_2 | |
| relationship: reverse__civicrm_address__contact_id | |
| group_type: group | |
| admin_label: '' | |
| operator: 'not empty' | |
| value: | |
| min: '' | |
| max: '' | |
| value: '' | |
| group: 1 | |
| exposed: false | |
| expose: | |
| operator_id: '' | |
| label: '' | |
| description: '' | |
| use_operator: false | |
| operator: '' | |
| operator_limit_selection: false | |
| operator_list: { } | |
| identifier: '' | |
| required: false | |
| remember: false | |
| multiple: false | |
| remember_roles: | |
| authenticated: authenticated | |
| placeholder: '' | |
| min_placeholder: '' | |
| max_placeholder: '' | |
| is_grouped: false | |
| group_info: | |
| label: '' | |
| description: '' | |
| identifier: '' | |
| optional: true | |
| widget: select | |
| multiple: false | |
| remember: false | |
| default_group: All | |
| default_group_multiple: { } | |
| group_items: { } | |
| entity_type: civicrm_address | |
| entity_field: geo_code_2 | |
| plugin_id: numeric | |
| geo_code_1: | |
| id: geo_code_1 | |
| table: civicrm_address | |
| field: geo_code_1 | |
| relationship: reverse__civicrm_address__contact_id | |
| group_type: group | |
| admin_label: '' | |
| operator: 'not empty' | |
| value: | |
| min: '' | |
| max: '' | |
| value: '' | |
| group: 1 | |
| exposed: false | |
| expose: | |
| operator_id: '' | |
| label: '' | |
| description: '' | |
| use_operator: false | |
| operator: '' | |
| operator_limit_selection: false | |
| operator_list: { } | |
| identifier: '' | |
| required: false | |
| remember: false | |
| multiple: false | |
| remember_roles: | |
| authenticated: authenticated | |
| placeholder: '' | |
| min_placeholder: '' | |
| max_placeholder: '' | |
| is_grouped: false | |
| group_info: | |
| label: '' | |
| description: '' | |
| identifier: '' | |
| optional: true | |
| widget: select | |
| multiple: false | |
| remember: false | |
| default_group: All | |
| default_group_multiple: { } | |
| group_items: { } | |
| entity_type: civicrm_address | |
| entity_field: geo_code_1 | |
| plugin_id: numeric | |
| sorts: { } | |
| title: 'Leaflet Map + Proximity Filter' | |
| header: { } | |
| footer: { } | |
| empty: { } | |
| relationships: | |
| reverse__civicrm_address__contact_id: | |
| id: reverse__civicrm_address__contact_id | |
| table: civicrm_contact | |
| field: reverse__civicrm_address__contact_id | |
| relationship: none | |
| group_type: group | |
| admin_label: Address | |
| required: false | |
| location_type: '0' | |
| is_billing: 0 | |
| is_primary: 1 | |
| entity_type: civicrm_contact | |
| plugin_id: civicrm_entity_reverse_location | |
| arguments: { } | |
| display_extenders: { } | |
| cache_metadata: | |
| max-age: -1 | |
| contexts: | |
| - 'languages:language_content' | |
| - 'languages:language_interface' | |
| - url | |
| tags: { } | |
| page_1: | |
| display_plugin: page | |
| id: page_1 | |
| display_title: Page | |
| position: 1 | |
| display_options: | |
| display_extenders: | |
| metatag_display_extender: { } | |
| simple_sitemap_display_extender: | |
| variants: { } | |
| index: false | |
| variant: null | |
| priority: '0.5' | |
| changefreq: '' | |
| arguments: { } | |
| max_links: 100 | |
| path: proximity-map | |
| cache_metadata: | |
| max-age: -1 | |
| contexts: | |
| - 'languages:language_content' | |
| - 'languages:language_interface' | |
| - url | |
| tags: { } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment