SiteConfigExtension
extends DataExtension
in package
Class \Firesphere\OpenStreetmaps\Extensions\SiteConfigExtension
Table of Contents
Properties
- $CenterLat : float
- $CenterLng : float
- $Container : string
- $DefaultZoom : int
- $GlobalMap : bool
- $MaxZoom : int
- $owner : SiteConfig|SiteConfigExtension
- $PopupTemplate : string
- $Style : string
- $map_styles : mixed
- $db : mixed
- $defaults : mixed
Methods
- updateCMSFields() : mixed
Properties
$CenterLat
public
float
$CenterLat
$CenterLng
public
float
$CenterLng
$Container
public
string
$Container
$DefaultZoom
public
int
$DefaultZoom
$GlobalMap
public
bool
$GlobalMap
$MaxZoom
public
int
$MaxZoom
$owner
public
SiteConfig|SiteConfigExtension
$owner
$PopupTemplate
public
string
$PopupTemplate
$Style
public
string
$Style
$map_styles
protected
static mixed
$map_styles
= ['mapbox/streets-v12' => 'Mapbox Streets', 'mapbox/light-v11' => 'Mapbox Light', 'mapbox/dark-v11' => 'Mapbox Dark', 'mapbox/outdoors-v12' => 'Mapbox Outdoors', 'mapbox/satellite-v9' => 'Mapbox Satellite', 'mapbox/satellite-streets-v12' => 'Mapbox Satellite Streets']
$db
private
static mixed
$db
= ['DefaultZoom' => \SilverStripe\ORM\FieldType\DBInt::class, 'GlobalMap' => \SilverStripe\ORM\FieldType\DBBoolean::class, 'Container' => \SilverStripe\ORM\FieldType\DBVarchar::class, 'Style' => \SilverStripe\ORM\FieldType\DBVarchar::class, 'CenterLat' => \SilverStripe\ORM\FieldType\DBDecimal::class . '(16,12)', 'CenterLng' => \SilverStripe\ORM\FieldType\DBDecimal::class . '(16,12)', 'MaxZoom' => \SilverStripe\ORM\FieldType\DBInt::class, 'PopupTemplate' => \SilverStripe\ORM\FieldType\DBText::class]
$defaults
private
static mixed
$defaults
= ['DefaultZoom' => 10, 'GlobalMap' => false, 'Container' => 'map', 'Style' => 'mapbox/streets-v12', 'CenterLat' => '0.0', 'CenterLng' => '0.0', 'MaxZoom' => 18]
Methods
updateCMSFields()
public
updateCMSFields(FieldList $fields) : mixed
Parameters
- $fields : FieldList