@@ -7,6 +7,6 @@ |
||
7 | 7 | private static $menu_icon = '/mappable/icons/menuicon.png'; |
8 | 8 | |
9 | 9 | static $has_one = array( |
10 | - 'DefaultIcon' => 'Image' |
|
10 | + 'DefaultIcon' => 'Image' |
|
11 | 11 | ); |
12 | 12 | } |
@@ -14,8 +14,8 @@ discard block |
||
14 | 14 | private static $default_sort = 'Name'; |
15 | 15 | |
16 | 16 | function getCMSFields() { |
17 | - $fields = parent::getCMSFields(); |
|
18 | - $fields->addFieldToTab('Root.Main', new TextField('Name', 'Name of the item on the map')); |
|
17 | + $fields = parent::getCMSFields(); |
|
18 | + $fields->addFieldToTab('Root.Main', new TextField('Name', 'Name of the item on the map')); |
|
19 | 19 | |
20 | 20 | $layers = $this->PointsOfInterestLayer(); |
21 | 21 | $ids = array(); |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | $this->owner->getMapField()->setGuidePoints($pois); |
37 | 37 | } |
38 | 38 | |
39 | - return $fields; |
|
39 | + return $fields; |
|
40 | 40 | } |
41 | 41 | |
42 | 42 | /* |
@@ -4,13 +4,13 @@ |
||
4 | 4 | public static $has_one = array('PointsOfInterestLayer' => 'PointsOfInterestLayer'); |
5 | 5 | |
6 | 6 | function getCMSFields() { |
7 | - $fields = parent::getCMSFields(); |
|
8 | - $field = DropdownField::create('PointsOfInterestLayerID', 'PointsOfInterestLayer', |
|
9 | - PointsOfInterestLayer::get()->map('ID', 'Title')) |
|
10 | - ->setEmptyString('-- Select one --'); |
|
11 | - $fields->addFieldToTab('Root.Layer', $field); |
|
7 | + $fields = parent::getCMSFields(); |
|
8 | + $field = DropdownField::create('PointsOfInterestLayerID', 'PointsOfInterestLayer', |
|
9 | + PointsOfInterestLayer::get()->map('ID', 'Title')) |
|
10 | + ->setEmptyString('-- Select one --'); |
|
11 | + $fields->addFieldToTab('Root.Layer', $field); |
|
12 | 12 | |
13 | - return $fields; |
|
13 | + return $fields; |
|
14 | 14 | } |
15 | 15 | } |
16 | 16 |
@@ -8,12 +8,12 @@ |
||
8 | 8 | |
9 | 9 | // given millions of possible POIs an index is handy |
10 | 10 | private static $indexes = array( |
11 | - 'OpenStreetMapID' => true |
|
11 | + 'OpenStreetMapID' => true |
|
12 | 12 | ); |
13 | 13 | |
14 | 14 | |
15 | 15 | /* The openstreetmap id is only for scripting purposes */ |
16 | - public function updateCMSFields(FieldList $fields) { |
|
16 | + public function updateCMSFields(FieldList $fields) { |
|
17 | 17 | $fields->removeByName('OpenStreetMapID'); |
18 | 18 | } |
19 | 19 | } |
@@ -7,6 +7,6 @@ |
||
7 | 7 | private static $menu_icon = '/mappable/icons/menuicon.png'; |
8 | 8 | |
9 | 9 | static $has_one = array( |
10 | - 'DefaultIcon' => 'Image' |
|
10 | + 'DefaultIcon' => 'Image' |
|
11 | 11 | ); |
12 | 12 | } |