NZTA\LeafletField\Forms\LeafletField
Synopsis
class LeafletField
extends FormField
{
- // members
- private static array $map_options = ;
- private static array $draw_options = ;
- protected DataObject $data;
- protected FormField $geometryField;
- protected array $options = ;
- protected array $geoJsonlayers = ;
- protected array $geoJsonlayersStyle = ;
- // methods
- public void __construct()
- public FieldList setupChildren()
- public DBHTMLText Field()
- public String getMapOptionsJS()
- public array getMapOptions()
- public string getDrawOptionsJS()
- public array getDrawOptions()
- public string getGeoJsonlayersJS()
- public string getGeoJsonlayersStyleJS()
- protected void requireDependencies()
- public $this|FormField setValue()
- public void saveInto()
- public FieldList getChildFields()
- public string getGeometry()
- public void setDrawOptions()
- public void setLimit()
- public void setMapOptions()
- public void setGeoJsonLayers()
- public void setGeoJsonLayersStyle()
Hierarchy
Extends
- SilverStripe\Forms\FormField
Members
private
- $draw_options — array
- $map_options — array
protected
- $data — SilverStripe\ORM\DataObject
- $geoJsonlayers — array
- $geoJsonlayersStyle — array
- $geometryField — SilverStripe\Forms\FormField
- $options — array
Methods
protected
public
- __construct()
- Field()
- getChildFields()
- getDrawOptions() — Return the L.Control.Draw options.
- getDrawOptionsJS() — Return the draw options as a json string.
- getGeoJsonlayersJS() — Return additional geoJsonlayers to display on the map.
- getGeoJsonlayersStyleJS() — Return additional geoJsonlayers style to display on the map.
- getGeometry()
- getMapOptions() — Return the L.map options.
- getMapOptionsJS() — Return the map options as a json string.
- saveInto()
- setDrawOptions() — Set the draw options, will override the config defaults.
- setGeoJsonLayers() — Set the additional geoJson layers (readonly)
- setGeoJsonLayersStyle() — Set the additional geoJson layers style (readonly)
- setLimit() — Set the limit of layers that can be added
- setMapOptions() — Set the map options, will override the config defaults.
- setValue()
- setupChildren() — Set up child hidden fields.