| | |
| | | private const DEFAULT_ZOOM = 11; // City-wide view |
| | | private const DEFAULT_MAP_ID = '873aed4ca260b4203e45b6e3'; |
| | | |
| | | public function __construct() |
| | | protected static self $instance; |
| | | public static function getInstance():self |
| | | { |
| | | |
| | | if (!isset(self::$instance)) { |
| | | self::$instance = new self(); |
| | | } |
| | | return self::$instance; |
| | | } |
| | | |
| | | protected function __construct() |
| | | { |
| | | $this->service_name = 'maps'; |
| | | $this->title = 'Google Maps'; |
| | |
| | | return true; |
| | | } |
| | | |
| | | if (!empty(Registrar::getFeatured('is_content', 'term')) && get_term_meta(get_queried_object_id(), BASE . 'has_map', true) === true) { |
| | | if (!empty(Registrar::withFeature('is_content', 'term')) && get_term_meta(get_queried_object_id(), BASE . 'has_map', true) === true) { |
| | | return true; |
| | | } |
| | | |