Smindel\GIS\Forms\MapField
Synopsis
class MapField
extends FormField
{
- // members
- private static array $default_location = ;
- private static string $initial_layer = 'streets';
- private static integer $default_zoom = 13;
- protected boolean $multiEnabled = false;
- protected boolean $hideFormField = false;
- protected array $controls = ;
- // methods
- public void Field()
- public void setValue()
- public void setControl()
- public void getControls()
- public static void getDefaultSRID()
- public void getDefaultLocation()
- public static void getDefaultZoom()
- public void enableMulti()
- public void hideFormField()
- public void getMultiEnabled()
- public void getInitialLayer()
Hierarchy
Extends
- SilverStripe\Forms\FormField
Members
private
- $default_location
—
array
Center for the map widget if the MapField is empty, in Long, Lat (EPSG:4326) - $default_zoom
—
int
Zoom level of the map widget if the MapField is empty - $initial_layer
—
string
The initial layer to show when editing. The only other permitted value is 'satellite', anything else will default to 'streets' in order that a map appears in the editing widget
protected
- $controls
- $hideFormField
- $multiEnabled
—
boolean
Whether the user can create complex gemoetries like e.g. MultiPoints