/** * Returns the configured default center lat, lng and zoom * * @return array */ private function getCenterLatLng() { $latLng = explode(',', $this->config->getDefaultMapCenter()); $response = array('latitude' => (double) trim($latLng[0]), 'longitude' => (double) trim($latLng[1]), 'zoom' => (int) $this->config->getDefaultMapZoom(), 'success' => true); return $response; }