title: Google maps custom local search / search control
body: <p>I have two questions about google maps local search.
  Here is my code:</p>
  <pre><code>var options = {
      onSearchCompleteCallback:function(searcher) {
          // content of onSearchCompleteCallback function
          // creates markers and applies addresses to a result list
          // at this point code isn't necessary, because this function already works
      }
  };
  localSearch = new google.maps.LocalSearch(options);
  map.addControl(localSearch);
  </code></pre>
  <ol>
  <li>How can I avoid creating Google's markers and result list?
  -&gt; I want to display only my own markers...</li>
  <li>How can I submit the &quot;google search bar&quot; programmatically in JavaScript?</li>
  </ol>
  <hr />
  <hr />
  <p>Ok, I try to solve it in another way. At first I created a google search form and a local searcher (see code below). But an execution is bringing no results... Any ideas?</p>
  <pre><code>var SearchForm = null;
  var Searcher = null;
  
  function GetSearchResult() {
  }
              
  function RunMapSearch(searchForm) {
      Searcher.setCenterPoint(center);
      Searcher.execute(searchForm.input.value);
  }
              
  function CreateMapSearch() {
      // Creating search form
      SearchForm = new google.search.SearchForm(false, document.getElementById(&quot;SearchBar&quot;));
      SearchForm.setOnSubmitCallback(this, RunMapSearch);
                  
      // Creating searcher for local search
      Searcher = new google.search.LocalSearch();
      Searcher.setCenterPoint(center);
      Searcher.setSearchCompleteCallback(null, GetSearchResult);
  }
  </code></pre>