-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathGoogleMaps_GroundOverlayModel.php
31 lines (28 loc) · 1.09 KB
/
GoogleMaps_GroundOverlayModel.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
namespace Craft;
class GoogleMaps_GroundOverlayModel extends BaseModel
{
public function toJson()
{
return json_encode($this->getAttributes());
}
public function getStaticMapParameters()
{
// return 'markers=' . urldecode(!empty($this->address) ? $this->address : $this->lat.','.$this->lng);
}
protected function defineAttributes()
{
return array(
// Location Parameters
'title' => array(AttributeType::String, 'default' => ''),
'content' => array(AttributeType::String, 'default' => ''),
'ne' => array(AttributeType::Mixed, 'default' => array()),
'sw' => array(AttributeType::Mixed, 'default' => array()),
'url' => array(AttributeType::Bool, 'default' => false),
'opacity' => array(AttributeType::Number, 'default' => 1),
'isNew' => array(AttributeType::Bool, 'default' => true),
'elementId' => array(AttributeType::Mixed, 'default' => false),
'deleted' => array(AttributeType::Bool, 'default' => false),
);
}
}