} else { console.log('Address ' + address + ' not found: ' + status); } }); }, 300 * timeout_index); })(); } } <?php if (empty($search['location'])) { ?> map.fitBounds(bounds); <?php } ?> } </script> <form action="" method="post"> <?php module_form::print_form_auth(); ?> <?php $search_bar = array('elements' => array('name' => array('title' => _l('Location:'), 'field' => array('type' => 'text', 'name' => 'search[location]', 'value' => isset($search['location']) ? $search['location'] : '')))); echo module_form::search_bar($search_bar); ?> </form> <div id="map-canvas"></div>