@@ -14,20 +14,20 @@ discard block |
||
| 14 | 14 | |
| 15 | 15 | const INSTANCE_CLASS = 'Clubdeuce\WPLib\Components\GoogleMaps\Map'; |
| 16 | 16 | |
| 17 | - /** |
|
| 18 | - * @var string |
|
| 19 | - */ |
|
| 20 | - protected static $_version = '0.1.7'; |
|
| 21 | - |
|
| 22 | - /** |
|
| 23 | - * |
|
| 24 | - */ |
|
| 17 | + /** |
|
| 18 | + * @var string |
|
| 19 | + */ |
|
| 20 | + protected static $_version = '0.1.7'; |
|
| 21 | + |
|
| 22 | + /** |
|
| 23 | + * |
|
| 24 | + */ |
|
| 25 | 25 | static function on_load() { |
| 26 | 26 | |
| 27 | - require_once 'vendor/autoload.php'; |
|
| 28 | - require_once 'includes/class-model-base.php'; |
|
| 27 | + require_once 'vendor/autoload.php'; |
|
| 28 | + require_once 'includes/class-model-base.php'; |
|
| 29 | 29 | self::register_helper( '\Clubdeuce\WPGoogleMaps\Google_Maps', __CLASS__ ); |
| 30 | - \Clubdeuce\WPGoogleMaps\Google_Maps::initialize(); |
|
| 30 | + \Clubdeuce\WPGoogleMaps\Google_Maps::initialize(); |
|
| 31 | 31 | |
| 32 | 32 | } |
| 33 | 33 | |
@@ -42,32 +42,32 @@ discard block |
||
| 42 | 42 | |
| 43 | 43 | } |
| 44 | 44 | |
| 45 | - /** |
|
| 46 | - * @param $address |
|
| 47 | - * @param array $args |
|
| 48 | - * |
|
| 49 | - * @return Marker |
|
| 50 | - */ |
|
| 45 | + /** |
|
| 46 | + * @param $address |
|
| 47 | + * @param array $args |
|
| 48 | + * |
|
| 49 | + * @return Marker |
|
| 50 | + */ |
|
| 51 | 51 | static function make_marker_by_address( $address, $args = array() ) { |
| 52 | 52 | |
| 53 | - $marker = \Clubdeuce\WPGoogleMaps\Google_Maps::make_marker_by_address( $address, $args ); |
|
| 54 | - return new Marker( array_merge( array( 'marker' => $marker ), $args ) ); |
|
| 53 | + $marker = \Clubdeuce\WPGoogleMaps\Google_Maps::make_marker_by_address( $address, $args ); |
|
| 54 | + return new Marker( array_merge( array( 'marker' => $marker ), $args ) ); |
|
| 55 | 55 | |
| 56 | 56 | } |
| 57 | 57 | |
| 58 | - /** |
|
| 59 | - * @param float $lat |
|
| 60 | - * @param float $lng |
|
| 61 | - * @param array $args |
|
| 62 | - * |
|
| 63 | - * @return Marker |
|
| 64 | - */ |
|
| 65 | - static function make_marker_by_position( $lat, $lng, $args = array() ) { |
|
| 58 | + /** |
|
| 59 | + * @param float $lat |
|
| 60 | + * @param float $lng |
|
| 61 | + * @param array $args |
|
| 62 | + * |
|
| 63 | + * @return Marker |
|
| 64 | + */ |
|
| 65 | + static function make_marker_by_position( $lat, $lng, $args = array() ) { |
|
| 66 | 66 | |
| 67 | - $marker = \Clubdeuce\WPGoogleMaps\Google_Maps::make_marker_by_position( $lat, $lng, $args ); |
|
| 68 | - return new Marker( array_merge( array( 'marker' => $marker ), $args ) ); |
|
| 67 | + $marker = \Clubdeuce\WPGoogleMaps\Google_Maps::make_marker_by_position( $lat, $lng, $args ); |
|
| 68 | + return new Marker( array_merge( array( 'marker' => $marker ), $args ) ); |
|
| 69 | 69 | |
| 70 | - } |
|
| 70 | + } |
|
| 71 | 71 | } |
| 72 | 72 | |
| 73 | 73 | Google_Maps::on_load(); |