1 | <?php |
||
9 | class Map_View { |
||
10 | |||
11 | /** |
||
12 | * @var Map |
||
13 | */ |
||
14 | protected $_model; |
||
15 | |||
16 | /** |
||
17 | * Map_View constructor. |
||
18 | * |
||
19 | * @param Map $model |
||
20 | */ |
||
21 | 3 | public function __construct( $model ) { |
|
26 | |||
27 | /** |
||
28 | * @param array $args |
||
29 | */ |
||
30 | 1 | public function the_map( $args = array() ) { |
|
31 | |||
32 | 1 | $args = wp_parse_args( $args, array( |
|
33 | 1 | 'template' => Google_Maps::source_dir() . '/templates/map-view.php', |
|
34 | ) ); |
||
35 | |||
36 | 1 | require $args['template']; |
|
37 | |||
38 | 1 | } |
|
39 | |||
40 | /** |
||
41 | * @return array |
||
42 | */ |
||
43 | 1 | protected function _make_markers_args() { |
|
70 | |||
71 | /** |
||
72 | * @return array |
||
73 | */ |
||
74 | 1 | protected function _make_info_windows() { |
|
94 | |||
95 | } |