\ListFilterWidgetGoogleMap
Synopsis
class ListFilterWidgetGoogleMap
extends ListFilterWidget
{
- // constants
- const CENTER_LATITUDE = 0;
- const CENTER_LONGITUDE = 1;
- // members
- private static array $allowed_actions = ;
- protected $ajaxEnabled = NULL;
- protected $popupEnabled = NULL;
- protected $isScrollwheelLocked = NULL;
- protected array $center = ;
- private static $api_key = NULL;
- private static boolean $default_ajax_disabled = false;
- private static boolean $default_popup_disabled = false;
- private static boolean $default_is_scrollwheel_locked_disabled = false;
- // Inherited members from ListFilterWidget
- protected $list;
- protected ListFilterForm $form;
- protected DataObject $record;
- protected $extraClasses;
- protected $_cache_data_attributes_html;
- // methods
- public void __construct()
- public string doGetFeatures()
- public string doGetPopup()
- public array getFeatureCollection()
- public boolean setIsScrollwheelLocked()
- public boolean getIsScrollwheelLocked()
- public $this setCenter()
- public array getCenter()
- public $this setAJAXEnabled()
- public boolean getAJAXEnabled()
- public $this setPopupEnabled()
- public boolean getPopupEnabled()
- public HTMLText getPopupTemplate()
- public void onBeforeRender()
- public void getDataAttributes()
- public string|null getAPIKey()
- // Inherited methods from ListFilterWidget
- public void __construct()
- public void onBeforeRender()
- public ListFilterSet getListFilterSet()
- public ListFilterWidget setForm()
- public ListFilterForm getForm()
- public SiteTree getPage()
- public DataObject setRecord()
- public DataObject getRecord()
- public SS_List BaseList()
- public SS_List FilteredList()
- public ListFilterWidget setList()
- public SS_List getList()
- public array getDataAttributes()
- public final array getDataAttributesAll()
- public void DataAttributesHTML()
- public array getVarData()
- public string Link()
- public string extraClass()
- public $this addExtraClass()
- public $this removeExtraClass()
- public array getTemplates()
- public HTMLText forTemplate()
Hierarchy
Extends
Tasks
Line | Task |
---|---|
253 | (Jake): Add and test |
Constants
Name | Value |
---|---|
CENTER_LATITUDE | 0 |
CENTER_LONGITUDE | 1 |
Members
private
- $allowed_actions
- $api_key
—
string
The Google Maps API key - $default_ajax_disabled
—
boolean
Configure if the widget loads all feature data and popup data inside the data attributes or via AJAX. - $default_is_scrollwheel_locked_disabled
—
boolean
Configure the widget to either not lock/unlock scrollzoom on map focus/unfocus. - $default_popup_disabled
—
boolean
Configure the widget to disable use of popup template.
protected
- $_cache_data_attributes_html
- $ajaxEnabled
—
boolean
Set if the widget loads all feature data and popup data inside the data attributes (false) or via AJAX (true). - $center
—
array
Set the center position of the map, if none set, it will default to the current set record or pages 'Lat' and 'Lng' fields. - $extraClasses
—
array
Extra CSS classes - $form — ListFilterForm
- $isScrollwheelLocked
—
boolean
Set if the widget will not zoom on mouse scroll until being clicked/focused. -
$list
A custom set list to use for the widget - $popupEnabled
—
boolean
Set if the widget loads a template when clicking a marker. - $record — DataObject
Methods
public
- __construct() — {@inheritdoc}
- doGetFeatures() — Retrieve FeatureCollection for Google Map
- doGetPopup() — Get popup for record
- getAJAXEnabled()
- getAPIKey()
- getCenter()
- getDataAttributes() — {@inheritdoc}
- getFeatureCollection()
- getIsScrollwheelLocked()
- getPopupEnabled()
- getPopupTemplate()
- onBeforeRender() — {@inheritdoc}
- setAJAXEnabled()
- setCenter()
- setIsScrollwheelLocked()
- setPopupEnabled()
Inherited from ListFilterWidget
public
- BaseList()
- DataAttributesHTML()
- FilteredList()
- Link()
- addExtraClass() — Add one or more CSS-classes
- extraClass() — Compiles all CSS-classes set on this.
- forTemplate()
- getDataAttributes()
- getDataAttributesAll()
- getForm()
- getList()
- getListFilterSet()
- getPage() — Get current page
- getRecord()
- getTemplates()
- getVarData() — If visiting the page with GET parameterss.
- onBeforeRender()
- removeExtraClass() — Remove one or more CSS-classes
- setForm()
- setList() — Override the list used for the widget.
- setRecord()