Skip to content

Commit

Permalink
fix centerMe
Browse files Browse the repository at this point in the history
  • Loading branch information
otrok7 committed Jan 6, 2024
1 parent 04180d3 commit fccaa86
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions croutonjs/meetingMap/meeting_map.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ class Controller
'map_search_location' => '',
'map_search_coordinate_search' => '',
'map_search_zoom' => '',
'center_me' => '',
'goto' => ''
);
public $options = array();

Expand Down Expand Up @@ -208,6 +210,12 @@ private function createJavascriptConfig($options)
$ret .= 'lat:"'.$options['lat'].'",';
$ret .= 'lng:"'.$options['lng'].'",';
$ret .= 'zoom:"'.$options['zoom'].'",';
if (!empty($options['center_me'])) {
$ret .= 'centerMe:"'.$options['center_me'].'",';
}
if (!empty($options['goto'])) {
$ret .= 'goto:"'.$options['goto'].'",';
}
if (isset($options['map_search'])) {
$ret .= 'map_search: {';
foreach ($options['map_search'] as $key => $value) {
Expand Down

0 comments on commit fccaa86

Please sign in to comment.